OpenAI ChatGPT API error: “InvalidRequestError: Unrecognized request argument supplied: messages”

Problem You used the wrong method name to get a completion. When using the OpenAI SDK (Python or Node.js), you need to use the right method name. Which method name is the right one? It depends on the OpenAI model you want to use. Solution The tables below will help you figure out which method … Read more

OpenAI API error 429: “You exceeded your current quota, please check your plan and billing details” [closed]

TL;DR: You need to upgrade to a paid plan. Set up a paid account, add a credit or debit card, and generate a new API key if your old one was generated before the upgrade. It might take 10 minutes or so after you upgrade to a paid plan before the paid account becomes active … Read more

OpenAI API: How do I count tokens before(!) I send an API request?

As stated in the official OpenAI article: To further explore tokenization, you can use our interactive Tokenizer tool, which allows you to calculate the number of tokens and see how text is broken into tokens. Alternatively, if you’d like to tokenize text programmatically, use Tiktoken as a fast BPE tokenizer specifically used for OpenAI models. … Read more

OpenAI ChatGPT (GPT-3.5) API error 429: “You exceeded your current quota, please check your plan and billing details” [closed]

TL;DR: You need to upgrade to a paid plan. Set up a paid account, add a credit or debit card, and generate a new API key if your old one was generated before the upgrade. It might take 10 minutes or so after you upgrade to a paid plan before the paid account becomes active … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)