Skip to content

Commit

Permalink
Update Janus JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova committed Oct 31, 2024
1 parent 2ade0ba commit a4ecf08
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/models/janus/processing_janus.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ export class VLChatProcessor extends Processor {
}

/**
* @param {*} conversation
* @param {Object} options
* @param {RawImage|RawImage[]} [options.images]
* @param {string} [options.chat_template="default"]
* @returns
* @typedef {Object} MultimodalMessageProperties Additional properties for multimodal messages.
* @property {(RawImage | string | URL)[]} [images] The images in the message.
* @typedef {(import('../../tokenizers.js').Message & MultimodalMessageProperties)[]} MultimodalConversation The conversation possibly containing multimodal inputs.
*/

/**
* @param {MultimodalConversation} conversation The chat messages to process.
* @param {Object} options Additional options for processing.
* @param {RawImage|RawImage[]} [options.images] The images to process, if not set in the conversation.
* @param {string} [options.chat_template="default"] The chat template to use.
* @returns {Promise<{input_ids: Tensor; attention_mask: Tensor; images_seq_mask: Tensor; images_emb_mask: Tensor;} & import('../../base/image_processors_utils.js').ImageProcessorResult>} The processed input.
*/
async _call(conversation, {
images = null,
Expand Down

0 comments on commit a4ecf08

Please sign in to comment.