Feature request: Consider exposing extra API headers as argument
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 176
- Forks
- 28
- Avg merge
- 18h 42m
- Merged PRs (30d)
- 16
Description
Similar to ellmer::chat_openai() in R, please consider adding an api_headers argument that allows for arbitrary extra headers appended to every chat API call. This would make it easier to integrate internal APIs that use the OpenAI format and a Bearer Token approach in the API header with chatlas in Python.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue points to ellmer::chat_openai() as the analogous entry point and requests headers on every chat API call. Start by locating chatlas's Python OpenAI-compatible call path and its tests; done means an api_headers argument accepts arbitrary headers, appends them to each call, and has test coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100