Browse Source

Remove forced lowercase on embeddings endpoint

pull/1375/head
Ridan Vandenbergh 1 year ago
parent
commit
2cd3980199
  1. 2
      server.py

2
server.py

@ -127,7 +127,7 @@ class PromptServer():
@routes.get("/embeddings") @routes.get("/embeddings")
def get_embeddings(self): def get_embeddings(self):
embeddings = folder_paths.get_filename_list("embeddings") embeddings = folder_paths.get_filename_list("embeddings")
return web.json_response(list(map(lambda a: os.path.splitext(a)[0].lower(), embeddings))) return web.json_response(list(map(lambda a: os.path.splitext(a)[0], embeddings)))
@routes.get("/extensions") @routes.get("/extensions")
async def get_extensions(request): async def get_extensions(request):

Loading…
Cancel
Save