Skip to content

Set the braintrust proxy as the api url to facilitate caching#33

Merged
Ankur Goyal (ankrgyl) merged 11 commits into
mainfrom
use-proxy
Nov 28, 2023
Merged

Set the braintrust proxy as the api url to facilitate caching#33
Ankur Goyal (ankrgyl) merged 11 commits into
mainfrom
use-proxy

Conversation

@ankrgyl

Copy link
Copy Markdown
Contributor

No description provided.

@manugoyal Manu Goyal (manugoyal) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exciting

Comment thread 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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦

Comment thread 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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦

@ankrgyl
Ankur Goyal (ankrgyl) merged commit 975fce7 into main Nov 28, 2023
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.

2 participants