8000 still use model when provided alongside endpoint url · huggingface/huggingface.js@a0d0e1f · GitHub
[go: up one dir, main page]

Skip to content {"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}

Commit a0d0e1f

Browse files
committed
still use model when provided alongside endpoint url
1 parent 712ed1f commit a0d0e1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/inference/src/lib/makeRequestOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function makeRequestOptions(
3838

3939
if (args.endpointUrl) {
4040
// No need to have maybeModel, or to load default model for a task
41-
return makeRequestOptionsFromResolvedModel(args.endpointUrl, args, options); 4E7E
41+
return makeRequestOptionsFromResolvedModel(maybeModel ?? args.endpointUrl, args, options);
4242
}
4343

4444
if (!maybeModel && !task) {

0 commit comments

Comments
 (0)
0