Skip to content

Commit

Permalink
Merge pull request #4 from yodamaster726/ollama-fix
Browse files Browse the repository at this point in the history
fix: ci errors and restore defaultcharacter.ts
  • Loading branch information
yodamaster726 authored Nov 23, 2024
2 parents 079124b + 8618d66 commit 77c57ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/defaultCharacter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const defaultCharacter: Character = {
username: "eliza",
plugins: [],
clients: [],
modelProvider: ModelProviderName.OLLAMA,
modelProvider: ModelProviderName.OPENAI,
settings: {
secrets: {},
voice: {
Expand Down
12 changes: 1 addition & 11 deletions packages/core/src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import settings from "./settings.ts";
import { Logger, ILogObjMeta, ILogObj } from "tslog";

interface IElizaLogger extends Logger<IElizaLogger> {
progress(message: string): void;
}

class ElizaLogger implements IElizaLogger {
class ElizaLogger {
constructor() {
// Check if we're in Node.js environment
this.isNode =
Expand Down Expand Up @@ -180,7 +175,6 @@ class ElizaLogger implements IElizaLogger {
}
}

// @ts-ignore - custom implementation
log(...strings) {
this.#logWithStyle(strings, {
fg: "white",
Expand All @@ -190,7 +184,6 @@ class ElizaLogger implements IElizaLogger {
});
}

// @ts-ignore - custom implementation
warn(...strings) {
this.#logWithStyle(strings, {
fg: "yellow",
Expand All @@ -200,7 +193,6 @@ class ElizaLogger implements IElizaLogger {
});
}

// @ts-ignore - custom implementation
error(...strings) {
this.#logWithStyle(strings, {
fg: "red",
Expand All @@ -210,7 +202,6 @@ class ElizaLogger implements IElizaLogger {
});
}

// @ts-ignore - custom implementation
info(...strings) {
this.#logWithStyle(strings, {
fg: "blue",
Expand All @@ -220,7 +211,6 @@ class ElizaLogger implements IElizaLogger {
});
}

// @ts-ignore - custom implementation
debug(...strings) {
if (!this.verbose) return;
this.#logWithStyle(strings, {
Expand Down
8 changes: 6 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 77c57ee

Please sign in to comment.