Skip to content

Commit

Permalink
Added temperature parameter to RequestBody
Browse files Browse the repository at this point in the history
This addresses #1018 by adding the temperature parameter to RequestBody.
  • Loading branch information
kwilsonmg committed Sep 25, 2024
1 parent f1fb185 commit 366fc28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions instructor/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class RequestBody(BaseModel):
model: Union[openai_models, str]
messages: list[dict[str, Any]]
max_tokens: int = Field(default=1000)
temperature: float = Field(default=1.0)
tools: list[Tool]
tool_choice: dict[str, Any]

Expand Down

0 comments on commit 366fc28

Please sign in to comment.