feat: Validate model type and model name compatibility

This commit is contained in:
lilong.129
2025-05-26 09:40:28 +08:00
parent 4e74247cab
commit f20fdd51bc
3 changed files with 26 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ import (
// NewChat creates a new chat session
func (h *MCPHost) NewChat(ctx context.Context) (*Chat, error) {
// Get model config from environment variables
modelConfig, err := ai.GetModelConfig(option.LLMServiceTypeUITARS)
modelConfig, err := ai.GetModelConfig(option.LLMServiceTypeDoubaoVL)
if err != nil {
return nil, err
}