You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/panchajanya/Development/work/Assistant/test.py", line 1, in<module>
from assistant import AIAssistant
File "/home/panchajanya/Development/work/Assistant/assistant.py", line 2, in<module>
from openai import OpenAI
ImportError: cannot import name 'OpenAI' from 'openai' (/home/panchajanya/Development/work/Assistant/lib/python3.11/site-packages/openai/__init__.py)
I just created a custom retrieval chat function
fromassistantimportAIAssistantassistant=AIAssistant(
instruction=""" You are a helpful agent that helps user with their question about LLMs.""",
model="gpt-4-1106-preview",
use_retrieval=True,
)
file_id=assistant.upload_file("assistants_files/Mankind_v1.1.csv")
assistant.chat(file_ids=[file_id])
The text was updated successfully, but these errors were encountered:
Installed requiremnts.txt
getting this.
I just created a custom retrieval chat function
The text was updated successfully, but these errors were encountered: