mirror of
https://github.com/coaidev/coai.git
synced 2025-05-20 21:40:15 +09:00
update conversation id
This commit is contained in:
parent
ef463d5976
commit
aabb81109d
@ -1,6 +1,6 @@
|
||||
import axios from "axios";
|
||||
|
||||
export const version = "3.3.2";
|
||||
export const version = "3.3.3";
|
||||
export const deploy: boolean = true;
|
||||
export let rest_api: string = "http://localhost:8094";
|
||||
export let ws_api: string = "ws://localhost:8094";
|
||||
|
@ -17,6 +17,7 @@ export class Conversation {
|
||||
this.idx = -1;
|
||||
this.id = id;
|
||||
this.end = true;
|
||||
this.connection = new Connection(this.id);
|
||||
}
|
||||
|
||||
public setId(id: number): void {
|
||||
|
@ -94,7 +94,6 @@ export class Manager {
|
||||
);
|
||||
const target = await useHook();
|
||||
this.conversations[target] = this.conversations[-1];
|
||||
this.get(target)!.setId(target);
|
||||
delete this.conversations[-1]; // fix pointer
|
||||
this.conversations[-1] = this.createConversation(-1);
|
||||
this.current = target;
|
||||
|
Loading…
Reference in New Issue
Block a user