eli64s / readme-ai

README file generator, powered by large language model APIs 👾
MIT License
1.34k stars 143 forks source link

ERROR HTTPStatus Exception #80

Open Charlie-Root opened 6 months ago

Charlie-Root commented 6 months ago

When using the provided example command:

docker run -it \ -e OPENAI_API_KEY=xxx \ -v "$(pwd)":/app zeroxeli/readme-ai:latest \ -r https://github.com/eli64s/readme-ai

I keep getting this error:

ERROR HTTPStatus Exception: Client error '404 Not Found' for url 'https://api.openai.com/v1/chat/completions' For more information check: https://httpstatuses.com/404

Tried with both free and paid API key, as well as the PIP install and the docker one. All result in same error.

eli64s commented 6 months ago

Hi @Charlie-Root, thanks for reporting the issue. A few initial questions to start are below.

  1. What OS are you using?
  2. Did you export your OpneAI API key before running the CLI?
  3. Have you installed the latest version of readme-ai with pip?

The current version should be 0.4.79. You can check which version you have installed on your system using the command:

pip list

To upgrade the package you can use the command:

pip install readmeai --upgrade

While we debug your issue, have you checked out our Streamlit app for readme-ai? You can generate readme.md files in your browser using the web-app with the link below.

Streamlit App

Thank you, Eli

Charlie-Root commented 6 months ago

What OS are you using?

Arch Linux

Did you export your OpneAI API key before running the CLI?

I did, as i said both paid and free version was tried.

Have you installed the latest version of readme-ai with pip?

As said, both (latest) PIP install as well as Docker was tried.

edit; Just tried your Streamlit URL and it also throws that error on every repo i try.

iceananas commented 6 months ago

Hi,

I have the same issue. Im on Pop!_OS 22.04 with paid OpenAI API key, running the latest version (0.4.79).

eli64s commented 6 months ago

@iceananas can you try the latest version readmeai 0.4.988 when you get a moment?

iceananas commented 6 months ago

@eli64s It's still the same sadly, I updated to 0.4.999.

But I am actually getting '401 Unauthorized' for url 'https://api.openai.com/v1/chat/completions' as error message. This is the command that I use inside the repository that I want my readme:

readmeai -k "sk-*************************" -r . -b flat-square (removed api key for obvious reasons)

Th3Heavy commented 6 months ago

@eli64sC'est toujours pareil malheureusement, j'ai mis à jour vers 0.4.999.

Mais je reçois en fait '401 Unauthorized' for url 'https://api.openai.com/v1/chat/completions'un message d'erreur. C'est la commande que j'utilise dans le référentiel dont je veux mon fichier readme :

readmeai -k "sk-*************************" -r . -b flat-square (clé API supprimée pour des raisons évidentes)

same error: 401 try simple curl to the endpoint with my api key it's ok