mirror of
https://github.com/katanemo/plano.git
synced 2026-06-29 15:49:40 +02:00
fix tests
This commit is contained in:
parent
b73b177b3b
commit
49342c3c42
1 changed files with 4 additions and 1 deletions
|
|
@ -220,7 +220,10 @@ impl HttpContext for StreamContext {
|
||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
self.select_llm_provider();
|
self.select_llm_provider();
|
||||||
self.add_http_request_header(ARCH_ROUTING_HEADER, &self.llm_provider().name);
|
self.add_http_request_header(
|
||||||
|
ARCH_ROUTING_HEADER,
|
||||||
|
&self.llm_provider().provider_interface.to_string(),
|
||||||
|
);
|
||||||
if let Err(error) = self.modify_auth_headers() {
|
if let Err(error) = self.modify_auth_headers() {
|
||||||
// ensure that the provider has an endpoint if the access key is missing else return a bad request
|
// ensure that the provider has an endpoint if the access key is missing else return a bad request
|
||||||
if self.llm_provider.as_ref().unwrap().endpoint.is_none() && !use_agent_orchestrator
|
if self.llm_provider.as_ref().unwrap().endpoint.is_none() && !use_agent_orchestrator
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue