mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-04 19:11:14 +03:00
Strip v1 if included in url
This commit is contained in:
parent
44f4c6b9e3
commit
ba5e4119cb
@ -67,6 +67,8 @@ class LlamaCppClient(GenAIClient):
|
|||||||
|
|
||||||
if base_url is None:
|
if base_url is None:
|
||||||
return None
|
return None
|
||||||
|
else:
|
||||||
|
base_url = base_url.replace("/v1", "") # Strip /v1 if included in base_url
|
||||||
|
|
||||||
configured_model = self.genai_config.model
|
configured_model = self.genai_config.model
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user