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

ERROR HTTPStatus Exception #80

Open
Charlie-Root opened this issue Dec 29, 2023 · 6 comments
Open

ERROR HTTPStatus Exception #80

Charlie-Root opened this issue Dec 29, 2023 · 6 comments

Comments

@Charlie-Root
Copy link

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
Copy link
Owner

eli64s commented Dec 29, 2023

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
Copy link
Author

Charlie-Root commented Dec 31, 2023

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
Copy link

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
Copy link
Owner

eli64s commented Jan 4, 2024

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

@iceananas
Copy link

@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
Copy link

@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

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

4 participants