Merge pull request #1040 from JackJiang1234/master

Update AgentService.GetAgents.cs
This commit is contained in:
易磊 2025-04-30 15:53:40 +08:00 committed by GitHub
commit ad952cb1e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,8 +48,8 @@ public partial class AgentService
if (profile == null)
{
_logger.LogError($"Can't find agent {id}");
return null;
//_logger.LogError($"Can't find agent {id}");
throw new ArgumentException($"Can't find agent {id}");
}
// Load llm config