2 Commits

Author SHA1 Message Date
Joakim Persson d843a2b74c Lagt till logmeddelande 2024-07-29 13:15:54 +02:00
Joakim Persson ab94c06e75 Skickar med use_model när index.html rendreras 2024-07-29 13:15:02 +02:00
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ def index():
logger.debug("Client HTML (first few characters): %s", client_html[:50]) # Print to see if it's loading logger.debug("Client HTML (first few characters): %s", client_html[:50]) # Print to see if it's loading
# logger.debug("Client HTML (all characters): %s", client_html) # Print to see if it's loading # logger.debug("Client HTML (all characters): %s", client_html) # Print to see if it's loading
return render_template('index.html', api_endpoint=api_endpoint, client_content=client_html) return render_template('index.html', api_endpoint=api_endpoint, use_model = use_model, client_content=client_html)
@app.route('/<path:filename>') @app.route('/<path:filename>')
def serve_static(filename): def serve_static(filename):
+1
View File
@@ -72,6 +72,7 @@ def configure():
if isinstance(updated_config['ollama'].get('model'), str): # Look for 'model' key if isinstance(updated_config['ollama'].get('model'), str): # Look for 'model' key
model_to_use = updated_config['ollama'].get('model') model_to_use = updated_config['ollama'].get('model')
global_state.set_llm(model_to_use) global_state.set_llm(model_to_use)
logger.debug("configure(): LLM is set to: %s",global_state.get_llm())
return updated_config return updated_config