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