File tree 2 files changed +10
-3
lines changed 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ Leverage the large language models to assist in your development process. Curren
28
28
%%xassist model
29
29
prompt
30
30
31
+ - Reset model and clear chat history
32
+
33
+ .. code ::
34
+
35
+ %%xassist model --refresh
36
+
31
37
- Example
32
38
33
39
.. image :: gemini.png
Original file line number Diff line number Diff line change @@ -100,11 +100,11 @@ namespace xcpp
100
100
101
101
if (model == " gemini" )
102
102
{
103
- out << " { \" role\" : \" " << user << " \ " , \ " parts\ " : [ { \ " text\ " : " << serializedCell << " }]}\n " ;
103
+ out << " { \" role\" : \" " << user << R"( ", "parts": [ { "text": ) " << serializedCell << " }]}\n " ;
104
104
}
105
105
else
106
106
{
107
- out << " { \" role\" : \" " << user << " \ " , \ " content\ " : " << serializedCell << " }\n " ;
107
+ out << " { \" role\" : \" " << user << R"( ", "content": ) " << serializedCell << " }\n " ;
108
108
}
109
109
110
110
out.close ();
@@ -275,7 +275,8 @@ namespace xcpp
275
275
xcpp::APIKeyManager::saveApiKey (model, cell);
276
276
return ;
277
277
}
278
- else if (tokens[2 ] == " --refresh" )
278
+
279
+ if (tokens[2 ] == " --refresh" )
279
280
{
280
281
xcpp::ChatHistory::refresh (model);
281
282
return ;
You can’t perform that action at this time.
0 commit comments