-
Notifications
You must be signed in to change notification settings - Fork 170
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
Engines #120
Engines #120
Conversation
) | ||
|
||
@cached | ||
@retry(wait=wait_random_exponential(min=1, max=5), stop=stop_after_attempt(3)) |
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.
do we want to make retries optional 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.
let's land this first and then try to fix this
api_key=os.getenv("OPENAI_API_KEY") | ||
) | ||
|
||
def validate(self) -> None: |
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.
perhaps we can check content here too. e.g., if no user message, may be good to throw an exception
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.
it's a good idea but currently this is used in init, we can add that in a future update, I want first to have ppl test thsi
d698782
to
4999f1f
Compare
No description provided.