openai-cookbook
openai-cookbook copied to clipboard
Examples and guides for using the OpenAI API
## Summary Processing and narrating a video with GPT's visual capabilities and the TTS API. Update existing cookbooks to use gpt-4o-mini. ## Motivation Update existing cookbooks to use gpt-4o-mini. ---...
This file says that multi-turn conversations are collapsed and only the last message is used during fine-tuning: https://github.com/openai/openai-cookbook/blob/main/examples/How_to_finetune_chat_models.ipynb While the documentation [here](https://platform.openai.com/docs/guides/fine-tuning/multi-turn-chat-examples) contradicts that, saying that multi-turn conversations will be...
- Adding the library Product Manager Prompts for Generative AI - [Product Manager Prompts for Generative AI](https://github.com/deanpeters/product-manager-prompts): ## Summary Open-source prompts built on well-known, often-practiced product manager tools, techniques, and...
## Summary Add CrateDB to vector databases. The change is minimal though. --- ## For new content When contributing new content, read through our [contribution guidelines](https://github.com/openai/openai-cookbook/blob/main/CONTRIBUTING.md), and mark the following...
environment:ubuntu=20.04 + transformers=4.42.4 + openai=1.30.5 + vllm=0.5.2 I use vllm as server and openai as client and using similar code from website:https://github.com/openai/openai-cookbook/blob/main/examples/How_to_call_functions_with_chat_models.ipynb but result show no function info to call....
Renamed the `examples/data/hotel_invoices/extract_invoice_json` to `examples/data/hotel_invoices/extract_invoice_json_` since there was already another directory with the same name in hotel_invoices. It also threw an error while cloning the repository in windows machine.
## Summary Fixed spelling in the prompt question. ## Motivation Misspelled content stops reading flow. In case it was intentionally misspelled to demonstrate robustness, I propose a (sic) or something.
[PROBLEM]
**Identify the file to be fixed** examples/Chat_finetuning_data_prep.ipynb **Describe the problem** Raises exception if the fine-tuning messages include "weight" keys. **Describe a solution** The problem is here: ``` for key, value...
### Summary This PR adds a new notebook that demonstrates how to use the Whisper API to transcribe text from your device's microphone. The notebook includes steps to record audio,...