Skip to content

docs: describe aimux as an in-process SDK - #457

Open
eric8810 wants to merge 1 commit into
masterfrom
cursor/discoverability-docs-6602
Open

eric8810 wants to merge 1 commit into
masterfrom
cursor/discoverability-docs-6602

Conversation

@eric8810

@eric8810 eric8810 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Public pages now describe aimux (arcships) as an in-process embedded SDK: one Rust core, eight language bindings, JSON aligned with the Vercel AI SDK V4. It is not a proxy gateway and it does not run agent loops.

  • README first screen, README.zh-CN.md, FAQ.md, and llms.txt use one positioning and link each other.
  • Public copy says 300+ provider names and points at the generated catalogue (docs/api/providers.md) for the exact list. That file is unchanged (it is generated and CI-checked). Stale 325 / 2,650 / 2,800+ figures in the README, project overview, npm description, and Flutter pubspec are gone.
  • Verified offline recordings: 2,797 JSON files under aimux-providers/tests/cassettes.
  • User-facing samples that still showed 0.5 binding helpers (generateText, createProvider, jevDecision, aimux_decide, Model.openai in the Flutter demo README) now use provider.create / provider.model / text.generate or decision.decide. Rust generate_text examples call result.text() (a method). The 0.5 comparison in docs/aimux-vs-aisdk-node.md is labeled do-not-cite.
  • examples/ has three Rust programs (chat, streaming, switch provider). cargo clippy -p aimux-examples --all-targets -- -D warnings and cargo test -p aimux-examples --no-run pass. They are not executed against the network.
  • Crate, npm, PyPI, and Flutter descriptions gain homepage/repository where those fields were missing. Versions are unchanged. No library behavior change.

Chinese providers called out only where the registry or a vendor package exists: deepseek; Qwen/通义 via DashScope presets alibaba / alibaba_coding_plan_cn (no package named qwen); Zhipu via bigmodel / zhipu_v4; Kimi via kimi / moonshotai.

GitHub settings to change by hand

These are not in the repo. Current About text still says 325.

  • Description: In-process LLM SDK (not a proxy). One Rust core, eight language bindings, 300+ provider names. 进程内嵌 LLM SDK(不是代理网关):一个 Rust 核心、八种语言绑定、300+ 服务商。
  • Website: there is no project site in the repo. Suggested value: https://docs.rs/aimux-core (API docs). Leave blank if you would rather not point About at docs.rs.
  • Topics: keep the current set (ai, c, flutter, go, java, kotlin, llm, llm-api, llm-providers, nodejs, openai-compatible, python, rust, swift). Suggested additions: sdk, embeddings.
  • Social preview: upload assets/aimux-banner.png in the repository social preview settings. GitHub does not pick it up from the README.

Type of change

  • Bug fix (non-breaking)
  • New feature (non-breaking)
  • Breaking change
  • New provider
  • New / updated binding
  • Docs / RFC

Checklist

  • cargo fmt --all -- --check passes — checked for aimux-examples (the only Rust added here)
  • cargo clippy --workspace --all-targets -- -D warnings passes — run for -p aimux-examples (the new member). The rest of the workspace was not rebuilt; this PR does not change library code.
  • cargo test --workspace passes (cassette playback — no network/keys) — not re-run. cargo test -p aimux-examples --no-run compiles the new bins.
  • Added or updated cassette tests / contract fixtures for behavior changes — no behavior change
  • Updated relevant docs (README.md, docs/, rfc/, bindings/README.md)
  • Commit messages follow Conventional Commits

Notes for reviewers

The generated provider total stays in docs/api/providers.md. Marketing copy says 300+ so the README and the GitHub description stop drifting apart. Do not merge until the About text above is updated, or answer engines will keep quoting 325 from the GitHub description.

Open in Web Open in Cursor 

Public pages now say 300+ providers and point at the generated catalogue
for the exact list. Add a Chinese README, FAQ, llms.txt, and Rust examples
that compile against 0.6, and stop user-facing docs from showing binding
helpers that 0.6 removed.

Co-authored-by: scotares <ericted8810@gmail.com>

@eric8810 eric8810 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

定位文案整体一致,327 provider 计数和链接也对。作为自己的 PR 不能 request changes,但合并前应修:

  1. FAQ.md:92 / llms.txt:7 说 createProvider 已删除且不能引用;Java/Kotlin 的公开 API 仍是 Aimux.createProvider(docs/api/java.md:31、kotlin.md:31,Aimux.java:81)。限定为 Node/Python 0.5 helper。
  2. Flutter podspec 还写“unified LLM service layer…327 providers”;Java/Kotlin POM 还写“Rust alternative to the Vercel AI SDK”,且 327 与“300+”规则冲突。
  3. README/FAQ 说 eight bindings,表里是 Rust core + 9 languages,写清。

@eric8810
eric8810 marked this pull request as ready for review November 7, 2026 03:44

@eric8810 eric8810 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

之前三个问题仍未修,且 PR 现在 dirty:FAQ/llms 的 createProvider 结论仍没限定 Node/Python 0.5(Java/Kotlin 仍公开 Aimux.createProvider);Flutter podspec 和 Java/Kotlin POM 仍写“Rust alternative…”和 327;FAQ 的 eight bindings 表里仍含 Rust。另有 0.6.0/0.6.1 版本号 stale。rebase 后一起修。

@eric8810 eric8810 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Review(基于 19681db):

方向没问题:把 README / FAQ / llms.txt 统一成"in-process SDK、不是代理网关、不跑 agent loop"的定位,清掉残留的 0.5 binding 示例(generateText 顶层 helper),这些该改。22/22 CI 绿(在它自己的旧 base 上)。

需要改的两点:

  1. "300+ provider names" 建议改成精确数字。 master 的 README/API.md/PROJECT-OVERVIEW 已经统一为 329(282 presets + 47 vendor packages),由 gen_providers_doc.py 生成并在 CI 里 --check。这个 PR 把六处改成 "300+",和 master 上其他地方的 329 不一致,而且精确数字本来就有生成源可依赖,没必要模糊化。如果担心数字漂移,引用 docs/api/providers.md 即可,master 已经这么做了。

  2. 与 master 冲突,需 rebase。 这个 PR 改了根 Cargo.toml 的 description 和 homepage,而 v0.7.0 发版提交(#546)改了同一个文件的 version(0.6.1 → 0.7.0)和内部依赖版本;另外 README / API.md / docs/README.md 也被发版提交改过(加了 0.7 升级指南的链接和 "0.7.0 is a breaking release" 的横幅)。rebase 时注意:

    • 保留 version = "0.7.0" 和所有 aimux-* = { path = ..., version = "0.7.0" }
    • README 顶部保留 0.7.0 的 breaking 横幅和 upgrading-to-0.7.md 链接,再叠加你的定位文案
    • docs/README.md 保留 0.7 指南那一行

rebase 后 CI 绿我再 approve。顺带:examples/ 加进 workspace members(Cargo.toml 第一行 hunk)会拖慢 cargo test --workspace,如果 example 不需要被 workspace 编译,可以考虑不加。

This branch has not been deployed

No deployments
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