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: failed to make request #8

Closed
ancientcatz opened this issue Jul 4, 2023 · 2 comments
Closed

Error: failed to make request #8

ancientcatz opened this issue Jul 4, 2023 · 2 comments

Comments

@ancientcatz
Copy link

~ $ chatgpt -l
Error: failed to make request: Get "https://api.openai.com/v1/models": dial tcp: lookup api.openai.com on [::1]:53: read udp [::1]:46086->[::1]:53: read: connection refused
Usage:
  chatgpt [flags]

Flags:
      --clear-history        Clear all prior conversation context for the current thread
  -c, --config               Display the configuration
  -h, --help                 help for chatgpt
  -i, --interactive          Use interactive mode
  -l, --list-models          List available models
  -q, --query                Use query mode instead of stream mode
      --set-max-tokens int   Set a new default max token size by specifying the max tokens
      --set-model string     Set a new default GPT model by specifying the model name
  -v, --version              Display the version information

failed to make request: Get "https://api.openai.com/v1/models": dial tcp: lookup api.openai.com on [::1]:53: read udp [::1]:46086->[::1]:53: read: connection refused
~ $ chatgpt -c
name: openai
api_key: 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
model: gpt-3.5-turbo
max_tokens: 4096
thread: default
omit_history: false
url: https://api.openai.com
completions_path: /v1/chat/completions
models_path: /v1/models
@kardolus
Copy link
Owner

kardolus commented Jul 5, 2023

Thanks for reaching out.

Are you still having this error? I think it may have been temporary for I am not having this issue. You may want to try hitting the endpoint directly to confirm you can hit it:

curl https://api.openai.com/v1/models -H "Authorization: Bearer $OPENAI_API_KEY" | jq .

@kardolus
Copy link
Owner

kardolus commented Jul 7, 2023

I assume this was resolved, let me know if you continue to have the issue.

@kardolus kardolus closed this as completed Jul 7, 2023
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

2 participants