Skip to content

fix: update moonshot api base#1526

Open
zerone0x wants to merge 1 commit into
sigoden:mainfrom
zerone0x:fix/moonshot-api-base
Open

fix: update moonshot api base#1526
zerone0x wants to merge 1 commit into
sigoden:mainfrom
zerone0x:fix/moonshot-api-base

Conversation

@zerone0x

@zerone0x zerone0x commented Jun 3, 2026

Copy link
Copy Markdown

Summary

  • update the built-in Moonshot OpenAI-compatible API base to api.moonshot.ai
  • keep the example config and argparse completion defaults in sync

Fixes #1469

Tests

  • Attempted: cargo fmt --check && cargo check
  • Blocked: cargo is not installed in this environment

ei-grad added a commit to ei-grad/aichat that referenced this pull request Jul 11, 2026
Replace retired Gemini entries with current direct and Vertex model IDs,
limits, capabilities, and global standard pricing where the scalar catalog
can represent it. Add Claude Opus 4.7 to Claude, Vertex AI, Bedrock, and
OpenRouter with the published 1M/128K limits and provider-specific adaptive
thinking request shapes. Sampling fields are removed for every Opus 4.7
variant, and no fixed thinking budget is sent.

Add the corrected DeepSeek V4 Flash and Pro metadata and keep the legacy
aliases accurate until their announced July 24 retirement. Move MiniMax to
the current international endpoint and exact M2.7/M2.5/M2.1 model IDs and
prices; deliberately exclude the unverified M3 proposal and unsupported
output-limit guess.

Keep the existing Moonshot name on the China endpoint and add an explicit
moonshot_intl route for the international endpoint. Refresh each region's
catalog without silently changing existing users' data route. Add focused
catalog and request-merge tests plus list-model defaults and examples.

Upstream context:
sigoden#1445
sigoden#1469
sigoden#1514
sigoden#1519
sigoden#1492
sigoden#1515
sigoden#1520
sigoden#1526

Primary sources verified 2026-07-11:
https://ai.google.dev/gemini-api/docs/deprecations
https://ai.google.dev/gemini-api/docs/models/gemini-3.1-pro-preview
https://ai.google.dev/gemini-api/docs/models/gemini-3.5-flash
https://ai.google.dev/gemini-api/docs/models/gemini-3.1-flash-lite
https://ai.google.dev/gemini-api/docs/pricing
https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions
https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing
https://platform.claude.com/docs/en/about-claude/models/overview
https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking
https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/partner-models/claude/opus-4-7
https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-4-7.html
https://docs.aws.amazon.com/bedrock/latest/userguide/claude-messages-adaptive-thinking.html
https://openrouter.ai/anthropic/claude-opus-4.7
https://openrouter.ai/docs/cookbook/evaluate-and-optimize/model-migrations/claude-4-7
https://api-docs.deepseek.com/quick_start/pricing
https://api-docs.deepseek.com/news/news260424/
https://platform.minimax.io/docs/api-reference/text-openai-api
https://platform.minimax.io/docs/guides/pricing-paygo
https://platform.kimi.com/docs/api/overview
https://platform.kimi.com/docs/models
https://platform.kimi.ai/docs/guide/start-using-kimi-api
https://platform.kimi.ai/docs/models

Co-Authored-By: Codex CLI <noreply@openai.com>
ei-grad added a commit to ei-grad/aichat that referenced this pull request Jul 11, 2026
Replace retired Gemini entries with current direct and Vertex model IDs,
limits, capabilities, and global standard pricing where the scalar catalog
can represent it. Add Claude Opus 4.7 to Claude, Vertex AI, Bedrock, and
OpenRouter with the published 1M/128K limits and provider-specific adaptive
thinking request shapes. Sampling fields are removed for every Opus 4.7
variant, and no fixed thinking budget is sent.

Add the corrected DeepSeek V4 Flash and Pro metadata and keep the legacy
aliases accurate until their announced July 24 retirement. Move MiniMax to
the current international endpoint and exact M2.7/M2.5/M2.1 model IDs and
prices; deliberately exclude the unverified M3 proposal and unsupported
output-limit guess.

Keep the existing Moonshot name on the China endpoint and add an explicit
moonshot_intl route for the international endpoint. Refresh each region's
catalog without silently changing existing users' data route. Add focused
catalog and request-merge tests plus list-model defaults and examples.

Upstream context:
sigoden#1445
sigoden#1469
sigoden#1514
sigoden#1519
sigoden#1492
sigoden#1515
sigoden#1520
sigoden#1526

Primary sources verified 2026-07-11:
https://ai.google.dev/gemini-api/docs/deprecations
https://ai.google.dev/gemini-api/docs/models/gemini-3.1-pro-preview
https://ai.google.dev/gemini-api/docs/models/gemini-3.5-flash
https://ai.google.dev/gemini-api/docs/models/gemini-3.1-flash-lite
https://ai.google.dev/gemini-api/docs/pricing
https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions
https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing
https://platform.claude.com/docs/en/about-claude/models/overview
https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking
https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/partner-models/claude/opus-4-7
https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-4-7.html
https://docs.aws.amazon.com/bedrock/latest/userguide/claude-messages-adaptive-thinking.html
https://openrouter.ai/anthropic/claude-opus-4.7
https://openrouter.ai/docs/cookbook/evaluate-and-optimize/model-migrations/claude-4-7
https://api-docs.deepseek.com/quick_start/pricing
https://api-docs.deepseek.com/news/news260424/
https://platform.minimax.io/docs/api-reference/text-openai-api
https://platform.minimax.io/docs/guides/pricing-paygo
https://platform.kimi.com/docs/api/overview
https://platform.kimi.com/docs/models
https://platform.kimi.ai/docs/guide/start-using-kimi-api
https://platform.kimi.ai/docs/models

Co-Authored-By: Codex CLI <noreply@openai.com>
ei-grad added a commit to ei-grad/aichat that referenced this pull request Jul 11, 2026
Integrate the named verified catalog branch without importing model proposal
heads sigoden#1492, sigoden#1515, sigoden#1520, or sigoden#1526. The second parent records corrected model
metadata, request shapes, and explicit regional routes with primary-source and
focused test provenance.

Context:
sigoden#1492
sigoden#1515
sigoden#1520
sigoden#1526
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.

moonshot api uses base as moonshot.cn to make it work with international users it needs to be mooonshot.ai

1 participant