mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 06:49:02 +08:00
refactor(openai): remove unnecessary await in createVideo method
This commit is contained in:
parent
a1fde0db38
commit
833d2d9276
@ -155,7 +155,7 @@ export class OpenAIResponseAPIClient extends OpenAIBaseClient<
|
|||||||
|
|
||||||
public async createVideo(params: CreateVideoParams): Promise<OpenAI.Videos.Video> {
|
public async createVideo(params: CreateVideoParams): Promise<OpenAI.Videos.Video> {
|
||||||
const sdk = await this.getSdkInstance()
|
const sdk = await this.getSdkInstance()
|
||||||
return await sdk.videos.create(params.params, params.options)
|
return sdk.videos.create(params.params, params.options)
|
||||||
}
|
}
|
||||||
|
|
||||||
private async handlePdfFile(file: FileMetadata): Promise<OpenAI.Responses.ResponseInputFile | undefined> {
|
private async handlePdfFile(file: FileMetadata): Promise<OpenAI.Responses.ResponseInputFile | undefined> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user