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

Engines #120

Merged
merged 10 commits into from
Oct 6, 2024
Merged

Engines #120

merged 10 commits into from
Oct 6, 2024

Conversation

vinid
Copy link
Collaborator

@vinid vinid commented Sep 8, 2024

No description provided.

textgrad/engine_experimental/base.py Outdated Show resolved Hide resolved
)

@cached
@retry(wait=wait_random_exponential(min=1, max=5), stop=stop_after_attempt(3))
Copy link
Member

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?

Copy link
Collaborator Author

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:
Copy link
Member

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

Copy link
Collaborator Author

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

@vinid vinid force-pushed the fede/sadfactoring-engines branch from d698782 to 4999f1f Compare October 6, 2024 12:09
@vinid vinid merged commit 5061dbe into main Oct 6, 2024
1 check passed
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