Skip to content

Commit

Permalink
fix: Correct baseURL configuration for Anthropic API (#309)
Browse files Browse the repository at this point in the history
Fixed an issue where Anthropic base-url configuration did not work.

Co-authored-by: Ironben <[email protected]>
  • Loading branch information
nanbingxyz and Ironben authored Jul 31, 2024
1 parent 23957ce commit 89c240e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func (m *Mods) startCompletionCmd(content string) tea.Cmd {
}
accfg = DefaultAnthropicConfig(key)
if api.BaseURL != "" {
ccfg.BaseURL = api.BaseURL
accfg.BaseURL = api.BaseURL
}
if api.Version != "" {
accfg.Version = AnthropicAPIVersion(api.Version)
Expand Down

0 comments on commit 89c240e

Please sign in to comment.