Repository navigation
Conversation
Add Agnes 3.0 Flash (LLM), Agnes Image 2.5 Flash, and Agnes Video 2.5 Flash as configurable providers. Text (LLM): - Register Agnes as an openai-compatible LLM provider preset (base URL https://apihub.agnes-ai.com/v1, model agnes-3.0-flash) - Add LLM_AGNES_* keys to KEY_NAMES so the API key can be persisted Image: - Add callAgnesImageProvider (OpenAI Images-compatible /images/generations) supporting text-to-image and image-to-image (size tiers 1K-4K, aspect ratios) - Wire agnes-image model into validation, dispatch, settings, and caps Video: - Add generateAgnesVideo (OpenAI Videos-compatible async: POST /videos then GET /videos/{id}?model_name= polling) supporting text, keyframe, and reference modes (4-12s, 720p only) - Wire agnes-video model into validation, dispatch, resumer, settings, and caps Shared: - Add AGNES_IMAGE_*/AGNES_VIDEO_* keystore keys and NON_SECRET_NAMES entries - Update computeCaps() to detect Agnes image/video keys for runtime UI status - Add vendor icon, settings pages, route selection, and env.example entries - Extend agent tool schemas, capabilities, skill docs, and connection probes - Fix Fal model routing so the Fal catalog only surfaces when Fal is the active provider (not alongside Agnes or another default)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for three Agnes AI models as configurable providers in OpenChatCut:
agnesagnes-3.0-flashagnes-imageagnes-image-2.5-flashagnes-videoagnes-video-2.5-flashAll three share the same base URL (
https://apihub.agnes-ai.com/v1) and API key, configurable in Settings → Agent Brain / AI Generation → Image / AI Generation → Video.Changes
Text (LLM)
openai-compatibleLLM provider preset inshared/llm-providers.ts(auto-generatesLLM_AGNES_API_KEY/LLM_AGNES_BASE_URL/LLM_AGNES_MODELconfig keys).LLM_AGNES_*keys toKEY_NAMESso they can be persisted via the settings API.Image
callAgnesImageProviderinserver/plugins/image-provider-clients.ts— calls/v1/images/generationswithsizetier (1K/2K/3K/4K),ratioaspect ratio, and optionalimage[]references (Data URI for img2img). Returnsdata[0].urlordata[0].b64_json.agnes-imageintoValidImageRequest,validateImageRequest(max 4 outputs, size tiers, aspect-ratio whitelist), the dispatch branch, andImagePluginOptions.AGNES_IMAGE_*keystore keys, settings vendor page, route option, and caps detection.Video
generateAgnesVideoinserver/plugins/video.ts—POST /v1/videosto create a task, then pollsGET /v1/videos/{id}?model_name=untilcompleted. Supportstext,keyframe(first/last frame), andreference(up to 5 images + 3 audios) modes. Fixed 720p, 4–12s duration.agnes-videointoVideoRequest/ValidVideoRequest,validateAgnes,runVideoOperationdispatch, the resumer provider list, andVideoOptions.AGNES_VIDEO_*keystore keys, settings vendor page, route option, and caps detection.Shared & agent-facing
computeCaps()now detectsAGNES_IMAGE_API_KEY/AGNES_VIDEO_API_KEYso the settings UI correctly shows configured state at runtime.__CONFIGURED_CAPS__build snapshot updated inconfig/vite.config.ts.generate-schemas.ts), tool-input mapping (generate-tool-input.ts), capabilities routing (capabilities.ts), skill docs (image-gen/video-genSKILL.md + newagnes-image.md/agnes-video.mdreferences), and connection probes (key-probes.ts).Verification
npx tsc -b --force— passesnpm run build— succeedscurlPOST/api/keyswith Agnes keys returnssource: runtimeandcaps.image/caps.video: trueNotes
package-lock.jsonwas intentionally excluded from this PR (the localnpm installonly reformatted the lockfile with the installed npm version; no dependency changes).