Unified media-generation subsystem exposing image/audio generation APIs and config.
// Source: https://github.com/shiwenwen/hope-agent | License: MIT | Copyright 2026 shiwenwen // Provided via justclaw.it.com; keep this notice with the code. //! Unified media-generation subsystem (image / audio; `video` reserved). //! //! "Provider → models → per-function default chain", mirroring the STT //! subsystem: user-managed provider list (one credentials entry, many //! models), data-driven per-model capabilities, and per-function default //! chains (image / speech / music / sfx) with an auto fallback over //! provider order. Consumed by the `image_generate` / `audio_generate` //! chat tools and the design space's image / audio artifact forms — all of //! them resolve candidates and execute through this module so failover, //! capability validation, and usage accounting live in e ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key