mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
chore: use glm-5.2:nitro for unauthenticated AI tiers; document CLI exec & config sync (#1693)
## Summary
- Standardize the unauthenticated `smart` and `smartest` model tiers in
`apps/backend/src/lib/ai/models.ts` on `z-ai/glm-5.2:nitro` (previously
a mix of `z-ai/glm-5.2` and `z-ai/glm-5:nitro`).
- Document the `npx @hexclave/cli exec <javascript>` command (runs JS
with a pre-configured `hexclaveServerApp`) in the agent reminders.
- Note that the config file is automatically synced when using the local
dashboard/dev environment via `npx @hexclave/cli dev --config-file
<path>`.
These reminder updates are reflected across `docs-mintlify/llms.txt`,
`docs-mintlify/snippets/hexclave-agent-reminders.jsx`,
`docs-mintlify/snippets/home-prompt-island.jsx`, and
`docs-mintlify/guides/getting-started/setup.mdx`.
## Test plan
- [ ] Verify unauthenticated AI requests resolve to `z-ai/glm-5.2:nitro`
for smart/smartest tiers.
- [ ] Confirm docs render the new agent-reminder bullets correctly.
Made with [Cursor](https://cursor.com)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Standardized unauthenticated `smart` and `smartest` tiers to
`z-ai/glm-5.2:nitro` for both slow and fast paths to ensure consistent
model selection. Updated docs to include `npx @hexclave/cli exec
<javascript>` (preloads `hexclaveServerApp`) and to note config
auto-sync when using `npx @hexclave/cli dev --config-file <path>`.
<sup>Written for commit 3363c8d9f3.
Summary will update on new commits.</sup>
<a
href="https://cubic.dev/pr/hexclave/hexclave/pull/1693?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Updated unauthenticated AI model selection to use a newer variant for
faster and more reliable responses in supported smart modes.
* **Documentation**
* Added clearer CLI guidance for running JavaScript with a
pre-configured app context.
* Expanded reminder text to better explain local config syncing during
development and dashboard runs.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
d6d9d0d934
commit
09bb1a8974
@ -29,17 +29,17 @@ const MODEL_SELECTION_MATRIX: Record<
|
||||
smart: {
|
||||
slow: {
|
||||
authenticated: { modelId: "openai/gpt-5.5" },
|
||||
unauthenticated: { modelId: "z-ai/glm-5.2" },
|
||||
unauthenticated: { modelId: "z-ai/glm-5.2:nitro" },
|
||||
},
|
||||
fast: {
|
||||
authenticated: { modelId: "openai/gpt-5.5" },
|
||||
unauthenticated: { modelId: "z-ai/glm-5:nitro" },
|
||||
unauthenticated: { modelId: "z-ai/glm-5.2:nitro" },
|
||||
},
|
||||
},
|
||||
smartest: {
|
||||
slow: {
|
||||
authenticated: { modelId: "openai/gpt-5.5" },
|
||||
unauthenticated: { modelId: "z-ai/glm-5.2" },
|
||||
unauthenticated: { modelId: "z-ai/glm-5.2:nitro" },
|
||||
},
|
||||
fast: {
|
||||
authenticated: { modelId: "openai/gpt-5.5" },
|
||||
|
||||
Loading…
Reference in New Issue
Block a user