OpenaiEx.Beta.Threads.Messages (openai_ex v0.9.4)

View Source

This module provides an implementation of the OpenAI messages API. The API reference can be found at https://platform.openai.com/docs/api-reference/messages.

Summary

Functions

create(openai, thread_id, params)

create!(openai, thread_id, params)

Calls the message create endpoint.

https://platform.openai.com/docs/api-reference/messages/createMessage

delete(openai, thread_id, message_id)

delete!(openai, thread_id, message_id)

list(openai, thread_id, params \\ %{})

list!(openai, thread_id, params \\ %{})

new(args)

Creates a new message request

new_list(args)

Lists the messages that belong to the specified thread.

https://platform.openai.com/docs/api-reference/messages/listMessages

retrieve(openai, map)

retrieve!(openai, params)

Calls the message retrieve endpoint.

https://platform.openai.com/docs/api-reference/messages/getMessage

update(openai, map)

update!(openai, params)

Calls the message update endpoint.

https://platform.openai.com/docs/api-reference/messages/modifyMessage