Skip to content

Commit 531d1e3

Browse files
committed
doc: options
1 parent 81698e0 commit 531d1e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/inference/src/snippets/getInferenceSnippets.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export type InferenceSnippetOptions = {
2020
accessToken?: string;
2121
directRequest?: boolean; // to bypass HF routing and call the provider directly
2222
endpointUrl?: string; // to call a local endpoint directly
23+
inputs?: Record<string, unknown>; // overrides the default snippet's inputs
2324
} & Record<string, unknown>;
2425

2526
const PYTHON_CLIENTS = ["huggingface_hub", "fal_client", "requests", "openai"] as const;

0 commit comments

Comments
 (0)