mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 10:46:21 +00:00
fix(ai): remove duplicate assistant response in the message history
This commit is contained in:
@@ -47,7 +47,6 @@ aiwin_display_response(ProfAiWin* win, const char* response)
|
||||
log_debug("[AI-WIN] Displayed AI response");
|
||||
|
||||
// Add to conversation history
|
||||
ai_session_add_message(win->session, "assistant", response);
|
||||
log_debug("[AI-WIN] Added assistant message to session history");
|
||||
}
|
||||
|
||||
|
||||
@@ -347,8 +347,6 @@ win_create_ai(AISession* session)
|
||||
return &new_win->window;
|
||||
}
|
||||
|
||||
|
||||
|
||||
gchar*
|
||||
win_get_title(ProfWin* window)
|
||||
{
|
||||
|
||||
@@ -101,5 +101,4 @@ char* win_quote_autocomplete(ProfWin* window, const char* const input, gboolean
|
||||
char* get_show_char(prof_enc_t encryption_mode);
|
||||
char* get_enc_char(prof_enc_t enc_mode, const char* alt);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user