{ model: 'gpt-3.5-turbo-1106', token: 'sk-f4fe8b67-fcbe-46fd-8cc9-fd1dac5d6d59', messages: [ { role: 'user', content: '使用json格式返回十二生肖,包含中文名和英文名,[{id:"1", enName:"", cnName: ""}]', }, ], params: { n: 1, response_format: { type: 'json_object...
messages: [ { role: 'user', content: '使用json格式返回十二生肖,包含中文名和英文名,[{id:"1", enName:"", cnName: ""}]', }, ], params: { n: 1, response_format: { type: 'json_object' }, }, }) .then((res) => { if (res.code =...
Error code: 400 - {'error': {'message': "Invalid parameter: 'response_format' of type 'json_object' is not supported with this model.", 'type': 'invalid_request_error', 'param': 'response_format', 'code': None}} Is forcing the json_object parameter messing up the OpenAI request?
🐛 Describe the bug When using --num-scheduler-steps 8 and request with "response_format": { "type": "json_object" }, vllm raise an error and crash after that. The error log: Compiling FSM index for all state transitions: 100%|██████████████████████| 3...
Bases: object Specify the format the model output is guaranteed to be of Attributes TYPE_JSON_OBJECT A constant which can be used with the type property of a CohereResponseFormat. TYPE_TEXT A constant which can be used with the type property of a CohereResponseFormat....
Extends ChatCompletionsResponseFormatParent Properties Expand table type Response format type: always 'json_object' for this object. Property Details type Response format type: always 'json_object' for this object. TypeScript Copy type: "json_object" Property Value "json_object" In...
type The discriminated object type, which is always 'json_object' for this format. Property Details type The discriminated object type, which is always 'json_object' for this format. TypeScript type:"json_object" Property Value "json_object" ...
"type": "json_schema", "json_schema": { "name": "email_schema", "schema": { "type": "object", "properties": { "email": { "description": "The email address that appears in the input", "type": "string" } }, "required": ["email"], "additionalProperties": ...
java.lang.Object com.microsoft.rest.ExpandableStringEnum<ResponseFormat> com.microsoft.azure.cognitiveservices.search.autosuggest.models.ResponseFormat public class ResponseFormatDefines values for ResponseFormat. Field Summary Modifier and TypeField and Description final ResponseFormat JSON Static value Json ...
java.lang.Object.clone java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait Field Details JSON public static final ResponseFormat JSON Static value Json for ResponseFormat....