Hansimov commited on
Commit
76d4a74
1 Parent(s): e950717

:zap: [Enhance] Prettify logging of basic info

Browse files
components/buttons_binder.js CHANGED
@@ -132,7 +132,7 @@ class OpenaiEndpointButtonBinder {
132
  if (stored_openai_endpoint) {
133
  $("#openai-endpoint").val(stored_openai_endpoint);
134
  setup_available_models_on_select();
135
- console.log(`GET OpenAI Endpoint: ${stored_openai_endpoint}`);
136
  }
137
  button.click(() => {
138
  console.log($("#openai-endpoint").val());
@@ -153,7 +153,7 @@ class OpenaiAPIKeyButtonBinder {
153
  const stored_openai_api_key = localStorage.getItem("openai_api_key");
154
  if (stored_openai_api_key) {
155
  $("#openai-api-key").val(stored_openai_api_key);
156
- console.log(`GET OpenAI API Key: ${stored_openai_api_key}`);
157
  }
158
  button.click(() => {
159
  console.log($("#openai-api-key").val());
 
132
  if (stored_openai_endpoint) {
133
  $("#openai-endpoint").val(stored_openai_endpoint);
134
  setup_available_models_on_select();
135
+ console.log(`openai_endpoint: ${stored_openai_endpoint}`);
136
  }
137
  button.click(() => {
138
  console.log($("#openai-endpoint").val());
 
153
  const stored_openai_api_key = localStorage.getItem("openai_api_key");
154
  if (stored_openai_api_key) {
155
  $("#openai-api-key").val(stored_openai_api_key);
156
+ console.log(`openai_api_key: ${stored_openai_api_key}`);
157
  }
158
  button.click(() => {
159
  console.log($("#openai-api-key").val());
components/llm_models_loader.js CHANGED
@@ -24,7 +24,7 @@ export async function setup_available_models_on_select(default_option = null) {
24
  }
25
 
26
  select.val(default_model);
27
- console.log(`default_ model: ${select.val()}`);
28
  }
29
 
30
  export async function setup_temperature_on_select(default_option = null) {
@@ -41,5 +41,5 @@ export async function setup_temperature_on_select(default_option = null) {
41
  $(option).prop("selected", true);
42
  }
43
  }
44
- console.log(`Default temperature: ${select.val()}`);
45
  }
 
24
  }
25
 
26
  select.val(default_model);
27
+ console.log(`default_model: ${select.val()}`);
28
  }
29
 
30
  export async function setup_temperature_on_select(default_option = null) {
 
41
  $(option).prop("selected", true);
42
  }
43
  }
44
+ console.log(`default_temperature: ${select.val()}`);
45
  }