Skip to content

0.2.0

Choose a tag to compare

@satchmakua satchmakua released this 28 Nov 21:12
· 16 commits to main since this release
2903ced
  • httpx instead of requests. Every provider, Ollama included, sends through one shared
    httpx.Client. Runtime dependencies are now httpx, pyyaml and jsonschema.
  • gatecheck.set_client(client) routes every provider call through your own httpx
    client (a proxy, custom TLS, or a recording client such as kinescope.http_client()).
    set_client(None) restores the default. Recording a run with Kinescope needs kinescope
    0.0.3 or later: gatecheck runs tasks on a thread pool, and older Kinescope stores refuse
    writes from worker threads.
  • gatecheck.complete(model_id, system, user, **options), a public call to any
    registered provider that returns a Completion. Completion is exported from the
    package root.
  • Support for the current Claude models. Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5
    are priced (unlisted models were reported as $0), and temperature is no longer sent to
    the Claude models that reject it, which had failed every judge call to them with a 400.
  • Retry and backoff behave as before: timeouts, failed or dropped connections and the
    statuses 429, 500, 502, 503, 504 and 529 are retried; anything else fails at once.

Upgrading from 0.1

  • HTTP errors are httpx's (httpx.HTTPStatusError, httpx.TransportError), not
    requests exceptions. Both are subclasses of httpx.HTTPError.
  • Custom CA bundles: REQUESTS_CA_BUNDLE and CURL_CA_BUNDLE are no longer read. Set
    SSL_CERT_FILE or SSL_CERT_DIR, or pass your own client to set_client().
  • Proxies: HTTP_PROXY, HTTPS_PROXY, ALL_PROXY and NO_PROXY are read once, when
    the client is created. On Windows the system proxy is used but its bypass list is not,
    so set NO_PROXY=localhost,127.0.0.1 if a system proxy sits in front of a local Ollama.
  • Redirects are not followed. A 3xx from a provider endpoint raises.