Create a thread and run it in one request.
Request body which must comply to the following JSON Schema:
{ "required" : [ "assistant_id", "thread_id" ], "type" : "object", "properties" : { "assistant_id" : { "type" : "string", "description" : "The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run." }, "thread" : { "type" : "object", "properties" : { "messages" : { "type" : "array", "description" : "A list of [messages](/docs/api-reference/messages) to start the thread with.", "items" : { "required" : [ "content", "role" ], "type" : "object", "properties" : { "role" : { "type" : "string", "description" : "The role of the entity that is creating the message. Currently only `user` is supported.", "enum" : [ "user" ] }, "content" : { "maxLength" : 32768, "minLength" : 1, "type" : "string", "description" : "The content of the message." }, "file_ids" : { "maxItems" : 10, "minItems" : 1, "type" : "array", "description" : "A list of [File](/docs/api-reference/files) IDs that the message should use. There can be a maximum of 10 files attached to a message. Useful for tools like `retrieval` and `code_interpreter` that can access and use files.", "items" : { "type" : "string" }, "default" : [ ] }, "metadata" : { "type" : "object", "description" : "metadata_description", "nullable" : true, "x-oaiTypeLabel" : "map" } }, "additionalProperties" : false } }, "metadata" : { "type" : "object", "description" : "metadata_description", "nullable" : true, "x-oaiTypeLabel" : "map" } }, "additionalProperties" : false }, "model" : { "type" : "string", "description" : "The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used.", "nullable" : true }, "instructions" : { "type" : "string", "description" : "Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis.", "nullable" : true }, "tools" : { "maxItems" : 20, "type" : "array", "description" : "Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis.", "nullable" : true, "items" : { "oneOf" : [ { "title" : "Code interpreter tool", "required" : [ "type" ], "type" : "object", "properties" : { "type" : { "type" : "string", "description" : "The type of tool being defined: `code_interpreter`", "enum" : [ "code_interpreter" ] } } }, { "title" : "Retrieval tool", "required" : [ "type" ], "type" : "object", "properties" : { "type" : { "type" : "string", "description" : "The type of tool being defined: `retrieval`", "enum" : [ "retrieval" ] } } }, { "title" : "Function tool", "required" : [ "function", "type" ], "type" : "object", "properties" : { "type" : { "type" : "string", "description" : "The type of tool being defined: `function`", "enum" : [ "function" ] }, "function" : { "required" : [ "name" ], "type" : "object", "properties" : { "description" : { "type" : "string", "description" : "A description of what the function does, used by the model to choose when and how to call the function." }, "name" : { "type" : "string", "description" : "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64." }, "parameters" : { "type" : "object", "additionalProperties" : true, "description" : "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/text-generation/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. \n\nOmitting `parameters` defines a function with an empty parameter list." } } } } } ] } }, "metadata" : { "type" : "object", "description" : "metadata_description", "nullable" : true, "x-oaiTypeLabel" : "map" } }, "additionalProperties" : false }
Specify how the response should be mapped to the table output. The following formats are available:
Raw Response: Returns the raw response in a single row with the following columns:
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension OpenAI Nodes from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com, follow @NodePit on Twitter or botsin.space/@nodepit on Mastodon.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.