Skip to content

Commit

Permalink
Merge pull request elizaOS#649 from dr-fusion/main
Browse files Browse the repository at this point in the history
added support for LlamaLocal's path outside plugin-node/dist
  • Loading branch information
lalalune authored Nov 28, 2024
2 parents dbec9fd + 56e7930 commit 6407efd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ SMALL_OLLAMA_MODEL= # Default: llama3.2
MEDIUM_OLLAMA_MODEL= # Default: hermes3
LARGE_OLLAMA_MODEL= # Default: hermes3:70b

#LlamaLocal Configuration
LLAMALOCAL_PATH= # Default: "" which is the current directory in plugin-node/dist/ which gets destroyed and recreated on every build

# API Keys
ANTHROPIC_API_KEY= # For Claude
HEURIST_API_KEY= # Get from https://heurist.ai/dev-access
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-node/src/services/llama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class LlamaService extends Service {
this.modelUrl =
"https://huggingface.co/NousResearch/Hermes-3-Llama-3.1-8B-GGUF/resolve/main/Hermes-3-Llama-3.1-8B.Q8_0.gguf?download=true";
const modelName = "model.gguf";
this.modelPath = path.join(__dirname, modelName);
this.modelPath = path.join(process.env.LLAMALOCAL_PATH, modelName);
this.ollamaModel = process.env.OLLAMA_MODEL;
}

Expand Down

0 comments on commit 6407efd

Please sign in to comment.