Skip to content

The agent engineering platform.

docs(openai): use text property instead of method (#33211)

Mason Daugherty9459ab189ae6
diff --git a/docs/docs/integrations/chat/openai.ipynb b/docs/docs/integrations/chat/openai.ipynb
index d72ffcaf77..2022f6d13c 100644
--- a/docs/docs/integrations/chat/openai.ipynb
+++ b/docs/docs/integrations/chat/openai.ipynb
@@ -713,11 +713,11 @@
"source": [
":::tip\n",
"\n",
- "You can recover just the text content of the response as a string by using `response.text()`. For example, to stream response text:\n",
+ "You can recover just the text content of the response as a string by using `response.text`. For example, to stream response text:\n",
"\n",
"```python\n",
"for token in llm_with_tools.stream(\"...\"):\n",
- " print(token.text(), end=\"|\")\n",
+ " print(token.text, end=\"|\")\n",
"```\n",
"\n",
"See the [streaming guide](/docs/how_to/chat_streaming/) for more detail.\n",