mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-06-22 01:52:45 +08:00
fix(logging): tighten Codex backend request ID prefix
This commit is contained in:
@@ -26,7 +26,7 @@ var aiAPIPrefixes = []string{
|
||||
"/v1/responses",
|
||||
"/v1beta/models/",
|
||||
"/api/provider/",
|
||||
"/backend-api/codex",
|
||||
"/backend-api/codex/",
|
||||
}
|
||||
|
||||
const (
|
||||
|
||||
@@ -84,6 +84,9 @@ func TestIsAIAPIPathIncludesCodexBackend(t *testing.T) {
|
||||
t.Fatalf("expected %s to be treated as AI API path", path)
|
||||
}
|
||||
}
|
||||
if isAIAPIPath("/backend-api/codex-status") {
|
||||
t.Fatalf("expected /backend-api/codex-status not to be treated as AI API path")
|
||||
}
|
||||
}
|
||||
|
||||
func TestGinLogrusLoggerAddsRequestIDForCodexBackend(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user