How to fine-tune chat models (Chunk 5)
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY", "")

Fine-tuning works best when focused on a particular domain. It's important to make sure your dataset is both focused enough for the model to learn, but general enough that unseen examples won't be missed. Having this in mind, we have extracted a subset from the RecipesNLG dataset to only contain documents from www.cookbooks.com.