Closed
Description
Describe the bug
I am using a third-party model platform as a substitute for OpenAI, and the interface is fully compatible. However, the configuration of the Endpoint is a bit confusing. When adding OpenAIChatCompletion, the Endpoint does not require the v1 suffix, but the Endpoint for new OpenAIClient needs to add the v1 suffix
new OpenAIClient(new ApiKeyCredential(apiKey), new OpenAIClientOptions
{
Endpoint = new Uri(endpoint + "/v1")
})
Expected behavior
I believe the two should be consistent
Screenshots
Platform
- Language: [C#]
- Source: [1.57.0]
Metadata
Metadata
Assignees
Type
Projects
Status
Sprint: Done