Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
pull_request:

permissions:
contents: read
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/update-models.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
dist/
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ During authentication, you will need a [CoreInfra AI Hub](https://hub.coreinfra.

## Features

- **Up-to-date model list** - the catalog is loaded dynamically from the Hub API on every startup and always reflects its current state.
- **Up-to-date model list** - the catalog is loaded dynamically from the Hub API on every startup and always reflects its current state. Model capabilities (context limits, reasoning, tool use, etc.) are resolved from the models.dev catalog.
- **OpenAI and Anthropic models** - both model families are supported, including GPT-5.x and Claude 4.x.
- **Reasoning support** - `interleaved thinking` mode is enabled automatically for Anthropic models.

Expand Down Expand Up @@ -49,6 +49,14 @@ opencode models coreinfra
The full model list is determined by the Hub contents at startup time. The plugin supports all models listed on this page:
https://hub.coreinfra.ai/pricing

## Configuration

### Environment Variables

| Variable | Default | Description |
|---|---|---|
| `COREINFRA_HUB_BASE_URL` | `https://hub.coreinfra.ai` | Base URL of the CoreInfra Hub instance. Overrides the default endpoint for model listings and API proxying. |

## Development

Code formatting:
Expand Down
12 changes: 10 additions & 2 deletions README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Установка плагина
```bash
opencode plugin -g 'coreinfra-opencode-plugin@github:CoreInfraAI/opencode-plugin'
opencode plugin -g '@coreinfra/opencode-plugin@latest'
```

Авторизация с вводом API-токена
Expand All @@ -20,7 +20,7 @@ opencode providers login --provider coreinfra

## Возможности

- **Актуальный список моделей** — каталог динамически загружается из API Hub при каждом запуске и всегда отражает его текущее состояние.
- **Актуальный список моделей** — каталог динамически загружается из API Hub при каждом запуске и всегда отражает его текущее состояние. Возможности моделей (контекст, reasoning, tool use и т.д.) определяются из каталога models.dev.
- **Модели OpenAI и Anthropic** — поддерживаются обе линейки, включая GPT-5.x и Claude 4.x.
- **Поддержка reasoning** — для моделей Anthropic автоматически включается режим `interleaved thinking`.

Expand Down Expand Up @@ -49,6 +49,14 @@ opencode models coreinfra
Полный список моделей определяется содержимым Hub на момент запуска. Плагин поддерживает все модели, перечисленные на странице:
https://hub.coreinfra.ai/pricing

## Конфигурация

### Переменные окружения

| Переменная | По умолчанию | Описание |
|---|---|---|
| `COREINFRA_HUB_BASE_URL` | `https://hub.coreinfra.ai` | Базовый URL экземпляра CoreInfra Hub. Переопределяет стандартный эндпоинт для получения списка моделей и проксирования API. |

## Разработка
Форматирование кода:

Expand Down
5 changes: 5 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions dist/index.d.ts

This file was deleted.

86 changes: 0 additions & 86 deletions dist/index.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.js.map

This file was deleted.

5 changes: 0 additions & 5 deletions dist/limits.d.ts

This file was deleted.

34 changes: 0 additions & 34 deletions dist/limits.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/limits.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/models.d.ts

This file was deleted.

66 changes: 0 additions & 66 deletions dist/models.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/models.js.map

This file was deleted.

Loading
Loading