mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
Fix/configure add provider custom headers (#7157)
Signed-off-by: Sahil8383 <sahilbhatt915@gmail.com>
This commit is contained in:
@@ -1913,12 +1913,7 @@ fn add_provider() -> anyhow::Result<()> {
|
||||
.initial_value(true)
|
||||
.interact()?;
|
||||
|
||||
// Ask about custom headers for OpenAI compatible providers
|
||||
let headers = if provider_type == "openai_compatible" {
|
||||
collect_custom_headers()?
|
||||
} else {
|
||||
None
|
||||
};
|
||||
let headers = collect_custom_headers()?;
|
||||
|
||||
create_custom_provider(CreateCustomProviderParams {
|
||||
engine: provider_type.to_string(),
|
||||
|
||||
Reference in New Issue
Block a user