Skip to content

Commit 7f6c7dd

Browse files
WauplinSBrandeis
andauthored
Update packages/inference/src/providers/novita.ts
Co-authored-by: Simon Brandeis <[email protected]>
1 parent c706553 commit 7f6c7dd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/inference/src/providers/novita.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ const makeHeaders = (params: HeaderParams): Record<string, string> => {
3131

3232
const makeUrl = (params: UrlParams): string => {
3333
if (params.chatCompletion) {
34-
return `${params.baseUrl}/chat/completions`;
34+
return `${params.baseUrl}/v3/openai/chat/completions`;
3535
}
3636
if (params.task === "text-generation") {
37-
if (params.chatCompletion) {
38-
return `${params.baseUrl}/v3/openai/chat/completions`;
3937
}
4038
return `${params.baseUrl}/v3/openai/completions`;
4139
} else if (params.task === "text-to-video") {

0 commit comments

Comments
 (0)