on main help sign in
chore: use the catwalk name
commite218c2a6777c34577f2a41ea1b3ca032e2ca371f authorKujtim Hoxha <kujtimii.h@gmail.com> dateMon 28 Jul 2025, 20:42 (1 year ago) parentc35e700
1 file changed+1−1
internal/llm/provider/openai.go+1−1
internal/llm/provider/openai.go+1−1
@@ -57,7 +57,7 @@ func createOpenAIClient(opts providerClientOptions) openai.Client {
5757}
5858
5959func (o *openaiClient) convertMessages(messages []message.Message) (openaiMessages []openai.ChatCompletionMessageParamUnion) {
60− isAnthropicModel := o.providerOptions.config.ID == "openrouter" && strings.HasPrefix(o.Model().ID, "anthropic/")
60+ isAnthropicModel := o.providerOptions.config.ID == string(catwalk.InferenceProviderOpenRouter) && strings.HasPrefix(o.Model().ID, "anthropic/")
6161 // Add system message first
6262 systemMessage := o.providerOptions.systemMessage
6363 if o.providerOptions.systemPromptPrefix != "" {