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
@@ -159,7 +159,11 @@ export const generateTitle = async (
|
||||
body: JSON.stringify({
|
||||
model: model,
|
||||
prompt: template,
|
||||
stream: false
|
||||
stream: false,
|
||||
options: {
|
||||
// Restrict the number of tokens generated to 50
|
||||
num_predict: 50,
|
||||
}
|
||||
})
|
||||
})
|
||||
.then(async (res) => {
|
||||
|
||||
Reference in new issue
Block a user