mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-11 16:39:15 +08:00
fix: anthropic api url #97
This commit is contained in:
parent
a9512c6214
commit
4372d7a4d0
@ -18,6 +18,10 @@ export default class AnthropicProvider extends BaseProvider {
|
|||||||
this.sdk = new Anthropic({ apiKey: provider.apiKey, baseURL: this.getBaseURL() })
|
this.sdk = new Anthropic({ apiKey: provider.apiKey, baseURL: this.getBaseURL() })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public getBaseURL(): string {
|
||||||
|
return this.provider.apiHost
|
||||||
|
}
|
||||||
|
|
||||||
private async getMessageParam(message: Message): Promise<MessageParam> {
|
private async getMessageParam(message: Message): Promise<MessageParam> {
|
||||||
const parts: MessageParam['content'] = [{ type: 'text', text: message.content }]
|
const parts: MessageParam['content'] = [{ type: 'text', text: message.content }]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user