openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

Examples and guides for using the OpenAI API

Results 581 openai-cookbook issues
Sort by recently updated
recently updated
newest added
trafficstars

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...

support

**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...

bug

https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb

support

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...