Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SBrandeis committed Feb 13, 2025
1 parent 74300f9 commit c4ebc4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/inference/src/providers/novita.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ export const NOVITA_API_BASE_URL = "https://api.novita.ai/v3/openai";
* and we will tag Novita team members.
*
* Thanks!
*/
*/
11 changes: 5 additions & 6 deletions packages/inference/src/tasks/cv/textToImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import type { BaseArgs, InferenceProvider, Options } from "../../types";
import { omit } from "../../utils/omit";
import { request } from "../custom/request";
import { delay } from "../../utils/delay";
import { randomUUID } from "crypto";

export type TextToImageArgs = BaseArgs & TextToImageInput;

Expand Down Expand Up @@ -45,11 +44,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 | BlackForestLabsResponse
>(payload, {
Expand Down

0 comments on commit c4ebc4d

Please sign in to comment.