Add admin-gated GLM video research and inspection API - #18
Closed
devhims wants to merge 1 commit into
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Owner
Author
|
Superseded by #19, which presents the same reviewed code as six focused commits on feat/video-agent-api. |
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.
Adds an asynchronous video agent API for topic research and single-video inspection. Authenticated callers can start idempotent runs, poll results, and restore or search conversation history. GLM powers routing, the agent loop, transcript analysis, and isolated storyboard analysis.
The endpoint ships behind
AGENT_RUNTIME_ENABLEDandAGENT_ACCESS_MODE=admins. Admin access checks the authenticated account's current verified email againstADMIN_EMAILS_SECRET, including for API-key callers. Setting the access mode toallenables a later rollout to authenticated users.Validation:
The live non-admin check was skipped without a second token; automated access-control tests passed. No endpoint deployment was performed. Deployment requires the
ADMIN_EMAILS_SECRETbinding and the configured Durable Object migrations.