openai-cookbook
openai-cookbook copied to clipboard
Examples and guides for using the OpenAI API
charcter -> character
I’ve been trying to generate an exact JSON schema using the new gpt-4-0613 checkpoint using the function calling feature. I have a function that saves the generated json object to...
**Identify the file to be fixed** As we can see in the documentation [here ](https://platform.openai.com/docs/api-reference/moderations) the api flags true "I want to kill them." but not other bad words like...
examples/data
https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb
Add support for gpt-3.5-*-0613 models in the `num_tokens_from_messages()` function
My PR updates the file with improved language and clarity. I've also made some minor changes to improve readability.
The new [function calling API](https://openai.com/blog/function-calling-and-other-api-updates) is neat, but there's no docs anywhere I can find which tell you how many tokens your functions will cost. Can you update the [sample...