mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
fix: Apply Rust formatting (cargo fmt)
- Reorder imports alphabetically in config_management.rs - Move auto_detect import to correct position in mod.rs - Remove extra blank lines - Fixes cargo fmt --check validation
This commit is contained in:
@@ -11,11 +11,11 @@ use goose::config::paths::Paths;
|
||||
use goose::config::ExtensionEntry;
|
||||
use goose::config::{Config, ConfigError};
|
||||
use goose::model::ModelConfig;
|
||||
use goose::providers::auto_detect;
|
||||
use goose::providers::base::{ProviderMetadata, ProviderType};
|
||||
use goose::providers::pricing::{
|
||||
get_all_pricing, get_model_pricing, parse_model_id, refresh_pricing,
|
||||
};
|
||||
use goose::providers::auto_detect;
|
||||
use goose::providers::providers as get_providers;
|
||||
use goose::{agents::ExtensionConfig, config::permission::PermissionLevel};
|
||||
use http::StatusCode;
|
||||
@@ -89,7 +89,6 @@ pub struct UpdateCustomProviderRequest {
|
||||
pub supports_streaming: Option<bool>,
|
||||
}
|
||||
|
||||
|
||||
#[derive(Deserialize, ToSchema)]
|
||||
pub struct DetectProviderRequest {
|
||||
pub api_key: String,
|
||||
@@ -528,7 +527,6 @@ pub async fn upsert_permissions(
|
||||
Ok(Json("Permissions updated successfully".to_string()))
|
||||
}
|
||||
|
||||
|
||||
#[utoipa::path(
|
||||
post,
|
||||
path = "/config/detect-provider",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
pub mod anthropic;
|
||||
pub mod auto_detect;
|
||||
mod api_client;
|
||||
pub mod auto_detect;
|
||||
pub mod azure;
|
||||
pub mod azureauth;
|
||||
pub mod base;
|
||||
|
||||
Reference in New Issue
Block a user