-
Notifications
You must be signed in to change notification settings - Fork 23
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
Set the braintrust proxy as the api url to facilitate caching #33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exciting
py/autoevals/oai.py
Outdated
# OpenAI is very slow to import, so we only do it if we need it | ||
complete, RateLimitError = prepare_openai_complete(is_async=False, api_key=api_key) | ||
complete, RateLimitError = prepare_openai_complete(is_async=False, api_key=api_key, base_url=base_url) | ||
print(kwargs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦
py/autoevals/oai.py
Outdated
complete, RateLimitError = prepare_openai_complete(is_async=True, api_key=api_key) | ||
async def arun_cached_request(api_key=None, base_url=None, **kwargs): | ||
complete, RateLimitError = prepare_openai_complete(is_async=True, api_key=api_key, base_url=base_url) | ||
print(kwargs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦
No description provided.