Skip to content

The agent engineering platform.

IMPROVEMENT pirate-speak-configurable alternatives env vars (#13395)

Nuno Camposa632f61f3d35
diff --git a/templates/pirate-speak-configurable/pirate_speak_configurable/chain.py b/templates/pirate-speak-configurable/pirate_speak_configurable/chain.py
index 2372ba9d0b..a385f22036 100644
--- a/templates/pirate-speak-configurable/pirate_speak_configurable/chain.py
+++ b/templates/pirate-speak-configurable/pirate_speak_configurable/chain.py
@@ -14,8 +14,8 @@ _prompt = ChatPromptTemplate.from_messages(
_model = ChatOpenAI().configurable_alternatives(
ConfigurableField(id="llm_provider"),
default_key="openai",
- anthropic=ChatAnthropic(),
- cohere=ChatCohere(),
+ anthropic=ChatAnthropic,
+ cohere=ChatCohere,
)
# if you update this, you MUST also update ../pyproject.toml