Interface OllamaNodeParameters

Source
interface OllamaNodeParameters {
    binaryPropertyName?: string;
    imageUrls?: string;
    inputType?: "url" | "binary";
    messages?: {
        values: {
            content?: string;
            role?: "user" | "assistant";
        }[];
    };
    modelId?: { mode: "id"
    | "list"; value: string };
    operation?: "analyze" | "message";
    options?: {
        format?: "" | "json";
        frequency_penalty?: number;
        keep_alive?: string;
        low_vram?: boolean;
        main_gpu?: number;
        min_p?: number;
        num_batch?: number;
        num_ctx?: number;
        num_gpu?: number;
        num_predict?: number;
        num_thread?: number;
        penalize_newline?: boolean;
        presence_penalty?: number;
        repeat_last_n?: number;
        repeat_penalty?: number;
        seed?: number;
        stop?: string;
        system?: string;
        temperature?: number;
        top_k?: number;
        top_p?: number;
        use_mlock?: boolean;
        use_mmap?: boolean;
        vocab_only?: boolean;
    };
    resource?: "image"
    | "text";
    simplify?: boolean;
    text?: string;
}

Properties§

Source§

readonly binaryPropertyName?: string

Name of the binary field(s) which contains the image(s), separate multiple field names with commas Default: "data"

Source§

readonly imageUrls?: string

URL(s) of the image(s) to analyze, multiple URLs can be added separated by comma

Source§

readonly inputType?: "url" | "binary"

Default: "binary"

Source§

readonly messages?: {
    values: {
        content?: string;
        role?: "user" | "assistant";
    }[];
}

Default: {"values":[{"content":"","role":"user"}]} Type options: {"sortable":true,"multipleValues":true}

Source§

readonly modelId?: { mode: "id" | "list"; value: string }

Default: {"mode":"list","value":""}

Source§

readonly operation?: "analyze" | "message"

Default: "analyze"

Source§

readonly options?: {
    format?: "" | "json";
    frequency_penalty?: number;
    keep_alive?: string;
    low_vram?: boolean;
    main_gpu?: number;
    min_p?: number;
    num_batch?: number;
    num_ctx?: number;
    num_gpu?: number;
    num_predict?: number;
    num_thread?: number;
    penalize_newline?: boolean;
    presence_penalty?: number;
    repeat_last_n?: number;
    repeat_penalty?: number;
    seed?: number;
    stop?: string;
    system?: string;
    temperature?: number;
    top_k?: number;
    top_p?: number;
    use_mlock?: boolean;
    use_mmap?: boolean;
    vocab_only?: boolean;
}

Default: {}

Source§

readonly resource?: "image" | "text"

Default: "text"

Source§

readonly simplify?: boolean

Whether to simplify the response or not Default: true

Source§

readonly text?: string

Default: "What's in this image?" Type options: {"rows":2}