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

Fix typo's within converter.py #645

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

theCyberTech
Copy link
Contributor

Fiexed Type errors

attemps > attempts

Fiexed Type errors

attemps > attempts
@theCyberTech theCyberTech changed the title Update converter.py Fix typo's within converter.py May 20, 2024
@@ -64,7 +64,7 @@ def _create_instructor(self):

inst = Instructor(
llm=self.llm,
max_attemps=self.max_attemps,
max_attemps=self.max_attempts,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should check the "parameter" of the Instructor class max_attemps

Copy link
Contributor Author

Choose a reason for hiding this comment

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

could not find reference to max_attemps anywhere else apart from tools_usage.py which has now been updated an commited to this PR

Updated line 293 max_attemps > max_attempts
@@ -22,7 +22,7 @@ class Converter(BaseModel):
llm: Any = Field(description="The language model to be used to convert the text.")
model: Any = Field(description="The model to be used to convert the text.")
instructions: str = Field(description="Conversion instructions to the LLM.")
max_attemps: Optional[int] = Field(
max_attempts: Optional[int] = Field(
description="Max number of attemps to try to get the output formated.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same typo here, right!?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also formated.

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.

None yet

3 participants