算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
mistral-sdk-patterns【设计与创意】Design a pinned Mistral client adapter with typed results, cancellation, retry classification, and usage accounting. Use when implementing or refactoring SDK access. Trigger with "wrap the Mistral SDK", "review Mistral client code", or "standardize Mistral calls".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Prevent provider-specific shapes and volatile client behavior from spreading. Centralize configuration, normalize results and errors, and expose cancellation and usage as first-class fields.
Mistral documents official Python and TypeScript clients, but signatures can move independently of application code. REST endpoints remain the verification boundary for the pinned client.
Inject MISTRAL_API_KEY into one server-side client factory. Return no key or authorization metadata from the adapter.
Use Read, Glob, and Grep to inspect code, locks, configuration, tests, and evidence. Use Write and Edit only for approved repository changes. Invocation alone does not authorize network calls, paid usage, uploads, stateful resources, admin mutations, deployments, or deletion.
Require approval for dependency, transport, retry, fallback-model, or live characterization changes. Never execute returned tool arguments automatically.
Return client pin, adapter surface, timeout/retry matrix, normalized fields, affected call sites, tests, and rollback.
429 as retryable only within the operation deadline and budget.Prove only the adapter imports the SDK, errors remain typed, cancellation propagates, usage survives, and secrets do not.