Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Perplexity copilot to Terminal Pro #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

DidierRLopes
Copy link
Contributor

@minhhoang1023
Copy link

minhhoang1023 commented Aug 29, 2024

@DidierRLopes I followed the README and came across an error. Not sure why I had to add my OpenAI key as this is perplexity. Also if i need to add it, it'd be good to include this in the readme. Once i added, everything worked

File "/Users/minh/Library/Caches/pypoetry/virtualenvs/perplexity-copilot-ggaLRHJn-py3.11/lib/python3.11/site-packages/uvicorn/importer.py", line 19, in import_from_string module = importlib.import_module(module_str) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1206, in _gcd_import File "<frozen importlib._bootstrap>", line 1178, in _find_and_load File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/Users/minh/Desktop/DareData/GameStonk/copilot-for-terminal-pro/perplexity-copilot/perplexity_copilot/main.py", line 37, in <module> client = OpenAI( ^^^^^^^ File "/Users/minh/Library/Caches/pypoetry/virtualenvs/perplexity-copilot-ggaLRHJn-py3.11/lib/python3.11/site-packages/openai/_client.py", line 105, in __init__ raise OpenAIError( openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants