Skip to content

Commit

Permalink
onToken added in lama cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
shareefmorayur committed Nov 29, 2023
1 parent 993ce7a commit ca82cfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions langchain/src/chat_models/llama_cpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export class ChatLlamaCpp extends SimpleChatModel<LlamaCppCallOptions> {

try {
const promptOptions = {
onToken: _options.onToken,
maxTokens: this?.maxTokens,
temperature: this?.temperature,
topK: this?.topK,
Expand Down

0 comments on commit ca82cfa

Please sign in to comment.