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

Allow to change temperature of research #112

Merged
merged 4 commits into from
Sep 16, 2024
Merged

Allow to change temperature of research #112

merged 4 commits into from
Sep 16, 2024

Conversation

kongzii
Copy link
Collaborator

@kongzii kongzii commented Sep 13, 2024

No description provided.

@@ -20,20 +20,21 @@ def research(
goal: str,
tavily_api_key: SecretStr,
model: str = "gpt-4-0125-preview",
temperature: float = 0.7,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

0.7 is the default value in Langchain that was used before

@@ -1182,6 +1182,8 @@ def make_prediction(
additional_information: str,
temperature: float = 0.7,
engine: str = "gpt-3.5-turbo-0125",
log_probs: bool = False,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Getting probability from log_probs was an experiment and isn't used in the end. Plus it's not supported by new models, so let's just default to False.

@evangriffiths evangriffiths self-requested a review September 16, 2024 13:05
@kongzii kongzii merged commit 32bdf95 into main Sep 16, 2024
1 check passed
@kongzii kongzii deleted the peter/teperature branch September 16, 2024 14:05
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