fix
This commit is contained in:
@@ -184,6 +184,14 @@ func TestOpenAIClient_doComplete_gpt56LunaUsesMaxCompletionTokens(t *testing.T)
|
||||
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
var req map[string]any
|
||||
_ = json.NewDecoder(r.Body).Decode(&req)
|
||||
msgs, _ := req["messages"].([]any)
|
||||
if len(msgs) < 1 {
|
||||
t.Errorf("expected messages")
|
||||
} else if m0, ok := msgs[0].(map[string]any); ok {
|
||||
if m0["role"] != "developer" {
|
||||
t.Errorf("system role=%v want developer for gpt-5.6", m0["role"])
|
||||
}
|
||||
}
|
||||
if _, ok := req["temperature"]; ok {
|
||||
t.Errorf("temperature must be omitted for gpt-5.6-luna")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user