coze-dev / coze-dev/coze-studio
coze-coding-dev-sdk 视频生成接口返回400
- Dominant language
- TypeScript
- Stars
- 21.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
import { VideoGenerationClient, Config, HeaderUtils } from 'coze-coding-dev-sdk';
const config = new Config();
const client = new VideoGenerationClient(config, customHeaders);
const contentItems = [{"type":"image_url","image_url":{"url":"xxx"},"role":"first_frame"},{"type":"text","text":"xxx"}]
const response = await client.videoGeneration(contentItems, {
duration: duration ? parseInt(duration) : 5,
ratio: '16:9',
resolution: '720p',
generateAudio: true,
});
请求返回400
且与npm文档不一致
https://www.npmjs.com/package/coze-coding-dev-sdk/v/0.7.17
版本0.7.17
Contributor guide
Research direction
Start at VideoGenerationClient.videoGeneration in coze-coding-dev-sdk and compare the 0.7.17 implementation with the linked npm documentation. Reproduce the 400 using the supplied contentItems and options; done means the example request works and the SDK documentation matches the implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100