Spaces:
Running
Running
Update app.py
Browse files
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-
|
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
|