- Remove Slice() method from csync.Slice and use slices.Collect(s.Seq())
instead
- Optimize Seq2() method to avoid calling removed Slice() method
- Update Seq() to use Seq2() for better performance
- Update all references throughout the codebase to use the new pattern
π Generated with Crush
Co-Authored-By: Crush <crush@charm.land>
* feat: support anthropic provider type in custom provider configs
* docs: fix provider configuration field name and add anthropic example
- Change `provider_type` to `type` in documentation to match actual struct field
- Add comprehensive examples for both OpenAI and Anthropic custom providers
- Include missing `api_key` field in examples for completeness
* feat: resolve headers to allow for custom scripts and such in headers
* feat: allow headers in the anthropic client
* feat: if api_key has "Bearer " in front then using it as an
Authorization header and skip the X-API-Key header in the anthropic
client
* feat: add support for templating in the config resolve.go
something like `Bearer $(echo $ENVVAR)-$(bash ~/.config/crush/script.sh)` would work now; also added some tests since the first iteration of this broke stuff majorly lol
* feat: add a system prompt prefix option to the config
---------
Co-authored-by: Kieran Klukas <me@dunkirk.sh>
Co-authored-by: Kieran Klukas <l41cge3m@duck.com>
Kujtim Hoxha
,
Kieran Klukas
, and
Kieran Klukas
created
d6d5cbc
fix: fix panic on onboarding when no model is selected on the list
Click to expand commit body
* `rm -r ~/.local/share/crush`
* run `crush`
* type something on the filter so no model is shown on the list
* press enter
* a panic happens
Fixes #285