fix lmstudio

This commit is contained in:
vegu-ai-tools
2025-08-20 14:43:13 +03:00
parent ec512512e6
commit daadf6f1d0

View File

@@ -32,6 +32,12 @@ class LMStudioClient(ClientBase):
talemate_parameter="stopping_strings", client_parameter="stop"
),
]
@property
def api_key(self):
# LMStudio doesn't currently support API keys so we'll just use a dummy key
# since the openai client requires it.
return "sk-1234"
def make_client(self):
return AsyncOpenAI(base_url=self.api_url + "/v1", api_key=self.api_key)