Skip to content

added two new models - #18

Merged
maddy-a merged 1 commit into
mainfrom
open-weight-models-1
Jul 28, 2026
Merged

added two new models#18
maddy-a merged 1 commit into
mainfrom
open-weight-models-1

Conversation

@maddy-a

@maddy-a maddy-a commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Added support for the glm-5.2 and deepseek-v4-flash models in Chat Completions.
    • Added model pages, pricing details, capabilities, and usage examples.
    • Expanded the Text Generation model catalog and navigation.
  • Documentation

    • Clarified API availability and documented Chat Completions-only support for select models.

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Two models, glm-5.2 and deepseek-v4-flash, are added to the Chat Completions schema and documented in API navigation, the model catalog, and text-generation pages.

Changes

Model documentation coverage

Layer / File(s) Summary
API contract and navigation
api-reference/openapi/zerogpu.openapi.json, docs.json
The Chat Completions model enum and API Reference navigation include both new model identifiers.
Model catalog entries
docs/model-catalog.mdx
Pricing tables, detailed cards, capabilities, and the Text Generation model list include both models.
Text generation documentation
docs/text-generation.mdx
Availability notes, pricing rows, references, and Chat Completions request/response examples are added for both models.

Estimated code review effort: 2 (Simple) | ~15 minutes

Possibly related PRs

  • zerogpu/docs#10: Updates the same OpenAPI model enum for another newly introduced model.
  • zerogpu/docs#15: Extends the Chat Completions model enum with additional model identifiers.

Suggested labels: documentation

Suggested reviewers: amaan-ai20

Poem

Two models hop into the catalog with cheer,
Their names now shimmer in the API frontier.
GLM and DeepSeek, documented bright,
With examples to guide each request just right.
— A rabbit’s review says: ship it tonight! 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change: two new models were added across the docs and API schema.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch open-weight-models-1

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

@mintlify

mintlify Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
zerogpu 🟢 Ready View Preview Jul 28, 2026, 2:58 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@coderabbitai coderabbitai 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.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs.json`:
- Around line 137-138: Add backing MDX pages for the model slugs referenced in
docs.json: create api-reference/models/glm-5-2.mdx and
api-reference/models/deepseek-v4-flash.mdx using the repository’s existing
model-page structure and metadata conventions, so both navigation links resolve
successfully.

In `@docs/text-generation.mdx`:
- Line 259: Update the DeepSeek-V4-Flash description in the documentation to
hyphenate the compound modifier as “well-suited for analyzing,” leaving the
surrounding model details unchanged.
- Around line 204-250: Update the Chat Completions OpenAPI definition to match
the documented examples: add the request max_tokens property and define a
response-specific message schema containing reasoning and tool_calls with the
exact types and nullability shown. Apply the same alignment to the related
schema section referenced by the comment, rather than removing these fields from
the examples.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f45de434-1c47-4655-974b-2d7790203599

📥 Commits

Reviewing files that changed from the base of the PR and between fd70848 and 0d88b06.

📒 Files selected for processing (4)
  • api-reference/openapi/zerogpu.openapi.json
  • docs.json
  • docs/model-catalog.mdx
  • docs/text-generation.mdx

Comment thread docs.json
Comment on lines +137 to +138
"api-reference/models/glm-5-2",
"api-reference/models/deepseek-v4-flash",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/usr/bin/env bash
for slug in glm-5-2 deepseek-v4-flash; do
  echo "=== ${slug} ==="
  fd -a -t f "${slug}" . || true
  rg -n -F "api-reference/models/${slug}" . || true
done

Repository: zerogpu/docs

Length of output: 2158


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

echo "=== files matching api-reference/models ==="
fd -a . 'api-reference' . || true
echo
echo "=== route/content files mentioning model slugs ==="
rg -n -S 'api-reference/models/(glm-5-2|deepseek-v4-flash)|glm-5-2|deepseek-v4-flash' docs . \
  -g '!**/node_modules/**' -g '!**/.git/**' || true
echo
echo "=== docs.json around the referenced lines ==="
sed -n '120,155p' docs.json

Repository: zerogpu/docs

Length of output: 18154


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

for slug in glm-5-2 deepseek-v4-flash; do
  echo "=== $slug: matching files ==="
  fd -a -t f "$slug" . || true
  echo
done

echo "=== docs directory tree (shallow) ==="
find docs -maxdepth 3 \( -type d -o -type f \) | sort | sed -n '1,220p'

echo
echo "=== possible route/page definitions for api-reference/models ==="
rg -n -S 'api-reference/models|models/' docs . \
  -g '!**/node_modules/**' -g '!**/.git/**' -g '!docs/model-catalog.mdx' -g '!docs/text-generation.mdx' || true

Repository: zerogpu/docs

Length of output: 17633


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

echo "=== docs.json top-level structure ==="
python3 - <<'PY'
import json
from pathlib import Path
data = json.loads(Path("docs.json").read_text())
print(type(data).__name__)
if isinstance(data, dict):
    print("top-level keys:", list(data.keys()))
    for k in ("pages", "navigation", "navbar", "sidebar", "links"):
        if k in data:
            v = data[k]
            print(f"{k}: {type(v).__name__}")
PY

echo
echo "=== docs.json excerpt around api-reference ==="
rg -n -C 4 '"api-reference"|glm-5-2|deepseek-v4-flash' docs.json || true

echo
echo "=== candidate source files for api-reference routes ==="
fd -a -t f 'api-reference' . || true
fd -a -t f 'models' docs . | sed -n '1,120p' || true

Repository: zerogpu/docs

Length of output: 1070


Add backing pages for these model links. docs.json:137-138 points to api-reference/models/glm-5-2 and api-reference/models/deepseek-v4-flash, but the repo has no matching api-reference/models/*.mdx files for either slug.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs.json` around lines 137 - 138, Add backing MDX pages for the model slugs
referenced in docs.json: create api-reference/models/glm-5-2.mdx and
api-reference/models/deepseek-v4-flash.mdx using the repository’s existing
model-page structure and metadata conventions, so both navigation links resolve
successfully.

