docs: Change saved/configured chain variable name (#18863)

**Description:**
Variable name was `openai_poem` but it didn't pass in the `"prompt":
"poem"` config, so the examples were showing a joke being returned from
a variable called `*_poem`.

We could have gone one of two ways:

1. Updating the config line and the output line, or
2. Updating the variable name

The latter seemed simpler, so that's what I went with. But I'd be glad
to re-do this PR if you prefer the former.

Thanks for everything, y'all. You rock 🤘

**Issue:** N/A

**Dependencies:** N/A

**Twitter handle:** `conroywhitney`
This commit is contained in:
Conroy Whitney 2024-03-11 14:59:24 -05:00 committed by GitHub
parent 8544f748f2
commit 96d7fe0f85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -557,7 +557,7 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"openai_poem = chain.with_config(configurable={\"llm\": \"openai\"})" "openai_joke = chain.with_config(configurable={\"llm\": \"openai\"})"
] ]
}, },
{ {
@ -578,7 +578,7 @@
} }
], ],
"source": [ "source": [
"openai_poem.invoke({\"topic\": \"bears\"})" "openai_joke.invoke({\"topic\": \"bears\"})"
] ]
}, },
{ {