Skip to content

Commit

Permalink
fix for query param
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed Dec 21, 2024
1 parent 4c56b7c commit fd5100c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions gpttype_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3158,6 +3158,10 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
}
else
{
if(debugmode==1)
{
printf("\nCreating clip image embed...");
}
llava_images[i].clp_image_tokens = 0;
if (!llava_image_embed_make_with_clip_img(clp_ctx, kcpp_data->n_threads, clp_img_data, &llava_images[i].clp_img_embd, &llava_images[i].clp_image_tokens)) {
printf("\nError: Clip image %d failed to create embd!",i);
Expand Down
7 changes: 5 additions & 2 deletions klite.embd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Current version indicated by LITEVER below.
-->

<script>
const LITEVER = 194;
const LITEVER = 195;
const urlParams = new URLSearchParams(window.location.search);
var localflag = true;
const STORAGE_PREFIX = (localflag?"e_":"")+"kaihordewebui_";
Expand Down Expand Up @@ -9148,6 +9148,10 @@ pre code,td,th{padding:0}pre code,table{background-color:transparent}.table,inpu
desiredkoboldendpoint = (is_local?"http://":"https://") + desiredkoboldendpoint;
}

//we shall predictively set the url first, which can be overwritten
custom_kobold_endpoint = desiredkoboldendpoint;
custom_kobold_key = desiredkoboldkey;

let urls1 = [
apply_proxy_url(desiredkoboldendpoint + kobold_custom_mdl_endpoint),
];
Expand All @@ -9174,7 +9178,6 @@ pre code,td,th{padding:0}pre code,table{background-color:transparent}.table,inpu
custom_kobold_endpoint = "";
render_gametext();
} else {

//good to go
custom_kobold_endpoint = desiredkoboldendpoint;
custom_kobold_key = desiredkoboldkey;
Expand Down

0 comments on commit fd5100c

Please sign in to comment.