Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
831b708
1
Parent(s):
2805e3e
add a limitation to prompt size
Browse files
src/app/server/aitube/createClap.ts
CHANGED
@@ -16,7 +16,7 @@ export async function createClap({
|
|
16 |
turbo?: boolean
|
17 |
}): Promise<ClapProject> {
|
18 |
const clap: ClapProject = await apiCreateClap({
|
19 |
-
prompt,
|
20 |
|
21 |
height: orientation === ClapMediaOrientation.PORTRAIT ? RESOLUTION_LONG : RESOLUTION_SHORT,
|
22 |
width: orientation === ClapMediaOrientation.PORTRAIT ? RESOLUTION_SHORT : RESOLUTION_LONG,
|
|
|
16 |
turbo?: boolean
|
17 |
}): Promise<ClapProject> {
|
18 |
const clap: ClapProject = await apiCreateClap({
|
19 |
+
prompt: prompt.slice(0, 512),
|
20 |
|
21 |
height: orientation === ClapMediaOrientation.PORTRAIT ? RESOLUTION_LONG : RESOLUTION_SHORT,
|
22 |
width: orientation === ClapMediaOrientation.PORTRAIT ? RESOLUTION_SHORT : RESOLUTION_LONG,
|