-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
According to the docs about pdf inputs you are supposed to be able to optionally add a plugins array to openRouter.chat.send. However, the ChatGenerationParams does not type this array
export type ChatGenerationParams = {
messages: Array<Message>;
model?: string | undefined;
models?: Array<string> | undefined;
frequencyPenalty?: number | null | undefined;
logitBias?: {
[k: string]: number;
} | null | undefined;
logprobs?: boolean | null | undefined;
topLogprobs?: number | null | undefined;
maxCompletionTokens?: number | null | undefined;
maxTokens?: number | null | undefined;
metadata?: {
[k: string]: string;
} | undefined;
presencePenalty?: number | null | undefined;
reasoning?: Reasoning | undefined;
responseFormat?: ResponseFormatJSONSchema | ResponseFormatTextGrammar | ChatGenerationParamsResponseFormatText | ChatGenerationParamsResponseFormatJSONObject | ChatGenerationParamsResponseFormatPython | undefined;
seed?: number | null | undefined;
stop?: string | Array<string> | null | undefined;
stream?: boolean | undefined;
streamOptions?: ChatStreamOptions | null | undefined;
temperature?: number | null | undefined;
toolChoice?: any | undefined;
tools?: Array<ToolDefinitionJson> | undefined;
topP?: number | null | undefined;
user?: string | undefined;
};
dehli
Metadata
Metadata
Assignees
Labels
No labels