Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
tcm390 committed Feb 7, 2025
1 parent 86b4d08 commit 885ae22
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/core/src/generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,6 @@ function getModelConfig(
stopSequences?: string[];
}
): any {
const isAnthropic =
runtime.getModelProvider()?.provider === "anthropic" ||
runtime.getModelProvider()?.provider === "claude";

if (isAnthropicProvider(runtime) && mode === "json") {
elizaLogger.warn("Anthropic does not support JSON mode. Switching to 'auto'.");
mode = "auto";
Expand Down

0 comments on commit 885ae22

Please sign in to comment.