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

Me aparece el error API incorrecta de pinecone #7

Open
CybercodeXx opened this issue Nov 6, 2023 · 0 comments
Open

Me aparece el error API incorrecta de pinecone #7

CybercodeXx opened this issue Nov 6, 2023 · 0 comments

Comments

@CybercodeXx
Copy link

Tengo configurada mi variable de entorno con la api de Open AI pinecone y la región
Pero me aparece este error cuando entro a usar autogpt

Generador de codigo has been created with the following details:
Name: Generador de codigo
Role: is an AI specialized in solving coding problems and crafting advanced, optimized, and modern code across any programming language. It's designed to facilitate software development with intelligent and adaptive solutions that enhance code quality and efficiency
Goals:

  • Solve complex programming problems and debug code efficiently.
  • Develop optimized and clean code following best programming practices.
  • Create innovative software solutions leveraging the latest technologies and frameworks.
  • Automate development tasks to speed up the software lifecycle.
  • Generate advanced algorithms for data processing and machine learning.
    Traceback (most recent call last):
    File "", line 198, in _run_module_as_main
    File "", line 88, in _run_code
    File "/data/data/com.termux/files/home/AutoGPT-for-Android/autogpt/main.py", line 5, in
    autogpt.cli.main()
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/click/core.py", line 1157, in call
    return self.main(*args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
    ^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/click/core.py", line 1666, in invoke
    rv = super().invoke(ctx)
    ^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/home/AutoGPT-for-Android/autogpt/cli.py", line 84, in main
    run_auto_gpt(
    File "/data/data/com.termux/files/home/AutoGPT-for-Android/autogpt/main.py", line 115, in run_auto_gpt
    memory = get_memory(cfg, init=True)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/home/AutoGPT-for-Android/autogpt/memory/init.py", line 20, in get_memory
    memory = PineconeMemory(cfg)
    ^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/home/AutoGPT-for-Android/autogpt/singleton.py", line 15, in call
    cls._instances[cls] = super(Singleton, cls).call(*args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/home/AutoGPT-for-Android/autogpt/memory/pinecone.py", line 28, in init
    if table_name not in pinecone.list_indexes():
    ^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pinecone/manage.py", line 185, in list_indexes
    response = api_instance.list_indexes()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pinecone/core/client/api_client.py", line 776, in call
    return self.callable(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pinecone/core/client/api/index_operations_api.py", line 1132, in __list_indexes
    return self.call_with_http_info(**kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pinecone/core/client/api_client.py", line 838, in call_with_http_info
    return self.api_client.call_api(
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pinecone/core/client/api_client.py", line 413, in call_api
    return self.__call_api(resource_path, method,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pinecone/core/client/api_client.py", line 207, in __call_api
    raise e
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pinecone/core/client/api_client.py", line 200, in __call_api
    response_data = self.request(
    ^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pinecone/core/client/api_client.py", line 439, in request
    return self.rest_client.GET(url,
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pinecone/core/client/rest.py", line 236, in GET
    return self.request("GET", url,
    ^^^^^^^^^^^^^^^^^^^^^^^^
    File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pinecone/core/client/rest.py", line 219, in request
    raise UnauthorizedException(http_resp=r)
    pinecone.core.client.exceptions.UnauthorizedException: (401)
    Reason: Unauthorized
    HTTP response headers: HTTPHeaderDict({'www-authenticate': 'API key is missing or invalid for the environment "us-west1-gcp". Check that the correct environment is specified.', 'content-length': '114', 'date': 'Mon, 06 Nov 2023 13:15:35 GMT', 'server': 'envoy'})
    HTTP response body: API key is missing or invalid for the environment "us-west1-gcp". Check that the correct environment is specified.

Ya verifiqué y todo está bien y me sigue apareciendo este error

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