fix: convert periods to dashes for OpenRouter model slugs
This commit is contained in:
parent
13e4028d42
commit
3883ceefe2
1 changed files with 3 additions and 0 deletions
|
|
@ -61,6 +61,9 @@ func (p *HTTPProvider) Chat(ctx context.Context, messages []Message, tools []Too
|
|||
}
|
||||
}
|
||||
|
||||
// Convert periods to dashes for OpenRouter model slugs (e.g., glm-4.7 -> glm-4-7)
|
||||
model = strings.ReplaceAll(model, ".", "-")
|
||||
|
||||
requestBody := map[string]interface{}{
|
||||
"model": model,
|
||||
"messages": messages,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue