Integrations
LangChain
Palico provides complete flexibility over the implementation details of your LLM Application, and as such, you can libraries like LangChain to help build your LLM application logic.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Palico provides complete flexibility over the implementation details of your LLM Application, and as such, you can libraries like LangChain to help build your LLM application logic.
import { Chat } from "@palico-ai/app";
import { ChatOpenAI } from "@langchain/openai";
import { HumanMessage } from "@langchain/core/messages";
const handler: Chat = async ({ userMessage }) => {
const model = new ChatOpenAI({
model: "gpt-4o-mini",
temperature: 0,
});
const response = await model.invoke([
new HumanMessage({ content: userMessage }),
]);
return {
message: response.content,
};
};
