voiio / Sam

Sam – cuz your company is nothing without Sam
https://code.voiio.de/Sam/
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

Add cost control via the new max_prompt_tokens parameter #48

Closed codingjoe closed 7 months ago

codingjoe commented 7 months ago

See also: https://platform.openai.com/docs/assistants/how-it-works/max-completion-and-max-prompt-tokens

codecov[bot] commented 7 months ago

Codecov Report

Attention: Patch coverage is 66.66667% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 57.06%. Comparing base (b071bfb) to head (76951cb). Report is 2 commits behind head on main.

Files Patch % Lines
sam/utils.py 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #48 +/- ## ========================================== + Coverage 54.15% 57.06% +2.90% ========================================== Files 9 10 +1 Lines 325 354 +29 ========================================== + Hits 176 202 +26 - Misses 149 152 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.