Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsayo committed Feb 2, 2025
1 parent e78d94e commit f9330a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ async function startAgent(
character.id ??= stringToUuid(character.name);
character.username ??= character.name;

const token = getTokenForProvider(character.modelProvider, character);
const token = getTokenForProvider(character);
const dataDir = path.join(__dirname, "../data");

if (!fs.existsSync(dataDir)) {
Expand Down

0 comments on commit f9330a3

Please sign in to comment.