Skip to content

Commit

Permalink
fix: test openai problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
EstrellaXD committed Sep 23, 2024
1 parent 8972373 commit d5b84b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/module/parser/analyser/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def _prepare_params(self, text: str, prompt: str) -> dict[str, Any]:
dict(role="system", content=prompt),
dict(role="user", content=text),
],

# set temperature to 0 to make results be more stable and reproducible.
temperature=0,
)
Expand Down

0 comments on commit d5b84b9

Please sign in to comment.