Docs, trademarks, and system info output

This commit is contained in:
James Ketr 2025-04-01 14:00:20 -07:00
parent 973b442642
commit b1d6508a49

View File

@ -104,11 +104,12 @@ def get_cpu_info():
except Exception as e:
return f"Error retrieving CPU info: {e}"
def system_info():
def system_info(model):
return {
"Installed RAM": get_installed_ram(),
"Graphics Card": get_graphics_cards(),
"CPU": get_cpu_info()
"CPU": get_cpu_info(),
"LLM Model": model
}
# %%
@ -471,7 +472,7 @@ class WebServer:
@self.app.get('/api/system-info/{context_id}')
async def get_system_info(context_id: str):
return JSONResponse(system_info())
return JSONResponse(system_info(self.model))
@self.app.post('/api/chat/{context_id}')
async def chat_endpoint(context_id: str, request: Request):