mirror of
https://github.com/katanemo/plano.git
synced 2026-05-06 22:32:42 +02:00
Add first-class ChatGPT subscription provider support
This commit is contained in:
parent
128059e7c1
commit
bbe9946207
16 changed files with 637 additions and 7 deletions
|
|
@ -229,6 +229,14 @@ impl StreamContext {
|
|||
}
|
||||
}
|
||||
|
||||
// Apply any extra headers configured on the provider (e.g., ChatGPT-Account-Id, originator)
|
||||
let headers = self.llm_provider().headers.clone();
|
||||
if let Some(headers) = headers {
|
||||
for (key, value) in &headers {
|
||||
self.set_http_request_header(key, Some(value));
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue