---
layout: default
---

# Intercambiabilidad de Modelos

<div class="mt-10 text-sm">

<v-click>

<div class="mb-8">

**Ventaja clave de LangChain:** Cambiar de proveedor sin reescribir código

</div>

</v-click>

<div class="grid grid-cols-2 gap-8">

<v-click>

```typescript
// OpenAI
import { ChatOpenAI } from "@langchain/openai";

const model = new ChatOpenAI({
  model: "gpt-4.1-mini"
});
```

</v-click>

<v-click>

```typescript
// Anthropic Claude
import { ChatAnthropic } from "@langchain/anthropic";

const model = new ChatAnthropic({
  model: "claude-sonnet-4-6"
});
```

</v-click>

</div>

</div>
