Skip to content

Commit 67afa27

Browse files
committed
fix code style
1 parent 6835182 commit 67afa27

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

packages/inference/src/providers/fal-ai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ abstract class FalAITask extends TaskProviderHelper {
5151
super("fal-ai", url || "https://fal.run", task);
5252
}
5353

54-
preparePayload(params: BodyParams): Record<string, unknown> | Promise<Record<string, unknown>> {
54+
preparePayload(params: BodyParams): Record<string, unknown> {
5555
return params.args;
5656
}
5757
makeRoute(params: UrlParams): string {

packages/inference/src/providers/providerHelper.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ export class BaseConversationalTask extends TaskProviderHelper {
8181
super(provider, baseUrl, "conversational", clientSideRoutingOnly);
8282
}
8383

84-
makeRoute(params: UrlParams): string {
85-
void params;
84+
makeRoute(): string {
8685
return "v1/chat/completions";
8786
}
8887

@@ -123,8 +122,7 @@ export class BaseTextGenerationTask extends TaskProviderHelper {
123122
model: params.model,
124123
};
125124
}
126-
makeRoute(params: UrlParams): string {
127-
void params;
125+
makeRoute(): string {
128126
return "v1/completions";
129127
}
130128

packages/inference/src/providers/together.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { BaseConversationalTask, BaseTextGenerationTask, TaskProviderHelper } fr
2222

2323
const TOGETHER_API_BASE_URL = "https://api.together.xyz";
2424

25-
interface TogeteherTextCompletionOutput extends Omit<ChatCompletionOutput, "choices"> {
25+
interface TogetherTextCompletionOutput extends Omit<ChatCompletionOutput, "choices"> {
2626
choices: Array<{
2727
text: string;
2828
finish_reason: TextGenerationOutputFinishReason;
@@ -57,7 +57,7 @@ export class TogetherTextGenerationTask extends BaseTextGenerationTask {
5757
};
5858
}
5959

60-
override getResponse(response: TogeteherTextCompletionOutput): TextGenerationOutput {
60+
override getResponse(response: TogetherTextCompletionOutput): TextGenerationOutput {
6161
if (
6262
typeof response === "object" &&
6363
"choices" in response &&

0 commit comments

Comments
 (0)