Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenRouterTeam/python-sdk
/ remove_suffix
Function
remove_suffix
src/openrouter/utils/url.py:152–155 ·
view source on GitHub ↗
(input_string, suffix)
Source
from the content-addressed store, hash-verified
150
151
152
def
remove_suffix(input_string, suffix):
153
if
suffix and input_string.endswith(suffix):
154
return
input_string[: -len(suffix)]
155
return
input_string
Callers
2
get_server_details
Method · 0.85
generate_url
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected