"...composable_kernel_onnxruntime.git" did not exist on "968bd93285318f0e43319d4c2a27c352a458ddd3"
Unverified Commit 0334ab7c authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #2001 from cheahjs/feat/limit-title-gen-tokens

feat: restrict title gen output to 50 tokens
parents e92311b4 b8c97fa0
......@@ -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) => {
......
......@@ -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) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment