This will help ensure that switching sessions etal wont lead to loosing handle to sessions that one exited from, with additional logic to be added later. Rather I am thinking, maybe it may make more sense to dynamically pick the currently active chat sessions latestResponse field to inturn show into a div element at end of the elDivChat. On thinking further, maybe making elDivStream into elDivStreams with seperate div for each session is the better thing, as the SC.handle_response will be able to update its corresponding div and the session switch can link the currently visible session's div to be mapped to elDivChat. NOTE: Rather this commit in itself should take care of the current normal flow, which wont allow user to switch sessions when a tool call or handshake with server is pending. However in future if I want the ui to be freely switched independent of if a tool call or server handshake is active, then I need the logic mentioned in previous para. |
||
|---|---|---|
| .. | ||
| batched-bench | ||
| cvector-generator | ||
| export-lora | ||
| gguf-split | ||
| imatrix | ||
| llama-bench | ||
| main | ||
| mtmd | ||
| perplexity | ||
| quantize | ||
| rpc | ||
| run | ||
| server | ||
| tokenize | ||
| tts | ||
| CMakeLists.txt | ||