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

CO_API_KEY Error #71

Open
Rahul-Rajan-1411 opened this issue Aug 12, 2024 · 0 comments
Open

CO_API_KEY Error #71

Rahul-Rajan-1411 opened this issue Aug 12, 2024 · 0 comments

Comments

@Rahul-Rajan-1411
Copy link

Hi everyone,

Please help me figure this out. When I run maestro_anypi.py, get the following error:

C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\pydantic_internal_config.py:341: UserWarning: Valid config keys have changed in V2:

  • 'allow_population_by_field_name' has been renamed to 'populate_by_name'
  • 'smart_union' has been removed
    warnings.warn(message, UserWarning)
    Traceback (most recent call last):
    File "C:\Users\Admin\Documents\Protostar Technologies Pvt. Ltd\Cloud Web App\App Dev\Proto-Maestro\maestro_anyapi.py", line 8, in
    from tavily import TavilyClient
    File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\tavily_init_.py", line 4, in
    from .hybrid_rag import TavilyHybridClient
    File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\tavily\hybrid_rag_init_.py", line 1, in
    from .hybrid_rag import TavilyHybridClient
    File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\tavily\hybrid_rag\hybrid_rag.py", line 8, in
    co = cohere.Client()
    ^^^^^^^^^^^^^^^
    File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\cohere\client.py", line 151, in init
    BaseCohere.init(
    File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\cohere\base_client.py", line 128, in init
    raise ApiError(body="The client must be instantiated be either passing in token or setting CO_API_KEY")
    cohere.core.api_error.ApiError: status_code: None, body: The client must be instantiated be either passing in token or setting CO_API_KEY

Can anyone help me with this? I tried to find this online but couldn't find any solution to this? Thanks!

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

No branches or pull requests

1 participant