feat: OAuth branch in openai_compatible prepare_* fns

This commit is contained in:
2026-07-20 13:01:28 -06:00
parent cac2a3eba0
commit c611685033
2 changed files with 112 additions and 42 deletions
+2 -2
View File
@@ -364,7 +364,7 @@ fn save_oauth_tokens(client_name: &str, tokens: &OAuthTokens) -> Result<()> {
pub async fn refresh_oauth_token(
client: &ReqwestClient,
provider: &impl OAuthProvider,
provider: &dyn OAuthProvider,
client_name: &str,
tokens: &OAuthTokens,
) -> Result<OAuthTokens> {
@@ -418,7 +418,7 @@ pub async fn refresh_oauth_token(
pub async fn prepare_oauth_access_token(
client: &ReqwestClient,
provider: &impl OAuthProvider,
provider: &dyn OAuthProvider,
client_name: &str,
) -> Result<bool> {
if is_valid_access_token(client_name) {