mirror of
https://github.com/vegu-ai/talemate.git
synced 2025-12-25 07:59:36 +01:00
fix lmstudio
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user