公众号验证码功能完成 yeah!!!
This commit is contained in:
8
node_modules/openai/resources/conversations/conversations.js
generated
vendored
8
node_modules/openai/resources/conversations/conversations.js
generated
vendored
@@ -15,23 +15,23 @@ class Conversations extends resource_1.APIResource {
|
||||
/**
|
||||
* Create a conversation.
|
||||
*/
|
||||
create(body, options) {
|
||||
create(body = {}, options) {
|
||||
return this._client.post('/conversations', { body, ...options });
|
||||
}
|
||||
/**
|
||||
* Get a conversation with the given ID.
|
||||
* Get a conversation
|
||||
*/
|
||||
retrieve(conversationID, options) {
|
||||
return this._client.get((0, path_1.path) `/conversations/${conversationID}`, options);
|
||||
}
|
||||
/**
|
||||
* Update a conversation's metadata with the given ID.
|
||||
* Update a conversation
|
||||
*/
|
||||
update(conversationID, body, options) {
|
||||
return this._client.post((0, path_1.path) `/conversations/${conversationID}`, { body, ...options });
|
||||
}
|
||||
/**
|
||||
* Delete a conversation with the given ID.
|
||||
* Delete a conversation. Items in the conversation will not be deleted.
|
||||
*/
|
||||
delete(conversationID, options) {
|
||||
return this._client.delete((0, path_1.path) `/conversations/${conversationID}`, options);
|
||||
|
||||
Reference in New Issue
Block a user