Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Anthropic kwargs + docs #204

Merged
merged 4 commits into from
Sep 9, 2024
Merged

Update Anthropic kwargs + docs #204

merged 4 commits into from
Sep 9, 2024

Conversation

svilupp
Copy link
Owner

@svilupp svilupp commented Sep 9, 2024

Added

  • Added beta headers to enable long outputs (up to 8K tokens) with Anthropic's Sonnet 3.5 (see ?anthropic_extra_headers).
  • Added a kwarg to prefill (aiprefill) AI responses with Anthropic's models to improve steerability (see ?aigenerate).

Updated

  • Documentation of aigenerate to make it clear that if streamcallback is provide WITH flavor set, there is no automatic configuration and the user must provide the correct api_kwargs.
  • Grouped Anthropic's beta headers as a comma-separated string as per the latest API specification.

Copy link

codecov bot commented Sep 9, 2024

Codecov Report

Attention: Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 91.85%. Comparing base (5c198fb) to head (43f4a81).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/streaming.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #204      +/-   ##
==========================================
+ Coverage   91.83%   91.85%   +0.02%     
==========================================
  Files          46       46              
  Lines        4359     4372      +13     
==========================================
+ Hits         4003     4016      +13     
  Misses        356      356              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@svilupp svilupp merged commit b89eb97 into main Sep 9, 2024
6 checks passed
@svilupp svilupp deleted the update-anthropic branch September 9, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant