Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing claude vertex case to handleProvider #1293

Merged
merged 1 commit into from
Dec 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/core/src/generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1066,8 +1066,12 @@ export const generateImage = async (
num_inference_steps: modelSettings?.steps ?? 50,
guidance_scale: data.guidanceScale || 3.5,
num_images: data.count,
enable_safety_checker: runtime.getSetting("FAL_AI_ENABLE_SAFETY_CHECKER") === "true",
safety_tolerance: Number(runtime.getSetting("FAL_AI_SAFETY_TOLERANCE") || "2"),
enable_safety_checker:
runtime.getSetting("FAL_AI_ENABLE_SAFETY_CHECKER") ===
"true",
safety_tolerance: Number(
runtime.getSetting("FAL_AI_SAFETY_TOLERANCE") || "2"
),
output_format: "png" as const,
seed: data.seed ?? 6252023,
...(runtime.getSetting("FAL_AI_LORA_PATH")
Expand Down Expand Up @@ -1368,6 +1372,7 @@ export async function handleProvider(
case ModelProviderName.AKASH_CHAT_API:
return await handleOpenAI(options);
case ModelProviderName.ANTHROPIC:
case ModelProviderName.CLAUDE_VERTEX:
return await handleAnthropic(options);
case ModelProviderName.GROK:
return await handleGrok(options);
Expand Down
Loading