Rimosso il provider OpenAI dal credential broker del proxy di rete (B)
Da f366db7f: il broker non conosce piu' OpenAI (restano GitHub e i provider configurati);
i test del loader sono adattati (stesse protezioni, verificate con GitHub e con un provider
personalizzato), non cancellati.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -349,9 +349,7 @@ pub(super) fn active_credential_sources(
|
||||
let mut sources = Vec::new();
|
||||
for provider in providers::credential_providers() {
|
||||
for source in provider.sources() {
|
||||
if let Some(host_binding) =
|
||||
(source.host_binding)(&binding_env, state.openai_api_host.as_deref())
|
||||
{
|
||||
if let Some(host_binding) = (source.host_binding)(&binding_env) {
|
||||
sources.push(ActiveCredentialSource {
|
||||
provider: BrokeredCredentialProvider::Builtin(provider),
|
||||
host_binding,
|
||||
@@ -448,7 +446,7 @@ pub(super) fn prioritized_credentials<'a>(
|
||||
BrokeredCredentialProvider::Builtin(provider) => {
|
||||
provider.sources().iter().any(|source| {
|
||||
!source.binding_env_vars.is_empty()
|
||||
&& (source.host_binding)(&binding_env, state.openai_api_host.as_deref())
|
||||
&& (source.host_binding)(&binding_env)
|
||||
.is_some_and(|binding| binding == credential.host_binding)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user