leap,\nIt takes its place, in nature's keep.\nA symbol of untamed delight,\nThe bear, a wonder, day and night.\n\nSo let us honor this noble beast,\nIn forests where its soul finds peace.\nFor in its presence, we come to know,\nThe untamed spirit that in us also flows.")# We can always just configure only one if we wantchain.with_config(configurable={"llm": "openai"}).invoke({"topic": "bears"})    AIMessage(content="Sure, here's a bear joke for you:\n\nWhy don't bears wear shoes?\n\nBecause they have bear feet!")Saving configurations‚ÄãWe can also easily save configured chains as their own objectsopenai_poem = chain.with_config(configurable={"llm": "openai"})openai_poem.invoke({"topic": "bears"})    AIMessage(content="Why don't bears wear shoes?\n\nBecause they have bear feet!")PreviousBind runtime argsNextAdd fallbacksWith LLMsWith PromptsWith Prompts and LLMsSaving configurationsCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
Oftentimes you may want to experiment with, or even expose to the end user, multiple different ways of doing things.
Oftentimes you may want to experiment with, or even expose to the end user, multiple different ways of doing things. ->: leap,\nIt takes its place, in nature's keep.\nA symbol of untamed delight,\nThe bear, a wonder, day and night.\n\nSo let us honor this noble beast,\nIn forests where its soul finds peace.\nFor in its presence, we come to know,\nThe untamed spirit that in us also flows.")# We can always just configure only one if we wantchain.with_config(configurable={"llm": "openai"}).invoke({"topic": "bears"})    AIMessage(content="Sure, here's a bear joke for you:\n\nWhy don't bears wear shoes?\n\nBecause they have bear feet!")Saving configurations‚ÄãWe can also easily save configured chains as their own objectsopenai_poem = chain.with_config(configurable={"llm": "openai"})openai_poem.invoke({"topic": "bears"})    AIMessage(content="Why don't bears wear shoes?\n\nBecause they have bear feet!")PreviousBind runtime argsNextAdd fallbacksWith LLMsWith PromptsWith Prompts and LLMsSaving configurationsCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.