chore: change CodexAuth::from_api_key() to take &str instead of String

This commit is contained in:
Michael Bolin
2025-08-07 16:50:02 -07:00
parent b991c04f86
commit 3b12816016
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ impl ModelProviderInfo {
auth: &Option<CodexAuth>,
) -> crate::error::Result<reqwest::RequestBuilder> {
let effective_auth = match self.api_key() {
Ok(Some(key)) => Some(CodexAuth::from_api_key(key)),
Ok(Some(key)) => Some(CodexAuth::from_api_key(&key)),
Ok(None) => auth.clone(),
Err(err) => {
if auth.is_some() {