mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-15 12:08:27 +00:00
Moved the chats of the BeyondFacts Lab to the embedded chat of assistants (#1203)
This commit is contained in:
1 parent
dc97db256e
commit
cb54ad297d
27 files changed
+1023
-743
No files matched your search
@@ -15,4 +15,7 @@ public sealed class ModelComparisonSeriesChatStore(ModelComparisonStore store, G
|
||||
|
||||
/// <inheritdoc />
|
||||
public Task SaveThreadAsync(ChatThread thread, CancellationToken token = default) => store.SaveSeriesChatAsync(seriesId, thread, token);
|
||||
|
||||
/// <inheritdoc />
|
||||
public Task DeleteThreadAsync(Guid chatId, CancellationToken token = default) => store.DeleteSeriesChatAsync(seriesId, chatId, token);
|
||||
}
|
||||
+4
-4
@@ -104,7 +104,7 @@ public partial class ModelComparisonSeriesView : MSGComponentBase
|
||||
/// <summary>
|
||||
/// Readies a request of the chat the user works in right now, with the provider of that chat.
|
||||
/// </summary>
|
||||
private Func<ChatThread, Task<bool>> prepareChat = _ => Task.FromResult(true);
|
||||
private Func<ChatThread, Task<EmbeddedChatPreparation>> prepareChat = _ => Task.FromResult(EmbeddedChatPreparation.READY);
|
||||
|
||||
/// <summary>
|
||||
/// The copy of the first message of the first chat, with which the second chat starts, or null in the first chat.
|
||||
@@ -230,12 +230,12 @@ public partial class ModelComparisonSeriesView : MSGComponentBase
|
||||
/// </summary>
|
||||
/// <param name="thread">The chat.</param>
|
||||
/// <param name="provider">The provider which answers in the chat.</param>
|
||||
/// <returns>Always true: whether the provider may answer, the embedded chat checks itself.</returns>
|
||||
private Task<bool> PrepareAsync(ChatThread thread, AIStudio.Settings.Provider provider)
|
||||
/// <returns>Always ready: whether the provider may answer, the embedded chat checks itself.</returns>
|
||||
private Task<EmbeddedChatPreparation> PrepareAsync(ChatThread thread, AIStudio.Settings.Provider provider)
|
||||
{
|
||||
var toolIds = this.ToolRegistry.FilterToolIdsForProvider(provider, this.Series.ToolIds, thread.RequiredOutboundDataRestriction.Restriction);
|
||||
ModelComparisonSeriesThreads.PrepareForRequest(thread, this.Series, provider, toolIds);
|
||||
return Task.FromResult(true);
|
||||
return Task.FromResult(EmbeddedChatPreparation.READY);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user