Skip to content

Commit 6e4e25c

Browse files
authored
hotfix: proxy server using config names instead of ids (#210)
* fix: proxy server using config names instead of ids * chore: updated poetry.lock on sdk and tracker
1 parent a6bc879 commit 6e4e25c

File tree

3 files changed

+395
-406
lines changed

3 files changed

+395
-406
lines changed

libs/llmstudio/poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/proxy/llmstudio_proxy/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def get_models(provider: Optional[str] = None):
7272
def create_chat_handler(provider_config):
7373
async def chat_handler(request: Request):
7474
"""Endpoint for chat functionality."""
75-
provider_class = provider_registry.get(f"{provider_config.name}".lower())
75+
provider_class = provider_registry.get(f"{provider_config.id}".lower())
7676
provider_instance = provider_class(provider_config)
7777
request_dict = await request.json()
7878

0 commit comments

Comments
 (0)