Optionalfields: 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.
Model version to use. Available options are: v1.1, v2.1, v3.1
OptionaluserID of the end-user who made requests.
Calls the Xinghuo API completion.
The request to send to the Xinghuo API.
Optionalsignal: AbortSignalThe signal for the API call.
The response from the Xinghuo API.
Optionalsignal: AbortSignalGet the identifying parameters for the model
Optionalchat_Optionalmax_Optionaltemperature?: numberOptionaltop_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.
Example