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
4 changes: 2 additions & 2 deletions assets/routing-demo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 15 additions & 15 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions packages/agent/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

## [1.0.7] - 2026-07-18

## [1.0.6] - 2026-07-16

## [1.0.5] - 2026-07-16
Expand Down
4 changes: 2 additions & 2 deletions packages/agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openabcode/agent-core",
"version": "1.0.6",
"version": "1.0.7",
"description": "General-purpose agent with transport abstraction, state management, and attachment support",
"type": "module",
"main": "./dist/index.js",
Expand Down Expand Up @@ -30,7 +30,7 @@
"prepublishOnly": "npm run clean && npm run build"
},
"dependencies": {
"@openabcode/ai": "^1.0.6",
"@openabcode/ai": "^1.0.7",
"ignore": "7.0.5",
"typebox": "1.1.38",
"yaml": "2.9.0"
Expand Down
6 changes: 6 additions & 0 deletions packages/ai/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## [Unreleased]

## [1.0.7] - 2026-07-18

### Added

- Added built-in `openabcode` provider with hosted model catalog.

## [1.0.6] - 2026-07-16

## [1.0.5] - 2026-07-16
Expand Down
2 changes: 1 addition & 1 deletion packages/ai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openabcode/ai",
"version": "1.0.6",
"version": "1.0.7",
"description": "Unified LLM API with automatic model discovery and provider configuration",
"type": "module",
"main": "./dist/index.js",
Expand Down
3 changes: 3 additions & 0 deletions packages/ai/scripts/generate-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2265,10 +2265,13 @@ async function generateModels() {

// Aggregator
let output = generatedHeader;
// Include the hand-written openabcode catalog (not fetched from an API)
output += `import { OPENABCODE_MODELS } from "./providers/openabcode.ts";\n`;
for (const providerId of sortedProviderIds) {
output += `import { ${catalogConstName(providerId)} } from "./providers/${providerId}.models.ts";\n`;
}
output += `\nexport const MODELS = {\n`;
output += `\t"openabcode": OPENABCODE_MODELS,\n`;
for (const providerId of sortedProviderIds) {
output += `\t${JSON.stringify(providerId)}: ${catalogConstName(providerId)},\n`;
}
Expand Down
15 changes: 15 additions & 0 deletions packages/ai/src/image-models.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,21 @@ export const IMAGE_MODELS = {
cacheWrite: 0,
},
} satisfies ImagesModel<"openrouter-images">,
"openrouter/auto-beta": {
id: "openrouter/auto-beta",
name: "Auto Router (Beta)",
api: "openrouter-images",
provider: "openrouter",
baseUrl: "https://openrouter.ai/api/v1",
input: ["text", "image"],
output: ["text", "image"],
cost: {
input: -1000000,
output: -1000000,
cacheRead: 0,
cacheWrite: 0,
},
} satisfies ImagesModel<"openrouter-images">,
"recraft/recraft-v3": {
id: "recraft/recraft-v3",
name: "Recraft: Recraft V3",
Expand Down
2 changes: 2 additions & 0 deletions packages/ai/src/models.generated.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file is auto-generated by scripts/generate-models.ts
// Do not edit manually - run 'npm run generate-models' to update

import { OPENABCODE_MODELS } from "./providers/openabcode.ts";
import { AMAZON_BEDROCK_MODELS } from "./providers/amazon-bedrock.models.ts";
import { ANT_LING_MODELS } from "./providers/ant-ling.models.ts";
import { ANTHROPIC_MODELS } from "./providers/anthropic.models.ts";
Expand Down Expand Up @@ -38,6 +39,7 @@ import { ZAI_MODELS } from "./providers/zai.models.ts";
import { ZAI_CODING_CN_MODELS } from "./providers/zai-coding-cn.models.ts";

export const MODELS = {
"openabcode": OPENABCODE_MODELS,
"amazon-bedrock": AMAZON_BEDROCK_MODELS,
"ant-ling": ANT_LING_MODELS,
"anthropic": ANTHROPIC_MODELS,
Expand Down
2 changes: 2 additions & 0 deletions packages/ai/src/providers/all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { mistralProvider } from "./mistral.ts";
import { moonshotaiProvider } from "./moonshotai.ts";
import { moonshotaiCnProvider } from "./moonshotai-cn.ts";
import { nvidiaProvider } from "./nvidia.ts";
import { openabcodeProvider } from "./openabcode.ts";
import { openaiProvider } from "./openai.ts";
import { openaiCodexProvider } from "./openai-codex.ts";
import { opencodeProvider } from "./opencode.ts";
Expand Down Expand Up @@ -90,6 +91,7 @@ export function builtinProviders(): Provider[] {
moonshotaiProvider(),
moonshotaiCnProvider(),
nvidiaProvider(),
openabcodeProvider(),
openaiProvider(),
openaiCodexProvider(),
opencodeProvider(),
Expand Down
6 changes: 3 additions & 3 deletions packages/ai/src/providers/github-copilot.models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ export const GITHUB_COPILOT_MODELS = {
input: 1,
output: 6,
cacheRead: 0.1,
cacheWrite: 0,
cacheWrite: 1.25,
},
contextWindow: 1050000,
maxTokens: 128000,
Expand All @@ -478,7 +478,7 @@ export const GITHUB_COPILOT_MODELS = {
input: 5,
output: 30,
cacheRead: 0.5,
cacheWrite: 0,
cacheWrite: 6.25,
},
contextWindow: 1050000,
maxTokens: 128000,
Expand All @@ -497,7 +497,7 @@ export const GITHUB_COPILOT_MODELS = {
input: 2.5,
output: 15,
cacheRead: 0.25,
cacheWrite: 0,
cacheWrite: 3.125,
},
contextWindow: 1050000,
maxTokens: 128000,
Expand Down
36 changes: 0 additions & 36 deletions packages/ai/src/providers/kimi-coding.models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,6 @@ export const KIMI_CODING_MODELS = {
contextWindow: 1048576,
maxTokens: 131072,
} satisfies Model<"anthropic-messages">,
"kimi-for-coding": {
id: "kimi-for-coding",
name: "Kimi For Coding",
api: "anthropic-messages",
provider: "kimi-coding",
baseUrl: "https://api.kimi.com/coding",
headers: {"User-Agent":"KimiCLI/1.5"},
reasoning: true,
input: ["text", "image"],
cost: {
input: 0,
output: 0,
cacheRead: 0,
cacheWrite: 0,
},
contextWindow: 262144,
maxTokens: 32768,
} satisfies Model<"anthropic-messages">,
"kimi-for-coding-highspeed": {
id: "kimi-for-coding-highspeed",
name: "Kimi For Coding HighSpeed",
Expand All @@ -76,22 +58,4 @@ export const KIMI_CODING_MODELS = {
contextWindow: 262144,
maxTokens: 32768,
} satisfies Model<"anthropic-messages">,
"kimi-k2-thinking": {
id: "kimi-k2-thinking",
name: "Kimi K2 Thinking",
api: "anthropic-messages",
provider: "kimi-coding",
baseUrl: "https://api.kimi.com/coding",
headers: {"User-Agent":"KimiCLI/1.5"},
reasoning: true,
input: ["text"],
cost: {
input: 0,
output: 0,
cacheRead: 0,
cacheWrite: 0,
},
contextWindow: 262144,
maxTokens: 32768,
} satisfies Model<"anthropic-messages">,
} as const;
6 changes: 3 additions & 3 deletions packages/ai/src/providers/moonshotai-cn.models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ export const MOONSHOTAI_CN_MODELS = {
reasoning: true,
input: ["text", "image"],
cost: {
input: 0,
output: 0,
cacheRead: 0,
input: 3,
output: 15,
cacheRead: 0.3,
cacheWrite: 0,
},
contextWindow: 1048576,
Expand Down
6 changes: 3 additions & 3 deletions packages/ai/src/providers/moonshotai.models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ export const MOONSHOTAI_MODELS = {
reasoning: true,
input: ["text", "image"],
cost: {
input: 0,
output: 0,
cacheRead: 0,
input: 3,
output: 15,
cacheRead: 0.3,
cacheWrite: 0,
},
contextWindow: 1048576,
Expand Down
Loading
Loading