micr0-dev / lexido

A terminal assistant, powered by Generative AI
GNU Affero General Public License v3.0
218 stars 8 forks source link

API key not valid #54

Closed cicciocanestro closed 4 months ago

cicciocanestro commented 4 months ago

Describe the bug I write a wrong apikey. It isn' possible to change.

To Reproduce Steps to reproduce the behavior:

  1. Install lexido
  2. launch lexido. It ask "insert api key"
  3. Insert a wrong apikey
  4. See error

2024/04/15 10:30:36 An error occurred: googleapi: Error 400: 2024/04/15 10:30:36 error details: googleapi: got HTTP response code 400 with body: [{ "error": { "code": 400, "message": "API key not valid. Please pass a valid API key.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "API_KEY_INVALID", "domain": "googleapis.com", "metadata": { "service": "generativelanguage.googleapis.com" } } ] } } ]

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other conte

Screenshot 2024-04-15 alle 10 36 12
micr0-dev commented 4 months ago

For the time being you can delete the .lexido folder in your home directory and this will reset it. I will work on a proper fix later today.

On Mon, Apr 15, 2024, 04:38 cicciocanestro @.***> wrote:

Describe the bug I write a wrong apikey. It isn' possible to change.

To Reproduce Steps to reproduce the behavior:

  1. Install lexido
  2. launch lexido. It ask "insert api key"
  3. Insert a wrong apikey
  4. See error

2024/04/15 10:30:36 An error occurred: googleapi: Error 400: 2024/04/15 10:30:36 error details: googleapi: got HTTP response code 400 with body: [{ "error": { "code": 400, "message": "API key not valid. Please pass a valid API key.", "status": "INVALID_ARGUMENT", "details": [ { @.*** https://github.com/type": " type.googleapis.com/google.rpc.ErrorInfo", "reason": "API_KEY_INVALID", "domain": "googleapis.com", "metadata": { "service": "generativelanguage.googleapis.com" } } ] } } ]

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macs os
  • Version Sonoma 14.4.1

Additional context Add any other conte Screenshot.2024-04-15.alle.10.36.12.png (view on web) https://github.com/micr0-dev/lexido/assets/46886166/217e25f0-8e17-4fd0-baf2-f1ed028a9ae8

— Reply to this email directly, view it on GitHub https://github.com/micr0-dev/lexido/issues/54, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGJEUKXMSRMFQBNUQRQU7HTY5OGYNAVCNFSM6AAAAABGG4MISCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2DGMBVG4YDIOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>