diff --git a/src/khoj/interface/web/config.html b/src/khoj/interface/web/config.html index abf438db..4d85e254 100644 --- a/src/khoj/interface/web/config.html +++ b/src/khoj/interface/web/config.html @@ -109,7 +109,7 @@
- Chat + Language

Language

diff --git a/src/khoj/routers/api.py b/src/khoj/routers/api.py index 0f693b24..c16a81e5 100644 --- a/src/khoj/routers/api.py +++ b/src/khoj/routers/api.py @@ -343,16 +343,16 @@ async def update_search_model( new_config = await adapters.aset_user_search_model(user, int(id)) - update_telemetry_state( - request=request, - telemetry_type="api", - api="set_search_model", - client=client, - metadata={"search_model": new_config.setting.name}, - ) - if new_config is None: return {"status": "error", "message": "Model not found"} + else: + update_telemetry_state( + request=request, + telemetry_type="api", + api="set_search_model", + client=client, + metadata={"search_model": new_config.setting.name}, + ) return {"status": "ok"}