feat: support Anthropic chat provider

This commit is contained in:
langcaiye
2026-05-12 15:29:06 +08:00
committed by lyingbug
parent 5949be739f
commit 42d98261e7
8 changed files with 393 additions and 0 deletions
+3
View File
@@ -151,6 +151,9 @@ func NewRemoteChat(config *ChatConfig) (Chat, error) {
if providerName == "" {
providerName = provider.DetectProvider(config.BaseURL)
}
if providerName == provider.ProviderAnthropic {
return NewAnthropicChat(config)
}
remoteChat, err := NewRemoteAPIChat(config)
if err != nil {