This module provides an implementation of the OpenAI Conversation Items API. The API reference can be found at https://platform.openai.com/docs/api-reference/conversations/items.
Summary
Functions
Creates conversation items (one or more messages).
Deletes a conversation item.
Lists all items in a conversation.
Creates a new conversation items request with the given arguments.
Retrieves a specific conversation item by ID.
Functions
Creates conversation items (one or more messages).
See https://platform.openai.com/docs/api-reference/conversations/createItem
Deletes a conversation item.
See https://platform.openai.com/docs/api-reference/conversations/deleteItem
Lists all items in a conversation.
See https://platform.openai.com/docs/api-reference/conversations/listItems
Creates a new conversation items request with the given arguments.
Examples
iex> OpenaiEx.ConversationItems.new(items: [%{type: "message", role: "user", content: [%{type: "input_text", text: "Hello"}]}])
%{items: [%{type: "message", role: "user", content: [%{type: "input_text", text: "Hello"}]}]}
Retrieves a specific conversation item by ID.
See https://platform.openai.com/docs/api-reference/conversations/retrieveItem