From 260c3ce8a4beb81bc05112670f288994b757bd9b Mon Sep 17 00:00:00 2001 From: Julian Risch Date: Tue, 1 Sep 2026 22:51:40 +0200 Subject: [PATCH] docs: drop OpenAIGenerator comparison from tutorial 40 OpenAIGenerator was removed in Haystack 3.0, so the sentence contrasting it with OpenAIChatGenerator and the link to the Generators vs Chat Generators guide no longer apply. Co-Authored-By: Claude Fable 5.1 --- .../40_Building_Chat_Application_with_Function_Calling.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/40_Building_Chat_Application_with_Function_Calling.ipynb b/tutorials/40_Building_Chat_Application_with_Function_Calling.ipynb index 5843b9f9..ac35fb8c 100644 --- a/tutorials/40_Building_Chat_Application_with_Function_Calling.ipynb +++ b/tutorials/40_Building_Chat_Application_with_Function_Calling.ipynb @@ -89,7 +89,7 @@ "source": [ "## Learning about the OpenAIChatGenerator\n", "\n", - "[OpenAIChatGenerator](https://docs.haystack.deepset.ai/docs/openaichatgenerator) is a component that supports the function calling feature of OpenAI through Chat Completion API. In contrary to `OpenAIGenerator`, the way to communicate with `OpenAIChatGenerator` is through [`ChatMessage`](https://docs.haystack.deepset.ai/docs/data-classes#chatmessage) list. Read more about the difference between them in [Generators vs Chat Generators](https://docs.haystack.deepset.ai/docs/generators-vs-chat-generators).\n", + "[OpenAIChatGenerator](https://docs.haystack.deepset.ai/docs/openaichatgenerator) is a component that supports the function calling feature of OpenAI through Chat Completion API. The way to communicate with `OpenAIChatGenerator` is through a list of [`ChatMessage`](https://docs.haystack.deepset.ai/docs/data-classes#chatmessage) objects.\n", "\n", "\n", "To start working with the `OpenAIChatGenerator`, create a `ChatMessage` object with \"SYSTEM\" role using `ChatMessage.from_system()` and another `ChatMessage` with \"USER\" role using `ChatMessage.from_user()`. Then, pass this messages list to `OpenAIChatGenerator` and run:"