Skip to content

Commit c4ebc4d

Browse files
committed
lint
1 parent 74300f9 commit c4ebc4d

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

packages/inference/src/providers/novita.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ export const NOVITA_API_BASE_URL = "https://api.novita.ai/v3/openai";
1515
* and we will tag Novita team members.
1616
*
1717
* Thanks!
18-
*/
18+
*/

packages/inference/src/tasks/cv/textToImage.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { BaseArgs, InferenceProvider, Options } from "../../types";
44
import { omit } from "../../utils/omit";
55
import { request } from "../custom/request";
66
import { delay } from "../../utils/delay";
7-
import { randomUUID } from "crypto";
87

98
export type TextToImageArgs = BaseArgs & TextToImageInput;
109

@@ -45,11 +44,11 @@ export async function textToImage(args: TextToImageArgs, options?: Options): Pro
4544
!args.provider || args.provider === "hf-inference" || args.provider === "sambanova"
4645
? args
4746
: {
48-
...omit(args, ["inputs", "parameters"]),
49-
...args.parameters,
50-
...getResponseFormatArg(args.provider),
51-
prompt: args.inputs,
52-
};
47+
...omit(args, ["inputs", "parameters"]),
48+
...args.parameters,
49+
...getResponseFormatArg(args.provider),
50+
prompt: args.inputs,
51+
};
5352
const res = await request<
5453
TextToImageOutput | Base64ImageGeneration | OutputUrlImageGeneration | BlackForestLabsResponse
5554
>(payload, {

0 commit comments

Comments
 (0)