Fix Codex Responses API base URL #1

Merged
kate522 merged 1 commits from fix/codex-responses-base-url into main 2026-10-19 05:33:36 +00:00
3 changed files with 3 additions and 3 deletions

No files matched your search

+1 -1
View File
@@ -331,7 +331,7 @@ func TestApplyAndRestoreCodex(t *testing.T) {
t.Fatalf("injection = %v", out["injection"])
}
table := injection["table"].(map[string]any)
if table["wire_api"] != "responses" || table["base_url"] != "http://127.0.0.1:18787" {
if table["wire_api"] != "responses" || table["base_url"] != "http://127.0.0.1:18787/v1" {
t.Errorf("injected table = %v", table)
}
if table["experimental_bearer_token"] != env.store.Config().RelayToken {
+1 -1
View File
@@ -235,7 +235,7 @@ func (s *Server) applyCodex(w http.ResponseWriter, id string) {
return
}
injection, err := mgr.Apply(codexcfg.ApplyOptions{
BaseURL: fmt.Sprintf("http://127.0.0.1:%d", s.port),
BaseURL: fmt.Sprintf("http://127.0.0.1:%d/v1", s.port),
Token: s.store.Config().RelayToken,
})
if err != nil {
+1 -1
View File
@@ -65,7 +65,7 @@ beforeEach(() => {
table: {
name: "crossrelay",
wire_api: "responses",
base_url: "http://127.0.0.1:52917",
base_url: "http://127.0.0.1:52917/v1",
experimental_bearer_token: "crl_x",
requires_openai_auth: "false",
},