ProviderResponse - Go SDK

ProviderResponse type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Details of a provider response for a generation attempt

Fields

FieldTypeRequiredDescriptionExample
ID*stringUpstream provider response identifierchatcmpl-abc123
EndpointID*stringInternal endpoint identifierep_abc123
ModelPermaslug*stringCanonical model slugopenai/gpt-4
ProviderName*components.ProviderResponseProviderNameName of the providerOpenAI
Status*float64✔️HTTP status code from the provider200
Latency*float64Response latency in milliseconds1200
IsByok*boolWhether the request used a bring-your-own-keyfalse