danishjameel003 commited on
Commit
67c01ec
·
verified ·
1 Parent(s): 160fbe1

Update app.py

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