Skip to content

docs: add llame vision and model default - #103

Merged
leon0399 merged 4 commits into
masterfrom
stack/overnight-docs
Jul 2, 2026
Merged

docs: add llame vision and model default#103
leon0399 merged 4 commits into
masterfrom
stack/overnight-docs

Conversation

@leon0399

@leon0399 leon0399 commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Bumps the default OpenAI model.
  • Adds VISION.md to capture the product north star, current focus, emerging directions, and explicit non-goals.

Deferred in later stack PRs


Summary by cubic

Set gpt-5.4-mini as the default OpenAI model and added its token pricing to turn telemetry, covered by a unit test. Added VISION.md (north star, current focus, emerging directions, non-goals), linked from AGENTS.md, and updated CHANGELOG.md.

Written for commit 6ec721b. Summary will update on new commits.

Review in cubic

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@leon0399, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 39 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a8566e37-2538-4e86-93ce-8bb1dd22c74e

📥 Commits

Reviewing files that changed from the base of the PR and between 604c41f and 6ec721b.

📒 Files selected for processing (6)
  • AGENTS.md
  • CHANGELOG.md
  • VISION.md
  • apps/api/src/chats/turn-telemetry.spec.ts
  • apps/api/src/chats/turn-telemetry.ts
  • apps/api/src/models/openai-model-client.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch stack/overnight-docs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new VISION.md document outlining the platform's core bets, current focus, and non-goals, and links it in AGENTS.md. Additionally, it updates the default OpenAI model to gpt-5.4-mini. Feedback is provided regarding a style guide violation: a dated entry must be added to CHANGELOG.md within this pull request to document these changes before merging.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread AGENTS.md
## Key documentation

- [README.md](README.md) — what llame is (product overview, quickstart; imported above)
- [VISION.md](VISION.md) — why llame is shaped this way, current focus, emerging directions, and what we won't build yet

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

According to the repository style guide (lines 79-84), any PR that ships work (including features, bug fixes, and chores alike) must update CHANGELOG.md with a dated entry in the same PR. Please add a dated entry to CHANGELOG.md detailing the addition of VISION.md and the update of the default OpenAI model to gpt-5.4-mini.

References
  1. Update both ROADMAP.md and CHANGELOG.md in the same PR that ships the work, not after. The PR's own diff adds the dated CHANGELOG.md entry. (link)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 6ec721b by adding the 2026-07-02 changelog entry for VISION.md, the default-model bump, and telemetry pricing. Also ran pnpm exec prettier --check CHANGELOG.md AGENTS.md VISION.md and git diff --check.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cc834374aa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

} from './model-client';

export const DEFAULT_OPENAI_MODEL = 'gpt-4o-mini';
export const DEFAULT_OPENAI_MODEL = 'gpt-5.4-mini';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add pricing for the new default model

When users take the default OpenAI path (ChatLoopService calls createOpenAIClient(credential) without a model override), telemetry now records gpt-5.4-mini; however MODEL_TOKEN_PRICES_USD_PER_1M still only contains gpt-4o-mini, and calculateCostUsd returns null for any missing key. This means all real default chats lose persisted/logged cost data even though the previous default produced costs, so the model bump should update the pricing table or intentionally configure a priced fallback.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 7edf81c by adding gpt-5.4-mini to MODEL_TOKEN_PRICES_USD_PER_1M with a unit test for default OpenAI model pricing. Verified with pnpm --filter api test -- turn-telemetry.spec.ts; full API test/RLS/turbo gates are green locally.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 3 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/api/src/models/openai-model-client.ts">

<violation number="1" location="apps/api/src/models/openai-model-client.ts:10">
P2: The default model is now `gpt-5.4-mini`, but cost calculation paths that rely on `MODEL_TOKEN_PRICES_USD_PER_1M` will return `null` if this model key is missing. That would drop persisted/logged cost data for default chats unless pricing for `gpt-5.4-mini` (or an explicit priced fallback) is added alongside this default bump.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

} from './model-client';

export const DEFAULT_OPENAI_MODEL = 'gpt-4o-mini';
export const DEFAULT_OPENAI_MODEL = 'gpt-5.4-mini';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The default model is now gpt-5.4-mini, but cost calculation paths that rely on MODEL_TOKEN_PRICES_USD_PER_1M will return null if this model key is missing. That would drop persisted/logged cost data for default chats unless pricing for gpt-5.4-mini (or an explicit priced fallback) is added alongside this default bump.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/api/src/models/openai-model-client.ts, line 10:

<comment>The default model is now `gpt-5.4-mini`, but cost calculation paths that rely on `MODEL_TOKEN_PRICES_USD_PER_1M` will return `null` if this model key is missing. That would drop persisted/logged cost data for default chats unless pricing for `gpt-5.4-mini` (or an explicit priced fallback) is added alongside this default bump.</comment>

<file context>
@@ -7,7 +7,7 @@ import {
 } from './model-client';
 
-export const DEFAULT_OPENAI_MODEL = 'gpt-4o-mini';
+export const DEFAULT_OPENAI_MODEL = 'gpt-5.4-mini';
 
 /**
</file context>

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 7edf81c by adding gpt-5.4-mini to MODEL_TOKEN_PRICES_USD_PER_1M with a unit test for default OpenAI model pricing. Verified with pnpm --filter api test -- turn-telemetry.spec.ts; full API test/RLS/turbo gates are green locally.

Base automatically changed from stack/overnight-ci to master July 2, 2026 14:17
leon0399 and others added 3 commits July 2, 2026 16:21
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Short OpenClaw-style vision doc distinct from SPEC.md's detailed
architecture: the why behind the core bets, current milestone focus,
emerging directions not yet spec'd (personas, machine connector, Brain
memory surface, calendar/email, n8n-style workflows), and guardrails on
what we won't build yet. Linked from AGENTS.md's doc index.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
@leon0399
leon0399 force-pushed the stack/overnight-docs branch from cc83437 to 7edf81c Compare July 2, 2026 14:24
Co-Authored-By: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
@leon0399
leon0399 merged commit c2cb171 into master Jul 2, 2026
8 checks passed
@leon0399
leon0399 deleted the stack/overnight-docs branch July 2, 2026 14:47
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.

1 participant