-
Notifications
You must be signed in to change notification settings - Fork 354
Closed
Labels
bugCategory: Something isn't working and appears to be a defect in the client library.Category: Something isn't working and appears to be a defect in the client library.
Description
Confirm this is not an issue with the underlying OpenAI API
- This is an issue with the Python library
Confirm this is not an issue with Azure OpenAI
- This is not an issue with Azure OpenAI
Describe the bug
After the #186 merged (2.0.0-beta.10), special custom endpoints are no longer available. All clients have a '/v1' path prefix. This is different from the behavior of the Python version.
Such as https://open.bigmodel.cn/api/paas/v4 and other special custom endpoints.
To Reproduce
- Execute chat completions by a special endpoint.
var client = new OpenAIClient("api-key", new()
{
Endpoint = new Uri("https://open.bigmodel.cn/api/paas/v4")
});
var chatClient = client.GetChatClient("glm-4");
ChatCompletion completion = client.CompleteChat("Say 'this is a test.'");
Got 404 exception. The chat completions link is build as "https://open.bigmodel.cn/api/paas/v4/v1/chat/completions". It should be "https://open.bigmodel.cn/api/paas/v4/chat/completions".
Code snippets
No response
OS
windows
.NET version
8.0
Library version
2.0.0-beta.10
Metadata
Metadata
Assignees
Labels
bugCategory: Something isn't working and appears to be a defect in the client library.Category: Something isn't working and appears to be a defect in the client library.