Skip to content

Commit ce2d862

Browse files
Delete conditional to add lm studio URL
1 parent 21e8edb commit ce2d862

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/codegate/providers/lm_studio/provider.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ async def create_completion(
5151
body = await request.body()
5252
data = json.loads(body)
5353

54-
# if model starts with lm_studio, propagate it
55-
if data.get("model", "").startswith("lm_studio"):
56-
data["base_url"] = self.lm_studio_url + "/v1/"
54+
data["base_url"] = self.lm_studio_url + "/v1/"
5755

5856
return await self.process_request(data, api_key, request)

0 commit comments

Comments
 (0)