660 B
660 B
layout
| layout |
|---|
| default |
Intercambiabilidad de Modelos
// Google Gemini
import { ChatGoogle } from "@langchain/google";
const model = new ChatGoogle({
model: "gemini-2.5-flash"
});
// Ollama (Local)
import { ChatOllama } from "@langchain/ollama";
const model = new ChatOllama({
model: "llama3.2"
});
⚡ Todos usan la misma interfaz:
.invoke(), .stream(), .batch()