Skip to content

Commit

Permalink
Merge pull request #3057 from elizaOS/tcm-image-model-handling
Browse files Browse the repository at this point in the history
fix: handle unsupported image provider
  • Loading branch information
tcm390 authored Jan 30, 2025
2 parents b0b6667 + 54d2502 commit a2529c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1642,6 +1642,10 @@ export const generateImage = async (
error?: any;
}> => {
const modelSettings = getImageModelSettings(runtime.imageModelProvider);
if (!modelSettings) {
elizaLogger.warn("No model settings found for the image model provider.");
return { success: false, error: "No model settings available" };
}
const model = modelSettings.name;
elizaLogger.info("Generating image with options:", {
imageModelProvider: model,
Expand Down

0 comments on commit a2529c5

Please sign in to comment.