UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

54 lines (53 loc) 1.23 kB
export interface IImageOptions { size?: string; promptExtend?: boolean; } export interface IMessage { role: string; content: string | Array<{ text?: string; image?: string; }>; name?: string; tool_calls?: Array<{ id: string; type: 'function'; function: { name: string; arguments: string; }; }>; } export interface IModelStudioRequestBody { model: string; input: { messages?: IMessage[]; prompt?: string; img_url?: string; audio_url?: string; }; parameters: { temperature?: number; top_p?: number; top_k?: number; max_tokens?: number; repetition_penalty?: number; stop?: string[]; enable_search?: boolean; seed?: number; prompt_extend?: boolean; size?: string; duration?: string | number; resolution?: string; shot_type?: string; audio?: boolean; tools?: Array<{ type: 'function'; function: { name: string; description: string; parameters: unknown; }; }>; }; }