Optional
fields: anyAPI key to use when making requests. Defaults to the value of
IFLYTEK_API_KEY
environment variable.
API Secret to use when making requests. Defaults to the value of
IFLYTEK_API_SECRET
environment variable.
APPID to use when making requests. Defaults to the value of
IFLYTEK_APPID
environment variable.
Amount of randomness injected into the response. Ranges from 0 to 1 (0 is not included). Use temp closer to 0 for analytical / multiple choice, and temp closer to 1 for creative and generative tasks. Defaults to 0.5.
Optional
userID of the end-user who made requests.
Model version to use. Available options are: v1.1, v2.1, v3.1, v3.5, v4.0
Optional
runManager: anyCalls the Xinghuo API completion.
The request to send to the Xinghuo API.
Optional
signal: AbortSignalThe signal for the API call.
The response from the Xinghuo API.
Calls the Xinghuo API completion.
The request to send to the Xinghuo API.
Optional
signal: AbortSignalThe signal for the API call.
The response from the Xinghuo API.
Get the identifying parameters for the model
Get the parameters used to invoke the model
Method that retrieves the auth websocketStream for making requests to the Iflytek Xinghuo API.
The auth websocketStream for making requests to the Iflytek Xinghuo API.
Static
lc_
Example