OpenAIResource.WithEndpoint
Method
type OpenAIResource interface { // ... omitted for brevity WithEndpoint(endpoint string) OpenAIResource}Signature
method
WithEndpoint builderSets a custom OpenAI-compatible service endpoint URI on the parent resource.
WithEndpoint(endpoint string) OpenAIResourceParameters
endpointstringThe endpoint URI, e.g., https://mygateway.example.com/v1.Returns
OpenAIResource Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: