Merge pull request 'Fix Codex Responses API base URL' (#1) from fix/codex-responses-base-url into main

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
kate522 committed 2026-10-19 05:33:35 +00:00
commit 8ffd369448
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -331,7 +331,7 @@ func TestApplyAndRestoreCodex(t *testing.T) {
t.Fatalf("injection = %v", out["injection"]) t.Fatalf("injection = %v", out["injection"])
} }
table := injection["table"].(map[string]any) 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) t.Errorf("injected table = %v", table)
} }
if table["experimental_bearer_token"] != env.store.Config().RelayToken { 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 return
} }
injection, err := mgr.Apply(codexcfg.ApplyOptions{ 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, Token: s.store.Config().RelayToken,
}) })
if err != nil { if err != nil {
+1 -1
View File
@@ -65,7 +65,7 @@ beforeEach(() => {
table: { table: {
name: "crossrelay", name: "crossrelay",
wire_api: "responses", 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", experimental_bearer_token: "crl_x",
requires_openai_auth: "false", requires_openai_auth: "false",
}, },