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)
|
.initial_value(true)
|
||||||
.interact()?;
|
.interact()?;
|
||||||
|
|
||||||
// Ask about custom headers for OpenAI compatible providers
|
let headers = collect_custom_headers()?;
|
||||||
let headers = if provider_type == "openai_compatible" {
|
|
||||||
collect_custom_headers()?
|
|
||||||
} else {
|
|
||||||
None
|
|
||||||
};
|
|
||||||
|
|
||||||
create_custom_provider(CreateCustomProviderParams {
|
create_custom_provider(CreateCustomProviderParams {
|
||||||
engine: provider_type.to_string(),
|
engine: provider_type.to_string(),
|
||||||
|
|||||||
Reference in New Issue
Block a user