Skip to content

Commit

Permalink
less token less issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Jun 3, 2023
1 parent 8997776 commit 577d58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def complete_stream(question, docsearch, chat_history, api_key):
messages_combine.append({"role": "system", "content": i["response"]})
messages_combine.append({"role": "user", "content": question})
completion = openai.ChatCompletion.create(model="gpt-3.5-turbo",
messages=messages_combine, stream=True, max_tokens=1000, temperature=0)
messages=messages_combine, stream=True, max_tokens=500, temperature=0)

for line in completion:
if 'content' in line['choices'][0]['delta']:
Expand Down

1 comment on commit 577d58c

@vercel
Copy link

@vercel vercel bot commented on 577d58c Jun 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs-gpt – ./

docs-gpt-git-main-arc53.vercel.app
docs-gpt-brown.vercel.app
docs-gpt-arc53.vercel.app

Please sign in to comment.