Skip to content

Commit

Permalink
Merge pull request #899 from lundha/doc-string/update-values-accordin…
Browse files Browse the repository at this point in the history
…g-to-code

Update docstring to reflect default values for `temperature` and `max_tokens` in `create_chat_completion`
  • Loading branch information
assafelovic authored Oct 13, 2024
2 parents 4fc4f59 + 6d7424e commit ead73f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpt_researcher/utils/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ async def create_chat_completion(
Args:
messages (list[dict[str, str]]): The messages to send to the chat completion
model (str, optional): The model to use. Defaults to None.
temperature (float, optional): The temperature to use. Defaults to 0.9.
max_tokens (int, optional): The max tokens to use. Defaults to None.
temperature (float, optional): The temperature to use. Defaults to 0.4.
max_tokens (int, optional): The max tokens to use. Defaults to 4000.
stream (bool, optional): Whether to stream the response. Defaults to False.
llm_provider (str, optional): The LLM Provider to use.
webocket (WebSocket): The websocket used in the currect request,
Expand Down

0 comments on commit ead73f1

Please sign in to comment.