This commit is contained in:
2026-08-23 12:56:19 +02:00
parent 5340158228
commit ee1405cc1a
7 changed files with 260 additions and 29 deletions
@@ -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")
}