Skip to content

.Net: Bug: Endpoint maintenance is chaotic #12581

Closed
@MayueCif

Description

@MayueCif

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

Image

Platform

  • Language: [C#]
  • Source: [1.57.0]

Metadata

Metadata

Assignees

Labels

.NETIssue or Pull requests regarding .NET code

Type

No type

Projects

Status

Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions