chore: correct conversational PATCH methods with latest cortex update (#4568)
This commit is contained in:
parent
e99cbd9e5c
commit
ddc2cd5e0f
@ -63,7 +63,7 @@ export default class CortexConversationalExtension extends ConversationalExtensi
|
|||||||
async modifyThread(thread: Thread): Promise<void> {
|
async modifyThread(thread: Thread): Promise<void> {
|
||||||
return this.queue
|
return this.queue
|
||||||
.add(() =>
|
.add(() =>
|
||||||
ky.post(`${API_URL}/v1/threads/${thread.id}`, { json: thread })
|
ky.patch(`${API_URL}/v1/threads/${thread.id}`, { json: thread })
|
||||||
)
|
)
|
||||||
.then()
|
.then()
|
||||||
}
|
}
|
||||||
@ -101,7 +101,7 @@ export default class CortexConversationalExtension extends ConversationalExtensi
|
|||||||
async modifyMessage(message: ThreadMessage): Promise<ThreadMessage> {
|
async modifyMessage(message: ThreadMessage): Promise<ThreadMessage> {
|
||||||
return this.queue.add(() =>
|
return this.queue.add(() =>
|
||||||
ky
|
ky
|
||||||
.post(
|
.patch(
|
||||||
`${API_URL}/v1/threads/${message.thread_id}/messages/${message.id}`,
|
`${API_URL}/v1/threads/${message.thread_id}/messages/${message.id}`,
|
||||||
{
|
{
|
||||||
json: message,
|
json: message,
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
1.0.9-rc5
|
1.0.9-rc7
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user