feat: support cohere (close #195)

This commit is contained in:
CaIon
2024-04-24 18:49:56 +08:00
parent 3f448ba4fc
commit bfcaccc2e3
11 changed files with 322 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ func stopReasonClaude2OpenAI(reason string) string {
case "end_turn":
return "stop"
case "max_tokens":
return "length"
return "max_tokens"
default:
return reason
}