@@ -3401,6 +3401,7 @@ Current version indicated by LITEVER below.
34013401 var schedule_multiplayer_major_change = false;
34023402 var last_request_str = "No Requests Available"; //full context of last submitted request
34033403 var last_response_obj = null;
3404+ var last_response_streamlog = "";
34043405 var lastcheckgenkey = ""; //for checking polled-streaming unique id when generating in kcpp
34053406 var kai_poll_recoverykey = ""; //for recovering a lost polled streaming in case of disconnect.
34063407 var globalabortcontroller = null;
@@ -6376,6 +6377,10 @@ Current version indicated by LITEVER below.
63766377 },
63776378 transform(chunk, ctrl) {
63786379 ctrl.buf += chunk;
6380+ if(chunk)
6381+ {
6382+ last_response_streamlog += chunk;
6383+ }
63796384 let evs = [];
63806385 let m;
63816386 while ((m = /^data: ?(.*)(\r?\n){2}/m.exec(ctrl.buf)) !== null) {
@@ -10133,6 +10138,10 @@ Current version indicated by LITEVER below.
1013310138 {
1013410139 lr += "\n\nResponse:\n" + JSON.stringify(last_response_obj);
1013510140 }
10141+ if(last_response_streamlog)
10142+ {
10143+ lr += "\n\nResponse:\n" + last_response_streamlog;
10144+ }
1013610145 msgbox(lr,"Last Request Info",false);
1013710146 }
1013810147 function show_last_logprobs()
@@ -11191,7 +11200,7 @@ Current version indicated by LITEVER below.
1119111200 desired_oai_ep = transform_oai_ep(desired_oai_ep);
1119211201
1119311202 let oaiheaders = {};
11194- if(desired_oai_key!=""){
11203+ if(desired_oai_key!="" && !desired_oai_ep.toLowerCase().includes("pollinations.ai") ){
1119511204 oaiheaders["Authorization"] = "Bearer " + desired_oai_key;
1119611205 };
1119711206 if (desired_oai_ep.toLowerCase().includes("api.mistral.ai")) {
@@ -14890,6 +14899,7 @@ Current version indicated by LITEVER below.
1489014899 redo_arr = [];
1489114900 last_request_str = "No Requests Available";
1489214901 last_response_obj = null;
14902+ last_response_streamlog = "";
1489314903 retry_prev_text = [];
1489414904 retry_preserve_last = false;
1489514905 retry_in_progress = false;
@@ -17355,6 +17365,7 @@ Current version indicated by LITEVER below.
1735517365
1735617366 last_request_str = JSON.stringify(submit_payload);
1735717367 last_response_obj = null;
17368+ last_response_streamlog = "";
1735817369 if (localsettings.tokenstreammode==2 && is_using_kcpp_with_sse()) {
1735917370 let sub_endpt = apply_proxy_url(custom_kobold_endpoint + kobold_custom_gen_stream_endpoint);
1736017371 kobold_api_stream_sse(sub_endpt, submit_payload);
@@ -17527,11 +17538,15 @@ Current version indicated by LITEVER below.
1752717538
1752817539 last_request_str = JSON.stringify(oai_payload);
1752917540 last_response_obj = null;
17541+ last_response_streamlog = "";
1753017542 let oaiheaders = {
17531- 'Content-Type': 'application/json',
17532- 'Authorization': 'Bearer ' + custom_oai_key
17543+ 'Content-Type': 'application/json'
1753317544 };
1753417545
17546+ if (!targetep.toLowerCase().includes("pollinations.ai")) {
17547+ oaiheaders['Authorization'] = 'Bearer ' + custom_oai_key;
17548+ }
17549+
1753517550 if(targetep.toLowerCase().includes("openrouter.ai"))
1753617551 {
1753717552 oaiheaders["HTTP-Referer"] = "https://lite.koboldai.net";
@@ -17664,6 +17679,7 @@ Current version indicated by LITEVER below.
1766417679
1766517680 last_request_str = JSON.stringify(claude_payload);
1766617681 last_response_obj = null;
17682+ last_response_streamlog = "";
1766717683
1766817684 let claudeheaders = {
1766917685 'Content-Type': 'application/json',
@@ -17854,6 +17870,7 @@ Current version indicated by LITEVER below.
1785417870
1785517871 last_request_str = JSON.stringify(payload);
1785617872 last_response_obj = null;
17873+ last_response_streamlog = "";
1785717874
1785817875 let geminiheaders = { 'Content-Type': 'application/json' };
1785917876 if(is_browser_supports_sse() && localsettings.tokenstreammode!=0)
@@ -17902,6 +17919,7 @@ Current version indicated by LITEVER below.
1790217919
1790317920 last_request_str = JSON.stringify(cohere_payload);
1790417921 last_response_obj = null;
17922+ last_response_streamlog = "";
1790517923 let cohere_headers = {
1790617924 'Content-Type': 'application/json',
1790717925 'Authorization': 'Bearer ' + custom_cohere_key
@@ -17977,6 +17995,7 @@ Current version indicated by LITEVER below.
1797717995
1797817996 last_request_str = JSON.stringify(submit_payload);
1797917997 last_response_obj = null;
17998+ last_response_streamlog = "";
1798017999
1798118000 fetch(horde_submit_endpoint, {
1798218001 method: 'POST', // or 'PUT'
0 commit comments