Connection
Base URL, credentials and a reachable server.
Use caret_range.py to check numeric caret admission, treating the interval rule separately from real compatibility.
Base URL, credentials and a reachable server.
A model available through the configured endpoint.
Context limits and tool support are determined by the model and server.
def caret_admits(base, candidate):
for version in (base, candidate):
if type(version) not in (list, tuple) or len(version) != 3 or any(type(x) is not int or x < 0 for x in version):
raise ValueError("version.triplet")
major, minor, patch = base
upper = (major+1, 0, 0) if major else ((0, minor+1, 0) if minor else (0, 0, patch+1))
return tuple(base) <= tuple(candidate) < upper