Skip to content

Commit

Permalink
just fetching upstream & merge
Browse files Browse the repository at this point in the history
  • Loading branch information
o-on-x committed Nov 7, 2024
1 parent 1d551e2 commit 04fabb0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/core/elizaConfig.example.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Load custom actions from the actions directory

# Close this into a elizaConfig.yaml file that is ignored by git
# Clone this into a elizaConfig.yaml file that is ignored by git

# Paths are relative to the core/src directory

Expand Down
5 changes: 3 additions & 2 deletions packages/core/src/core/defaultCharacter.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { Character, ModelProvider } from "./types.ts";
import { Character, ModelProvider, Clients } from "./types.ts";

export const defaultCharacter: Character = {
name: "Eliza",
plugins: [],
clients: [],
modelProvider: ModelProvider.LLAMALOCAL,
settings: {
secrets: {},
secrets: {
},
voice: {
model: "en_US-hfc_female-medium",
},
Expand Down
6 changes: 4 additions & 2 deletions packages/core/src/services/llama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ class LlamaService implements ILlamaService {
private delegate: ILlamaService;

private constructor() {
const provider = settings.LOCAL_LLAMA_PROVIDER;
const provider = process.env.LOCAL_LLAMA_PROVIDER;
console.log("provider: ", provider)
if (provider === ModelProvider.OLLAMA) {
if (true){//provider === ModelProvider.OLLAMA) {
console.log("running ollama")
this.delegate = OllamaService.getInstance();
} else {
console.log("running llama-cpp")
this.delegate = LlamaCppService.getInstance();
}
}
Expand Down

0 comments on commit 04fabb0

Please sign in to comment.