Skip to content

Commit

Permalink
Merge pull request #1306 from suicidalgoofy/main
Browse files Browse the repository at this point in the history
no token needed for gaianet
  • Loading branch information
monilpat authored Dec 21, 2024
2 parents 8bb90f2 + cedb9b9 commit c675e9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,11 @@ export function getTokenForProvider(
character: Character
): string {
switch (provider) {
// no key needed for llama_local
// no key needed for llama_local or gaianet
case ModelProviderName.LLAMALOCAL:
return "";
case ModelProviderName.GAIANET:
return "";
case ModelProviderName.OPENAI:
return (
character.settings?.secrets?.OPENAI_API_KEY ||
Expand Down

0 comments on commit c675e9d

Please sign in to comment.