Skip to content

Commit

Permalink
Update LlamaCpp.ts (#731)
Browse files Browse the repository at this point in the history
Use the apiKey from the config for LlamaCpp requests
  • Loading branch information
Zsapi authored Jan 8, 2024
1 parent fe73d74 commit d2b928d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/llm/llms/LlamaCpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class LlamaCpp extends BaseLLM {
): AsyncGenerator<string> {
const headers = {
"Content-Type": "application/json",
"Authorization": `Bearer ${this.apiKey}`,
...this.requestOptions?.headers,
};

Expand Down

0 comments on commit d2b928d

Please sign in to comment.