Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions crates/goose-cli/src/commands/configure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,6 @@ async fn handle_first_time_setup(config: &Config) -> anyhow::Result<()> {
cliclack::intro(style(" goose-configure ").on_cyan().black())?;

let setup_method = cliclack::select("How would you like to set up your provider?")
.item(
"aimlapi",
"AI/ML API Login (Recommended)",
"Sign in with AI/ML API to automatically configure models",
)
.item(
"openrouter",
"OpenRouter Login (Recommended)",
Expand Down Expand Up @@ -281,18 +276,6 @@ async fn handle_first_time_setup(config: &Config) -> anyhow::Result<()> {
);
}
}
"aimlapi" => {
if let Err(e) = handle_aimlapi_auth().await {
let _ = config.clear();
println!(
"
{} AI/ML API sign-in failed: {}
Please try again or use manual configuration",
style("Error").red().italic(),
e,
);
}
}
"manual" => handle_manual_provider_setup(config).await,
_ => unreachable!(),
}
Expand Down Expand Up @@ -1966,30 +1949,6 @@ pub fn configure_max_turns_dialog() -> anyhow::Result<()> {
Ok(())
}

/// Handle AI/ML API authentication (authorization code + PKCE)
pub async fn handle_aimlapi_auth() -> anyhow::Result<()> {
use goose::config::{configure_aimlapi, signup_aimlapi::AimlapiAuth};

let mut auth_flow = AimlapiAuth::new()?;
let api_key = auth_flow.complete_flow().await?;
println!(
"
Sign-in complete!"
);

let config = Config::global();

println!(
"
Configuring AI/ML API..."
);
configure_aimlapi(config, api_key)?;

println!("AI/ML API configuration complete");

Ok(())
}

/// Handle OpenRouter authentication
pub async fn handle_openrouter_auth() -> anyhow::Result<()> {
use goose::config::{configure_openrouter, signup_openrouter::OpenRouterAuth};
Expand Down
39 changes: 0 additions & 39 deletions crates/goose/examples/aimlapi_auth.rs

This file was deleted.

2 changes: 0 additions & 2 deletions crates/goose/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ pub mod paths;
pub mod permission;
pub mod providers;
pub mod search_path;
pub mod signup_aimlapi;
pub mod signup_openrouter;
pub mod signup_tetrate;
pub mod tls;
Expand All @@ -23,7 +22,6 @@ pub use extensions::{
};
pub use goose_providers::goose_mode::GooseMode;
pub use permission::PermissionManager;
pub use signup_aimlapi::configure_aimlapi;
pub use signup_openrouter::configure_openrouter;
pub use signup_tetrate::configure_tetrate;

Expand Down
276 changes: 0 additions & 276 deletions crates/goose/src/config/signup_aimlapi/mod.rs

This file was deleted.

Loading
Loading