You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched the LangChain documentation with the integrated search.
I used the GitHub search to find a similar question and didn't find it.
I am sure that this is a bug in LangChain rather than my code.
Example Code
from langchain_openai import OpenAI
lm_runnable = (
OpenAI(temperature=0, openai_api_key="nothing")
.configurable_alternatives(
ConfigurableField(id="llm"),
default_key="openai",
prefix_keys=False)
.configurable_fields(
temperature=ConfigurableField(
id="llm_temperature",
name="LLM Temperature",
description="The temperature of the LLM",
)
)
)
Error Message and Stack Trace (if applicable)
pydantic.v1.error_wrappers.ValidationError: 1 validation error for RunnableConfigurableAlternatives
prefix_keys
field required (type=value_error.missing)
Description
I'm trying to add configure_fields to the existing configure_alternatives instance but I got the below exception.
The text was updated successfully, but these errors were encountered:
dosubotbot
added
🔌: openai
Primarily related to OpenAI integrations
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
labels
Feb 22, 2024
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I'm trying to add configure_fields to the existing configure_alternatives instance but I got the below exception.
System Info
The text was updated successfully, but these errors were encountered: