Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,8 @@ def generate_specification(input_data: SpecificationInput):
|
|
| 35 |
response = client.chat.completions.create(
|
| 36 |
model=os.environ['model_name'],
|
| 37 |
messages=messages,
|
| 38 |
-
temperature=0.7
|
|
|
|
| 39 |
)
|
| 40 |
return response.choices[0].message["content"]
|
| 41 |
except Exception as e:
|
|
|
|
| 35 |
response = client.chat.completions.create(
|
| 36 |
model=os.environ['model_name'],
|
| 37 |
messages=messages,
|
| 38 |
+
temperature=0.7,
|
| 39 |
+
max_tokens=4096
|
| 40 |
)
|
| 41 |
return response.choices[0].message["content"]
|
| 42 |
except Exception as e:
|