Skip to content

Commit

Permalink
Fix deepseek support in getTokenForProvider (#2179)
Browse files Browse the repository at this point in the history
Co-authored-by: Odilitime <[email protected]>
  • Loading branch information
Riroaki and odilitime authored Jan 12, 2025
1 parent 263f87b commit edfba8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,11 @@ export function getTokenForProvider(
character.settings?.secrets?.INFERA_API_KEY ||
settings.INFERA_API_KEY
);
case ModelProviderName.DEEPSEEK:
return (
character.settings?.secrets?.DEEPSEEK_API_KEY ||
settings.DEEPSEEK_API_KEY
);
default:
const errorMessage = `Failed to get token - unsupported model provider: ${provider}`;
elizaLogger.error(errorMessage);
Expand Down

0 comments on commit edfba8d

Please sign in to comment.