Adds a bundled image-generation backend for the Meta Model API (https://api.meta.ai/v1), which is OpenAI-compatible. Exposes the muse-image-1.0 model via the standard image_generate tool. This is the image-gen companion to the already-bundled meta-ai chat provider (plugins/model-providers/meta-ai, PR #88565). - plugins/image_gen/meta-ai/ — provider registered as `meta-ai`, matching the chat provider's id. Reuses the openai SDK pointed at Meta's base URL. - Auth mirrors the chat provider: MODEL_API_KEY (Meta's documented var), with META_API_KEY / META_MODEL_API_KEY aliases and a META_BASE_URL override. - Text-to-image only for now (capabilities gated); base64 (WebP) and URL responses both handled and saved under $HERMES_HOME/cache/images/. - Auto-loads as `kind: backend` and appears in `hermes tools` with no central list edits, matching the other bundled providers. - tests/plugins/image_gen/test_meta_ai_provider.py — 27 tests (metadata, auth-alias resolution, base-url override, model resolution, generate paths incl. b64 save, aspect mapping, URL caching, error handling). - docs: image-generation feature page + provider-plugin built-in list.
8 lines
274 B
YAML
8 lines
274 B
YAML
name: meta-ai-image-gen
|
|
version: 1.0.0
|
|
description: "Meta Model API image generation backend (muse-image). OpenAI-compatible /v1/images/generations. Saves images to $HERMES_HOME/cache/images/."
|
|
author: Meta Platforms, Inc.
|
|
kind: backend
|
|
requires_env:
|
|
- META_MODEL_API_KEY
|