Connection
Base URL, credentials and a reachable server.
Serialize decimal strings into JSON without converting them through binary floating point. Round-trip trailing zeros and very large values, rejecting exponent notation and non-finite names under an explicit grammar.
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.
function encodeDecimal(value: string): string {
if (!/^[+-]?\d+(?:\.\d+)?$/.test(value)) {
throw new Error("decimal.grammar");
}
return JSON.stringify({ decimal: value });
}