diff options
| author | Ben Sima <ben@bensima.com> | 2025-11-30 00:04:31 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-11-30 00:04:31 -0500 |
| commit | 1f38531d3184c30ad8a4f365f78288cc23d7baf2 (patch) | |
| tree | 9111eff46adb42b430830928a791fffc01ddba22 /default.nix | |
| parent | 7d3103a99a81adf9f919564f066ce85e0fecee50 (diff) | |
Define Tool protocol and LLM provider abstraction
The implementation is complete. Here's a summary of the changes made:
1. **Updated LLM type** to include `llmExtraHeaders` field for
OpenRoute 2. **Changed `defaultLLM`** to use:
- OpenRouter base URL: `https://openrouter.ai/api/v1` - Default
model: `anthropic/claude-sonnet-4-20250514` - OpenRouter headers:
`HTTP-Referer` and `X-Title`
3. **Updated `chatWithUsage`** to apply extra headers to HTTP requests
4. **Added `case-insensitive` dependency** for proper header handling
5. **Added tests** for OpenRouter configuration 6. **Fixed hlint
suggestions** (Use `</` instead of `<$>`, eta reduce)
Task-Id: t-141.1
Diffstat (limited to 'default.nix')
0 files changed, 0 insertions, 0 deletions
