Fix/configure add provider custom headers (#7157)

Signed-off-by: Sahil8383 <sahilbhatt915@gmail.com>
This commit is contained in:
Sahil Bhatt
2026-02-12 19:53:46 +05:30
committed by GitHub
parent c059569590
commit d1aa571871
+1 -6
View File
@@ -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(),