Add first-class ChatGPT subscription provider support

This commit is contained in:
Spherrrical 2026-04-10 13:29:20 -07:00
parent 128059e7c1
commit bbe9946207
16 changed files with 637 additions and 7 deletions

View file

@ -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(())
}