Comment thread docs/text-generation.mdx
Comment on lines +204 to +250
```bash Chat Completions
curl https://api.zerogpu.ai/v1/chat/completions \
-H "content-type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"model": "glm-5.2",
"messages": [
{
"role": "system",
"content": "You are a precise code-review assistant. Be brief."
},
{
"role": "user",
"content": "Review this function name: getUserDataAndSendEmailAndLog(). What does it tell you about the function, and how would you refactor it? 3 bullets max."
}
],
"max_tokens": 800
}'
```

The model reasons before it answers and returns the trace alongside the final text as a `reasoning` field on the message.

```json Response
{
"id": "id-1784840133815",
"object": "chat.completion",
"created": 1784840133,
"model": "glm-5.2",
"choices": [
{
"index": 0,
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": "**1. The name confesses the crime** – \"And\" in a function name means it violates single responsibility: fetching, emailing, and logging are three separate concerns.\n\n**2. Split it** – Extract `getUserData()`, `sendEmail()`, and `logActivity()`, each independently testable and reusable.\n\n**3. Orchestrate at the edge** – If the sequence matters, compose them in a thin workflow function named for the *why* (e.g. `onUserSignup()`), not the *how*.",
"reasoning": "The name reveals the function does three unrelated things — fetch data, send email, log — a single-responsibility violation. Recommend splitting into three functions plus a thin orchestrator. Keep to 3 bullets.",
"tool_calls": []
}
}
],
"usage": {
"prompt_tokens": 58,
"completion_tokens": 151,
"total_tokens": 209
}
}
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Align the OpenAPI contract with these examples.

Both samples use max_tokens and show message.reasoning/message.tool_calls, but the supplied Chat Completions schema documents none of those fields. Add the request property and a response-specific message schema (with exact field types/nullability), or remove them from the examples.

Also applies to: 263-309

🧰 Tools
🪛 Betterleaks (1.6.1)

[high] 205-207: Discovered a potential authorization token provided in a curl command header, which could compromise the curl accessed resource.

(curl-auth-header)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/text-generation.mdx` around lines 204 - 250, Update the Chat Completions
OpenAPI definition to match the documented examples: add the request max_tokens
property and define a response-specific message schema containing reasoning and
tool_calls with the exact types and nullability shown. Apply the same alignment
to the related schema section referenced by the comment, rather than removing
these fields from the examples.

Comment thread docs/text-generation.mdx
(`/v1/responses`) is not available for this model.
</Note>

> DeepSeek's DeepSeek-V4-Flash is an open-weight Mixture-of-Experts model built for efficient reasoning, coding, and agentic workflows, with 284B total parameters activating only 13B per token, served on ZeroGPU for general text generation. It sustains a 1,048,576-token (1M) context well suited for analyzing large codebases, long documents, extensive conversations, and complex research tasks, and supports fast non-thinking responses as well as higher-effort reasoning modes for planning, problem-solving, and multi-step automation. MIT-licensed with no usage restrictions.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Hyphenate the compound modifier.

Use “well-suited for analyzing” here.

🧰 Tools
🪛 LanguageTool

[grammar] ~259-~259: Use a hyphen to join words.
Context: ...ains a 1,048,576-token (1M) context well suited for analyzing large codebases, lo...

(QB_NEW_EN_HYPHEN)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/text-generation.mdx` at line 259, Update the DeepSeek-V4-Flash
description in the documentation to hyphenate the compound modifier as
“well-suited for analyzing,” leaving the surrounding model details unchanged.

Source: Linters/SAST tools

@maddy-a
maddy-a merged commit 675e077 into main Jul 28, 2026
2 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Jul 28, 2026
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