Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuperJJ007/CSSwitch
/ _ends_with_version_segment
Function
_ends_with_version_segment
proxy/csswitch_proxy.py:333–334 ·
view source on GitHub ↗
(base)
Source
from the content-addressed store, hash-verified
331
332
333
def
_ends_with_version_segment(base):
334
return
bool(re.search(r
"/v\d+(?:\.\d+)?$"
, base))
335
336
337
def
openai_endpoint(base, suffix):
Callers
1
openai_endpoint
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected