Merge pull request #497 from iceljc/bugfix/fix-agent-conv-edge-cases
Bugfix/fix agent conv edge cases
This commit is contained in:
commit
9d0c9c2be3
|
|
@ -46,6 +46,11 @@ public partial class AgentService
|
|||
profile.LlmConfig = agentSetting.LlmConfig;
|
||||
profile.LlmConfig.IsInherit = true;
|
||||
}
|
||||
else if (string.IsNullOrEmpty(profile.LlmConfig?.Provider) || string.IsNullOrEmpty(profile.LlmConfig?.Model))
|
||||
{
|
||||
profile.LlmConfig.Provider = agentSetting.LlmConfig.Provider;
|
||||
profile.LlmConfig.Model = agentSetting.LlmConfig.Model;
|
||||
}
|
||||
|
||||
profile.Plugin = GetPlugin(profile.Id);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue