openai/openai-go
Publicmirrored fromhttps://github.com/openai/openai-goAvailable
conversations/api.md
31lines · modecode
| 1 | # Conversations |
| 2 | |
| 3 | Response Types: |
| 4 | |
| 5 | - <a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ComputerScreenshotContent">ComputerScreenshotContent</a> |
| 6 | - <a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#Conversation">Conversation</a> |
| 7 | - <a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ConversationDeletedResource">ConversationDeletedResource</a> |
| 8 | - <a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#Message">Message</a> |
| 9 | - <a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#SummaryTextContent">SummaryTextContent</a> |
| 10 | - <a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#TextContent">TextContent</a> |
| 11 | |
| 12 | Methods: |
| 13 | |
| 14 | - <code title="post /conversations">client.Conversations.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ConversationService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ConversationNewParams">ConversationNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#Conversation">Conversation</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code> |
| 15 | - <code title="get /conversations/{conversation_id}">client.Conversations.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ConversationService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, conversationID <a href="https://pkg.go.dev/builtin#string">string</a>) (\*<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#Conversation">Conversation</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code> |
| 16 | - <code title="post /conversations/{conversation_id}">client.Conversations.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ConversationService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, conversationID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ConversationUpdateParams">ConversationUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#Conversation">Conversation</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code> |
| 17 | - <code title="delete /conversations/{conversation_id}">client.Conversations.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ConversationService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, conversationID <a href="https://pkg.go.dev/builtin#string">string</a>) (\*<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ConversationDeletedResource">ConversationDeletedResource</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code> |
| 18 | |
| 19 | ## Items |
| 20 | |
| 21 | Response Types: |
| 22 | |
| 23 | - <a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ConversationItemUnion">ConversationItemUnion</a> |
| 24 | - <a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ConversationItemList">ConversationItemList</a> |
| 25 | |
| 26 | Methods: |
| 27 | |
| 28 | - <code title="post /conversations/{conversation_id}/items">client.Conversations.Items.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ItemService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, conversationID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ItemNewParams">ItemNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ConversationItemList">ConversationItemList</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code> |
| 29 | - <code title="get /conversations/{conversation_id}/items/{item_id}">client.Conversations.Items.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ItemService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, conversationID <a href="https://pkg.go.dev/builtin#string">string</a>, itemID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ItemGetParams">ItemGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ConversationItemUnion">ConversationItemUnion</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code> |
| 30 | - <code title="get /conversations/{conversation_id}/items">client.Conversations.Items.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ItemService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, conversationID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ItemListParams">ItemListParams</a>) (\*<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/packages/pagination#ConversationCursorPage">ConversationCursorPage</a>[<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ConversationItemUnion">ConversationItemUnion</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code> |
| 31 | - <code title="delete /conversations/{conversation_id}/items/{item_id}">client.Conversations.Items.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#ItemService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, conversationID <a href="https://pkg.go.dev/builtin#string">string</a>, itemID <a href="https://pkg.go.dev/builtin#string">string</a>) (\*<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations">conversations</a>.<a href="https://pkg.go.dev/github.com/openai/openai-go/v3/conversations#Conversation">Conversation</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code> |
| 32 | |