SC.add discards any temp role message and not just tool temp msg New SC.add_smart which either adds a new message to the chat session or replaces existing last message in the chat session, based on same role or different, given that the chat session cant have the same role type chat message occuring adjacent in it. Inturn rename MCUI chatmsg_add_uishow to chatmsg_addsmart_uishow and use add_smart * helps wrt trying to rerun a tool call with modified args or so. Rather prev discard temp role messages in SC.add not good enough as uniqId will change in its case. Helps avoid adding duplicate ToolTemp messages in chat session ui * can help if loading a prev chat session which ended in a user message without a ai response. User can type in a new message and continue that old chat session, with the new message, replacing the old user message as well as initiating handshake with ai server in a proper manner. Replace MCUI chatmsg_ui_updateprev_appendlast with chatmsg_ui_refresh which is a more generic flow, which takes care of updating the ui as needed irrespective of if the specified set of messages are already in the chat session ui or not. Also allows the caller to control how many messages at the end need to be refreshed wrt ui. |
||
|---|---|---|
| .. | ||
| batched-bench | ||
| cvector-generator | ||
| export-lora | ||
| gguf-split | ||
| imatrix | ||
| llama-bench | ||
| main | ||
| mtmd | ||
| perplexity | ||
| quantize | ||
| rpc | ||
| run | ||
| server | ||
| tokenize | ||
| tts | ||
| CMakeLists.txt | ||