feat: restrict title gen output to 50 tokens
This commit is contained in:
1 parent
594f2f264f
commit
b8c97fa012
2 files changed
+8
-2
No files matched your search
@@ -295,7 +295,9 @@ export const generateTitle = async (
|
||||
content: template
|
||||
}
|
||||
],
|
||||
stream: false
|
||||
stream: false,
|
||||
// Restricting the max tokens to 50 to avoid long titles
|
||||
max_tokens: 50,
|
||||
})
|
||||
})
|
||||
.then(async (res) => {
|
||||
|
||||
Reference in new issue
Block a user