pvanand commited on
Commit
5284944
·
verified ·
1 Parent(s): 60ea137

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -105,7 +105,7 @@ def chat_with_llama_stream(messages, model="gpt-3.5-turbo", max_llm_history=4, m
105
  )
106
 
107
  full_response = ""
108
- for event in openai_stream:
109
  if "content" in event["choices"][0].delta:
110
  current_response = event["choices"][0].delta.content
111
  full_response +=current_response
 
105
  )
106
 
107
  full_response = ""
108
+ for event in response:
109
  if "content" in event["choices"][0].delta:
110
  current_response = event["choices"][0].delta.content
111
  full_response +=current_response