This commit is contained in:
Ahmed Ibrahim
2025-12-09 14:36:27 -08:00
parent 933e247e9f
commit 8188e8b1df

View File

@@ -48,8 +48,11 @@ impl<T: HttpTransport, A: AuthProvider> ModelsClient<T, A> {
let separator = if req.url.contains('?') { '&' } else { '?' };
req.url = format!("{}{}client_version={client_version}", req.url, separator);
add_auth_headers(&self.auth, req)
if self.auth.account_id().is_some() {
add_auth_headers(&self.auth, req)
} else {
req
}
};
let resp = run_with_request_telemetry(