OpenaiEx.Beta.Threads (openai_ex v0.9.4)

View Source

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

Summary

Functions

create(openai, params \\ %{})

create!(openai, params \\ %{})

Calls the thread create endpoint.

https://platform.openai.com/docs/api-reference/threads/createThread

delete(openai, thread_id)

delete!(openai, thread_id)

Calls the thread delete endpoint.

https://platform.openai.com/docs/api-reference/threads/deleteThread

list(openai, params \\ %{})

new(args)

Creates a new threads request

retrieve(openai, thread_id)

retrieve!(openai, thread_id)

Calls the thread retrieve endpoint.

https://platform.openai.com/docs/api-reference/threads/getThread

update(openai, thread_id, params)

update!(openai, thread_id, params)

Calls the thread update endpoint.

https://platform.openai.com/docs/api-reference/threads/modifyThread