Phaseo when your Rust service needs a synchronous Phaseo Gateway client.
Create a client
Load the API key and optional base URL from the environment:Phaseo redacts the API key and custom header values from its Debug output.
Send a Responses request
response.body.
Send a Chat Completions request
Call another JSON endpoint
Usepost(...) for a Phaseo endpoint that does not yet have a high-level helper:
Add a request header
Handle Gateway errors
PhaseoError contains an HTTP status and parsed JSON body when the Gateway returned an error. Transport and configuration failures have no HTTP status.