Interface: ChatPayload
Defined in: src/deepseek-r1/deepseek.ts:9
The ChatPayload
interface represents the structure of the payload sent to the Gradio queue endpoint.
Properties
data
data:
string | unknown[] | boolean
Defined in: src/deepseek-r1/deepseek.ts:10
This property represents the main content of the payload. It can be of type string
, an array of unknown elements, or a boolean value, allowing flexibility in the types of data that can be submitted.
event_data
event_data:
null
Defined in: src/deepseek-r1/deepseek.ts:11
This property is expected to be null
. Its purpose is to reserve space for potential event data that may not be included in every payload submission.
fn_index
fn_index:
number
Defined in: src/deepseek-r1/deepseek.ts:12
This property specifies the index of the function to be called within the Gradio interface. It should be a numeric value that corresponds to the order of functions available.
session_hash
session_hash:
string
Defined in: src/deepseek-r1/deepseek.ts:13
This property holds a unique string identifier for the session. It is used to track the user session and ensure that requests are properly associated with the relevant context.