fix(ai): support Terra completion token limits (#44)
This commit is contained in:
@ -78,7 +78,7 @@ func TestTicket43HTTPGenerationAdaptersUseExactModelCredentialsAndSmallOutput(t
|
||||
response := ""
|
||||
switch name {
|
||||
case "openai":
|
||||
if body["model"] != "exact-saved-model" || body["max_tokens"] != float64(modelTestMaxOutputTokens) || r.Header.Get("Authorization") != "Bearer "+key {
|
||||
if body["model"] != "exact-saved-model" || body["max_completion_tokens"] != float64(modelTestMaxOutputTokens) || r.Header.Get("Authorization") != "Bearer "+key {
|
||||
t.Error("OpenAI generation configuration changed")
|
||||
}
|
||||
response = `{"choices":[{"message":{"role":"assistant","content":"OK"}}]}`
|
||||
|
||||
Reference in New Issue
Block a user