Skip to content

Commit

Permalink
Made constructors of node-llama-cpp public
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacky3003 committed Nov 6, 2024
1 parent 580950f commit 45a6c47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/langchain-community/src/chat_models/llama_cpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class ChatLlamaCpp extends SimpleChatModel<LlamaCppCallOptions> {
return "ChatLlamaCpp";
}

protected constructor(inputs: LlamaCppInputs) {
public constructor(inputs: LlamaCppInputs) {
super(inputs);
this.maxTokens = inputs?.maxTokens;
this.temperature = inputs?.temperature;
Expand Down
2 changes: 1 addition & 1 deletion libs/langchain-community/src/embeddings/llama_cpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class LlamaCppEmbeddings extends Embeddings {

_context: LlamaContext;

protected constructor(inputs: LlamaCppEmbeddingsParams) {
public constructor(inputs: LlamaCppEmbeddingsParams) {
super(inputs);
const _inputs = inputs;
_inputs.embedding = true;
Expand Down
2 changes: 1 addition & 1 deletion libs/langchain-community/src/llms/llama_cpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class LlamaCpp extends LLM<LlamaCppCallOptions> {
return "LlamaCpp";
}

protected constructor(inputs: LlamaCppInputs) {
public constructor(inputs: LlamaCppInputs) {
super(inputs);
this.maxTokens = inputs?.maxTokens;
this.temperature = inputs?.temperature;
Expand Down

0 comments on commit 45a6c47

Please sign in to comment.