srush HF staff commited on
Commit
0eeebf4
1 Parent(s): cb3a2e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -62,7 +62,8 @@ def start(prompt, board, api_key):
62
  # num_tokens = encoding.encode(string)
63
  content = ""
64
  openai.api_key = api_key
65
- for chunk in openai.ChatCompletion.create(
 
66
  model="gpt-4o",
67
  messages=[{
68
  "role": "user",
 
62
  # num_tokens = encoding.encode(string)
63
  content = ""
64
  openai.api_key = api_key
65
+
66
+ for chunk in chat_completion = client.chat.completions.create(
67
  model="gpt-4o",
68
  messages=[{
69
  "role": "user",