Skip to content

Commit

Permalink
'ok'
Browse files Browse the repository at this point in the history
  • Loading branch information
maso0310 committed Apr 10, 2023
1 parent 143318d commit 563d1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

def GPT_response(text):
# 接收回應
response = openai.Completion.create(model="gpt-3.5-turbo", prompt=text, temperature=0, max_tokens=200)
response = openai.ChatCompletion.create(model="gpt-3.5-turbo", prompt=text, temperature=0.7, max_tokens=500)
print(response)
# 重組回應
answer = response['choices'][0]['text'].replace('\n','').replace('。','')
Expand Down

0 comments on commit 563d1f7

Please sign in to comment.