jan
jan copied to clipboard
feat: identidy jan for openrouter
Describe Your Changes
- update header template for openrouter, add
HTTP-Referer: https://jan.ai,X-Title: Jan
reference: https://openrouter.ai/docs/api-reference/overview#headers
Fixes Issues
- Closes #5388
Self Checklist
- [x] Added relevant comments, esp in complex areas
- [ ] Updated docs (for bug fixes / features)
- [ ] Created issues for follow-up changes or refactoring needed
[!IMPORTANT] Update
header_templateinopenrouter.jsonto includeHTTP-RefererandX-Titleheaders for OpenRouter API requests.
- Behavior:
- Update
header_templateinopenrouter.jsonto includeHTTP-Referer: https://jan.aiandX-Title: Janfor OpenRouter API requests.- References:
- Closes issue #5388.
- Based on OpenRouter API documentation.
This description was created by
for 7a8a38ac6f1ef0f98b491f5b4c7443dfe76d6656. You can customize this summary. It will automatically update as commits are pushed.