Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-c committed Feb 10, 2025
1 parent 155517e commit 4ee9db8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/inference/src/tasks/cv/textToImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ export async function textToImage(args: TextToImageArgs, options?: Options): Pro
!args.provider || args.provider === "hf-inference" || args.provider === "sambanova"
? args
: {
...omit(args, ["inputs", "parameters"]),
...args.parameters,
...getResponseFormatArg(args.provider),
prompt: args.inputs,
};
...omit(args, ["inputs", "parameters"]),
...args.parameters,
...getResponseFormatArg(args.provider),
prompt: args.inputs,
};
const res = await request<TextToImageOutput | Base64ImageGeneration | OutputUrlImageGeneration>(payload, {
...options,
taskHint: "text-to-image",
Expand Down

0 comments on commit 4ee9db8

Please sign in to comment.