Skip to content

Add GPT-6 Astra Flex model - #5936

Merged
chrarnoldus merged 10 commits into
mainfrom
feat/gpt-6-astra-flex
Sep 10, 2026
Merged

Add GPT-6 Astra Flex model#5936
chrarnoldus merged 10 commits into
mainfrom
feat/gpt-6-astra-flex

Conversation

@chrarnoldus

Copy link
Copy Markdown
Contributor

Summary

  • add the openai/gpt-6-astra-flex exclusive model through OpenRouter, restricted to OpenAI
  • add a flex model flag that forces service_tier: flex for Chat Completions, Responses, and Messages requests
  • use OpenRouter Flex endpoint pricing only as a fallback when upstream market cost is unavailable

Verification

  • formatted changed files with oxfmt
  • git diff --check
  • tests intentionally left to CI

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
@chrarnoldus chrarnoldus self-assigned this Sep 7, 2026
@kilo-code-bot

kilo-code-bot Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

Disabling GPT-6 Astra Flex via status: 'disabled' and updating the registration test is consistent; no remaining issues in this increment.

Files Reviewed (2 files)
  • apps/web/src/lib/ai-gateway/models.test.ts
  • apps/web/src/lib/ai-gateway/providers/openai-exclusive.ts
Previous Review Summaries (6 snapshots, latest commit 2987508)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 2987508)

Status: No Issues Found | Recommendation: Merge

Executive Summary

Stripping unsupported request-level service_tier on custom-priced and non-Flex exclusive models matches the GPT-6 Astra Flex billing path; no remaining issues in this increment.

Files Reviewed (2 files)
  • apps/web/src/lib/ai-gateway/providers/apply-provider-specific-logic.ts
  • apps/web/src/lib/ai-gateway/providers/apply-provider-specific-logic.test.ts

Previous review (commit ea08abc)

Status: No Issues Found | Recommendation: Merge

Executive Summary

Converting service_tier to Vercel gateway.serviceTier for flex/priority matches the GPT-6 Astra Flex routing path; no remaining issues in this increment.

Files Reviewed (3 files)
  • apps/web/src/lib/ai-gateway/models.test.ts
  • apps/web/src/lib/ai-gateway/models.ts
  • apps/web/src/lib/ai-gateway/providers/vercel/index.ts

Previous review (commit d43de68)

Status: No Issues Found | Recommendation: Merge

Executive Summary

The GPT-6 Astra Flex registration test now asserts gateway: 'vercel', matching the model definition; no remaining issues in this increment.

Files Reviewed (1 files)
  • apps/web/src/lib/ai-gateway/models.test.ts

Previous review (commit 1141f4b)

Status: 1 Issue Found | Recommendation: Address before merge

Executive Summary

Switching GPT-6 Astra Flex to the Vercel gateway leaves the PR's model registration test still asserting gateway: 'openrouter'.

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
apps/web/src/lib/ai-gateway/providers/openai-exclusive.ts 48 Gateway change is inconsistent with this PR's registration test still asserting openrouter
Files Reviewed (1 files)
  • apps/web/src/lib/ai-gateway/providers/openai-exclusive.ts - 1 issue

Fix these issues in Kilo Cloud

Previous review (commit ac330c5)

Status: 1 Issue Found | Recommendation: Address before merge

Executive Summary

Removing the shared service_tier type likely makes assigning 'flex' on the GatewayRequest body union a typecheck failure.

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
apps/web/src/lib/ai-gateway/providers/kilo-exclusive-model.ts 174 service_tier: 'flex' is not assignable on the GatewayRequest body union after the shared type was removed
Files Reviewed (6 files)
  • apps/web/src/lib/ai-gateway/models.test.ts
  • apps/web/src/lib/ai-gateway/models.ts
  • apps/web/src/lib/ai-gateway/providers/kilo-exclusive-model.test.ts
  • apps/web/src/lib/ai-gateway/providers/kilo-exclusive-model.ts - 1 issue
  • apps/web/src/lib/ai-gateway/providers/openai-exclusive.ts
  • apps/web/src/tests/openrouter-models-config.test.ts

Fix these issues in Kilo Cloud

Previous review (commit 91e7a03)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (7 files)
  • apps/web/src/lib/ai-gateway/models.test.ts
  • apps/web/src/lib/ai-gateway/models.ts
  • apps/web/src/lib/ai-gateway/providers/kilo-exclusive-model.test.ts
  • apps/web/src/lib/ai-gateway/providers/kilo-exclusive-model.ts
  • apps/web/src/lib/ai-gateway/providers/openai-exclusive.ts
  • apps/web/src/lib/ai-gateway/providers/openrouter/types.ts
  • apps/web/src/tests/openrouter-models-config.test.ts

Reviewed by grok-4.6 · Input: 67.3K · Output: 5.9K · Cached: 188.7K

Review guidance: REVIEW.md from base branch main

Comment thread apps/web/src/lib/ai-gateway/providers/kilo-exclusive-model.ts
@chrarnoldus
chrarnoldus merged commit 8acf4fa into main Sep 10, 2026
16 checks passed
@chrarnoldus
chrarnoldus deleted the feat/gpt-6-astra-flex branch September 10, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants