Spaces:
Sleeping
Sleeping
vtrv.vls
commited on
Commit
·
57a81f5
1
Parent(s):
8810f3c
New API
Browse files
utils.py
CHANGED
|
@@ -67,7 +67,9 @@ def generate(content=None, auth_file=None):
|
|
| 67 |
if len(step) >= 2:
|
| 68 |
content_giga.append({'role': 'assistant', 'content': step[1]})
|
| 69 |
|
|
|
|
| 70 |
resp = get_text(content_giga, auth_token['access_token'])
|
|
|
|
| 71 |
|
| 72 |
return resp["choices"][0]["message"]["content"]
|
| 73 |
|
|
|
|
| 67 |
if len(step) >= 2:
|
| 68 |
content_giga.append({'role': 'assistant', 'content': step[1]})
|
| 69 |
|
| 70 |
+
print(content_giga)
|
| 71 |
resp = get_text(content_giga, auth_token['access_token'])
|
| 72 |
+
print(resp)
|
| 73 |
|
| 74 |
return resp["choices"][0]["message"]["content"]
|
| 75 |
|