OpenAIResource.withEndpoint
Method
interface OpenAIResource { // ... 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 Defined on
This method is defined on the following type: