aKode fase 5: 429 con Retry-After/X-RateLimit-Reset e messaggi in italiano, filtro modelli nel primo avvio, correzioni della rinomina
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,7 +44,6 @@ use akode_config::RequirementsLayerEntry;
|
||||
use akode_config::SkillConfigRules;
|
||||
use akode_config::compose_requirements;
|
||||
use akode_config::types::McpServerTransportConfig;
|
||||
use akode_model_provider::AMAZON_BEDROCK_PROVIDER_ID;
|
||||
use akode_plugin::PluginId;
|
||||
use akode_protocol::auth::AuthMode;
|
||||
use akode_protocol::protocol::HookEventName;
|
||||
@@ -868,7 +867,7 @@ enabled = true
|
||||
vec!["linear@openai-api-curated".to_string()]
|
||||
);
|
||||
|
||||
for auth_mode in [AuthMode::ApiKey, AuthMode::BedrockApiKey] {
|
||||
for auth_mode in [AuthMode::ApiKey, AuthMode::Headers] {
|
||||
set_test_auth_mode(&auth_manager, Some(auth_mode)).await;
|
||||
|
||||
assert_eq!(
|
||||
@@ -878,7 +877,7 @@ enabled = true
|
||||
}
|
||||
|
||||
set_test_auth_mode(&auth_manager, /*auth_mode*/ None).await;
|
||||
for model_provider_id in ["openai", AMAZON_BEDROCK_PROVIDER_ID, "ollama"] {
|
||||
for model_provider_id in ["openai", "lmstudio", "ollama"] {
|
||||
config.model_provider_id = model_provider_id.to_string();
|
||||
assert_eq!(
|
||||
loaded_plugin_names(&manager, &config).await,
|
||||
@@ -3845,12 +3844,12 @@ async fn list_marketplaces_selects_curated_catalog_only_from_authentication() {
|
||||
for (configured_provider, resolved_provider, auth_mode, expected_marketplace) in [
|
||||
(
|
||||
"openai",
|
||||
AMAZON_BEDROCK_PROVIDER_ID,
|
||||
"lmstudio",
|
||||
None,
|
||||
OPENAI_API_CURATED_MARKETPLACE_NAME,
|
||||
),
|
||||
(
|
||||
AMAZON_BEDROCK_PROVIDER_ID,
|
||||
"lmstudio",
|
||||
"openai",
|
||||
None,
|
||||
OPENAI_API_CURATED_MARKETPLACE_NAME,
|
||||
@@ -3940,7 +3939,7 @@ plugins = true
|
||||
let manager = test_plugins_manager_with_options(
|
||||
tmp.path().to_path_buf(),
|
||||
Some(Product::Codex),
|
||||
Some(AuthMode::BedrockApiKey),
|
||||
Some(AuthMode::ApiKey),
|
||||
);
|
||||
let outcome = manager
|
||||
.list_marketplaces_for_config(&config, &[], /*include_openai_curated*/ true)
|
||||
|
||||
@@ -19,8 +19,6 @@ use akode_login::CodexAuth;
|
||||
use akode_login::ExternalAuth;
|
||||
use akode_login::ExternalAuthFuture;
|
||||
use akode_login::ExternalAuthRefreshContext;
|
||||
use akode_login::auth::BedrockAccessKeysAuth;
|
||||
use akode_login::auth::BedrockApiKeyAuth;
|
||||
use akode_login::test_support::auth_manager_from_optional_auth;
|
||||
use akode_protocol::auth::AuthMode;
|
||||
use akode_protocol::protocol::Product;
|
||||
@@ -112,15 +110,6 @@ fn test_codex_auth(auth_mode: Option<AuthMode>) -> Option<CodexAuth> {
|
||||
auth_mode.map(|auth_mode| match auth_mode {
|
||||
AuthMode::ApiKey => CodexAuth::from_api_key("test-api-key"),
|
||||
AuthMode::Headers => CodexAuth::Headers(AuthHeaders::new(http::HeaderMap::new())),
|
||||
AuthMode::BedrockApiKey => CodexAuth::BedrockApiKey(BedrockApiKeyAuth {
|
||||
api_key: "test-api-key".to_string(),
|
||||
region: "us-east-1".to_string(),
|
||||
}),
|
||||
AuthMode::BedrockAccessKeys => CodexAuth::BedrockAccessKeys(BedrockAccessKeysAuth {
|
||||
access_key_id: "test-access-key-id".to_string(),
|
||||
secret_access_key: "test-secret-access-key".to_string(),
|
||||
session_token: None,
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user