Skip to content

Commit

Permalink
Use JSON OAI mode
Browse files Browse the repository at this point in the history
  • Loading branch information
j2whiting authored May 9, 2024
1 parent 3e6e3ea commit 1dd8d39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gollm/openai/tool_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def model_config_chain(research_paper: str, amr: str) -> dict:
frequency_penalty=0,
presence_penalty=0,
seed=123,
response_format={ "type": "json_object" },
messages=[
{"role": "user", "content": prompt},
],
Expand Down Expand Up @@ -158,6 +159,7 @@ def config_from_dataset(amr: str, model_mapping: str, datasets: List[str]) -> st
presence_penalty=0,
seed=123,
max_tokens=4000,
response_format={ "type": "json_object" },
messages=[
{"role": "user", "content": prompt},
],
Expand Down

0 comments on commit 1dd8d39

Please sign in to comment.