Skip to content

Commit

Permalink
onToken in llama_cpp llm
Browse files Browse the repository at this point in the history
  • Loading branch information
shareefmorayur committed Dec 1, 2023
1 parent 7224915 commit a180fc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion langchain/src/llms/llama_cpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ export class LlamaCpp extends LLM<LlamaCppCallOptions> {
/** @ignore */
async _call(
prompt: string,
_options?: this["ParsedCallOptions"]
options?: this["ParsedCallOptions"]
): Promise<string> {
try {
const promptOptions = {
onToken: options?.onToken,
maxTokens: this?.maxTokens,
temperature: this?.temperature,
topK: this?.topK,
Expand Down

0 comments on commit a180fc3

Please sign in to comment.