mirror of
https://github.com/katanemo/plano.git
synced 2026-05-06 06:12:59 +02:00
fix: route Perplexity OpenAI endpoints without /v1 (#854)
* fix: route Perplexity OpenAI paths without /v1 * add tests for Perplexity provider handling in LLM module * refactor: use constant for Perplexity provider prefix in LLM module * moving const to top of file
This commit is contained in:
parent
d8f4fd76e3
commit
3dbda9741e
3 changed files with 189 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