Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vitepress/config/apiReferenceSidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const classesOrder = [
"LlamaEmbeddingContext",
"LlamaEmbedding",
"LlamaRankingContext",
"LlamaDecisionContext",
"LlamaGrammar",
"LlamaJsonSchemaGrammar",
"LlamaText",
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ console.log({
queue: answers.team.confidence >= 0.7
? answers.team.choice
: "triage",
priority: answers.impact.score >= 1.5
priority: answers.impact.score >= 1.5 // 0-2 range
? "high"
: "normal",
nextStep: answers.troubleshooted.value >= 0.8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ export function generateCriteriaChoiceOptionTokens(min: number, max: number, tok
return false;
}

addRanges("09");

if (additionalChars !== "") {
for (const char of additionalChars) {
if (pushCharacter(char))
break;
}
}

addRanges("09");

if (res.size < min)
throw new RangeError(
"Failed to find enough choice options for the given criteria. " +
Expand Down
Loading