Fix Codex Responses API base URL
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
16957decb2
commit
416001ca39
3 files changed
+3
-3
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user