mirror of
https://github.com/katanemo/plano.git
synced 2026-05-27 14:17:15 +02:00
fix: route Perplexity OpenAI paths without /v1
This commit is contained in:
parent
3a531ce22a
commit
1e2013bffc
3 changed files with 86 additions and 32 deletions
|
|
@ -122,6 +122,7 @@ impl StreamContext {
|
|||
.unwrap_or(&"".to_string()),
|
||||
self.streaming_response,
|
||||
self.llm_provider().base_url_path_prefix.as_deref(),
|
||||
self.llm_provider().name.starts_with("perplexity/"),
|
||||
);
|
||||
if target_endpoint != request_path {
|
||||
self.set_http_request_header(":path", Some(&target_endpoint));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue