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.
Model version to use. Available options are: v1.1, v2.1, v3.1, v3.5, v4.0
Optional
userID of the end-user who made requests.
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.
Optional
signal: AbortSignalGet the identifying parameters for the model
Optional
chat_Optional
max_Optional
temperature?: numberOptional
top_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