Skip to content

Commit

Permalink
fix: gpt delete max_tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
hanaisreal committed Feb 15, 2024
1 parent 75bb2a0 commit 9494d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def generate_response(input_messages):
model="gpt-4",
messages=messages,
temperature=0.7, # Adjust for creativity; lower for more precise responses
max_tokens=200, # Adjust based on the length of response you expect; keep it short for 1-3 phrases
# max_tokens=200, # Adjust based on the length of response you expect; keep it short for 1-3 phrases
)

reply = completion.choices[0].message.content
Expand Down

0 comments on commit 9494d52

Please sign in to comment.