Replies: 5 comments 3 replies
-
|
Quick heads-up that will save you a lot of time: a ChatGPT Plus/Pro subscription doesn't include API access — they're two separate products with separate billing.
There's no way to "connect" the subscription to LiteLLM (or to any other API client), because the subscription doesn't authenticate against the API endpoints LiteLLM calls. The login link you got was probably from LiteLLM's own SSO/admin login flow, not an OpenAI auth flow. To use OpenAI models through LiteLLM you need:
model_list:
- model_name: gpt-4o
litellm_params:
model: openai/gpt-4o
api_key: os.environ/OPENAI_API_KEYIf you'd rather not pay separately for API credit, LiteLLM also supports a bunch of other providers (Anthropic, Gemini, Groq, OpenRouter, local Ollama, etc.) — same client, different |
Beta Was this translation helpful? Give feedback.
-
|
Hey there, I can see the frustration with getting your ChatGPT subscription hooked up to LiteLLM. We've run into similar hiccups when integrating API-based models in production, especially with config setups on hosted environments like Dokploy. Let's walk through this step by step to make sure you're on track. First, ensure your model_list:
- model_name: chatgpt
litellm_params:
model: gpt-3.5-turbo
api_key: sk-your-openai-api-key-hereAfter saving this, running |
Beta Was this translation helpful? Give feedback.
-
|
You need to make sure you're using an API key from the OpenAI API, not a ChatGPT subscription. Here's how you can integrate it with LiteLLM using a config file: models:
openai:
enabled: true
api_key: "your-openai-api-key"Run |
Beta Was this translation helpful? Give feedback.
-
|
The responses here makes no sense, the official docs say it's possible, but folks here say it's not!. |
Beta Was this translation helpful? Give feedback.
-
|
I have been battling for a few hours following the docs and attempting variations, I am able to attempt the device flow via the logs after adding the model and if I am quick I to auth I can avoid a restart loop, but then it still doesnt work. I get invalid model/doesnt exist. If I am a bit slow with the device flow then the pods go into restart loops. Edit: I finally got it working, you can only do it via config, not via UI. You have to check the logs and very quickly do the device flow on all pods (I run it on my talos homelab). It only works for responses. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I searched for it like 1 hour but could find and connect my subscription to litellm. I'm hosting on dokploy. I tried creating a config.yaml file and adding models in it then ran litellm --config config.yaml and it showed me a login link and I loged in but nothing happened.
Beta Was this translation helpful? Give feedback.
All reactions