fix: route Perplexity OpenAI paths without /v1

This commit is contained in:
Spherrrical 2026-03-30 14:17:23 -07:00
parent 3a531ce22a
commit 1e2013bffc
3 changed files with 86 additions and 32 deletions

View file

@ -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));