Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -23,13 +23,13 @@ async def solve_dsa_problem(item: DSAPrompt):
|
|
| 23 |
If the input is not a DSA problem, politely refuse their request and reinsist to provide a DSA problem.
|
| 24 |
'''
|
| 25 |
|
| 26 |
-
res = llm.create_chat_completion(
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
)
|
| 34 |
|
| 35 |
-
return
|
|
|
|
| 23 |
If the input is not a DSA problem, politely refuse their request and reinsist to provide a DSA problem.
|
| 24 |
'''
|
| 25 |
|
| 26 |
+
# res = llm.create_chat_completion(
|
| 27 |
+
# messages=[
|
| 28 |
+
# {"role": "system", "content": system_prompt},
|
| 29 |
+
# {"role": "user", "content": item.prompt}
|
| 30 |
+
# ],
|
| 31 |
+
# temperature = 0.7,
|
| 32 |
+
# max_tokens = 2048,
|
| 33 |
+
# )
|
| 34 |
|
| 35 |
+
return llm(item.prompt, temperature = 0.9, max_tokens = 2048)
|