Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/refine-model-settings
This commit is contained in:
commit
6f4ae4a80f
|
|
@ -1,6 +1,8 @@
|
|||
using System.Collections.Concurrent;
|
||||
|
||||
namespace BotSharp.Abstraction.Conversations.Models;
|
||||
|
||||
public class ConversationState : Dictionary<string, StateKeyValue>
|
||||
public class ConversationState : ConcurrentDictionary<string, StateKeyValue>
|
||||
{
|
||||
public ConversationState()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ public partial class KnowledgeService
|
|||
}).ToList();
|
||||
|
||||
var vectorDb = GetVectorDb();
|
||||
if (vectorDb == null) return [];
|
||||
var dbCollections = await vectorDb.GetCollections();
|
||||
return configs.Where(x => dbCollections.Contains(x.Name));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using System.Text.Json;
|
||||
using System.Text.Json;
|
||||
using BotSharp.Abstraction.Conversations;
|
||||
using BotSharp.Abstraction.Conversations.Enums;
|
||||
using BotSharp.Abstraction.Conversations.Models;
|
||||
|
|
@ -69,7 +69,7 @@ namespace BotSharp.Plugin.Google.Core
|
|||
public ConversationState GetCurrentState()
|
||||
{
|
||||
|
||||
return new ConversationState { { "StateKey", new StateKeyValue { Key = "Key", Values = new List<StateValue>()} } };
|
||||
return new ConversationState();
|
||||
}
|
||||
|
||||
public void SetCurrentState(ConversationState state)
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
"labels": [ "experiment" ],
|
||||
"llmConfig": {
|
||||
"provider": "openai",
|
||||
"model": "gpt-4.1-nano"
|
||||
"model": "gpt-5-nano"
|
||||
},
|
||||
"routingRules": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue