forked from React-Group/interstellar_ai
fixed stuff with the backend and the pesky cpython cache
This commit is contained in:
parent
b924d30616
commit
7b6f91c117
3 changed files with 11 additions and 9 deletions
4
py/ai.py
4
py/ai.py
|
@ -12,13 +12,9 @@ class AI:
|
|||
options={"temperature": 0.5},
|
||||
)
|
||||
|
||||
for i in messages:
|
||||
print(i)
|
||||
|
||||
return_class.ai_response[access_token] = ""
|
||||
|
||||
for chunk in stream:
|
||||
print(chunk['message']['content'])
|
||||
return_class.ai_response[access_token] += chunk['message']['content']
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue