danishjameel003 commited on
Commit
2139002
·
verified ·
1 Parent(s): 7813fd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def generate_openai_response(instruction, context=None):
28
  if context:
29
  messages.append({"role": "user", "content": f"Context: {context}"})
30
  response = openai.ChatCompletion.create(
31
- model="gpt-3.5-turbo", # Use GPT-3.5 Turbo for cost savings
32
  messages=messages,
33
  max_tokens=1200,
34
  temperature=0.7
 
28
  if context:
29
  messages.append({"role": "user", "content": f"Context: {context}"})
30
  response = openai.ChatCompletion.create(
31
+ model="gpt-4", # Updated to use GPT-4
32
  messages=messages,
33
  max_tokens=1200,
34
  temperature=0.7