Connection
Base URL, credentials and a reachable server.
Test empty input, bad padding bits and embedded whitespace, rejecting alternate spellings instead of silently normalizing them.
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.
import base64
def canonical_decode(text):
if not isinstance(text, str): raise ValueError("text required")
decoded = base64.b64decode(text, validate=True)
if base64.b64encode(decoded).decode("ascii") != text:
raise ValueError("noncanonical Base64")
return decoded