Fix OpenAI family local auth to use bearer (#302)

* Fix OpenAI family local auth to use bearer

* test(gateway): fix bearer auth assertions for openai local flows

* test(usage): make local usage status wait resilient

* style(gateway): apply rustfmt to usage test helper

---------

Co-authored-by: fawney19 <elky0401@gmail.com>
This commit is contained in:
RWDai
2026-04-17 11:10:05 +08:00
committed by GitHub
parent 6964729cb7
commit 96a25d058b
15 changed files with 89 additions and 37 deletions

View File

@@ -202,7 +202,7 @@ pub(super) async fn maybe_build_local_test_connection_route_response(
let auth = match format_value.as_str() {
"openai:chat" => {
crate::provider_transport::auth::resolve_local_openai_chat_auth(&transport)
crate::provider_transport::auth::resolve_local_openai_bearer_auth(&transport)
.or(oauth_auth.clone())
}
"claude:chat" => crate::provider_transport::auth::resolve_local_standard_auth(&transport)