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

Add a "cost" attribute to LLMContent response, fix bug with backup model, fix timeout #37

Merged
merged 3 commits into from
Dec 15, 2024

Conversation

rishsriv
Copy link
Member

Features Added

A new "cost" parameter to the response of LLMContent. This allows us to track how much an LLM call costs, and will help us down the line when we start to track all of our LLM calls.

Bugs fixed

  • Fixed an issue with the new backup_model parameter to make it work
  • Moved timeouts to function level instead of client level calls, as client levels calls weren't working for the OpenAI client

@rishsriv rishsriv merged commit 5d98561 into main Dec 15, 2024
1 check passed
@rishsriv rishsriv deleted the rishabh/cost-attribute-bug-fixes branch December 15, 2024 08:26
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