Files
curso-langchain/slides/pages/models/08b.md
T
2026-05-29 11:50:55 +02:00

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()