# Supported Models

## ⚠️ DEPRECATED - Use ai.libx.js Instead

**This file is kept for backwards compatibility only.**

All code should now import from **ai.libx.js**:

```typescript
import { supportedModels } from 'ai.libx.js';
```

### Why?

- **Single source of truth** - ai.libx.js maintains the canonical model list
- **No sync issues** - One list, always up-to-date
- **Well-maintained** - ai.libx.js is actively maintained with latest models
- **Better documentation** - See [ai.libx.js README](https://github.com/Livshitz/ai.libx.js)

## Adding or Modifying Models

~~Simply edit `src/worker/supported-models.ts` directly.~~

**NEW:** Contribute to [ai.libx.js models.ts](https://github.com/Livshitz/ai.libx.js/blob/main/src/models.ts) instead.

### Model Format

```typescript
export const supportedModels = {
  "provider/model-name": {
    displayName: "Human Readable Name",
    enabled: true,          // optional, defaults to true
    noSystem: true,         // optional, model doesn't support system prompts
    noChat: true,           // optional, not suitable for chat
    reasoning: true,        // optional, has reasoning capabilities
    imageInput: true,       // optional, supports image input
    imageGen: true,         // optional, can generate images
    responseModalities: ["Text", "Image"],  // optional
    url: "https://..."      // optional, custom API endpoint
  }
} as const;
```

## Benefits

- **Single file** - No JSON→TS conversion needed
- **No build step** - Edit and build immediately
- **TypeScript native** - Full type checking and IDE support
- **Can add comments** - Document models directly in the file
- **Simpler** - Less complexity, fewer files







