Skip to content

Commit

Permalink
Merge pull request #1311 from chenchun0629/main
Browse files Browse the repository at this point in the history
LLMConfig add seed
  • Loading branch information
geekan authored Oct 20, 2024
2 parents cca28df + c1c2aca commit 8387e28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metagpt/configs/llm_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@Author : alexanderwu
@File : llm_config.py
"""

from enum import Enum
from typing import Optional

Expand Down Expand Up @@ -77,6 +78,7 @@ class LLMConfig(YamlModel):
best_of: Optional[int] = None
n: Optional[int] = None
stream: bool = True
seed: Optional[int] = None
# https://cookbook.openai.com/examples/using_logprobs
logprobs: Optional[bool] = None
top_logprobs: Optional[int] = None
Expand Down

0 comments on commit 8387e28

Please sign in to comment.