Bug: Issue with API Version Compatibility When Using AzureOpenAI
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu với ví dụ về response-schema tại semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/chatcompletion/responseschema/Example_ChatWithResponseFormat.java và theo dõi cách AzureOpenAI client được cấu hình. Tái hiện lỗi phiên bản API, sau đó xác minh rằng client có thể chấp nhận phiên bản API bắt buộc và ví dụ chạy được với json_schema.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
I am currently working with the Azure GPT-35-Turbo and encountered an issue while trying to implement an example from the Microsoft Semantic Kernel Java SDK. Specifically, I was following the example provided here
To Reproduce
Upon execution, I received the following error messages indicating a problem related to the API version compatibility:
14:56:37 WARN c.m.s.s.KernelFunctionFromPrompt - Something went wrong while rendering the semantic function or while executing the text completion. Function: null.genapi. Error: Status code 400, "response_format value as json_schema is enabled only for api versions 2024-08-01-preview and later"
Exception in thread "main" com.azure.core.exception.HttpResponseException: Status code 400, "response_format value as json_schema is enabled only for api versions 2024-08-01-preview and later"
It appears that the response_format value json_schema is only enabled for API versions "2024-08-01-preview" and later. The error logs suggest that the current API version I am using does not support this feature.
Expected behavior
An additional parameter to specify the API version to use by the client.
- Ngôn ngữ chính
- Java
- Star
- 276
- Fork
- 56
- Merge trung bình
- 17 giờ 45 phút
- Pull request đã merge (30 ngày)
- 4
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/semantic-kernel-java
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
microsoft/semantic-kernel-java#334 · 1 bình luận ·
-
Feature Parity Inquiry: Multi-Agent Orchestration and Roadmap Alignment with Python/.NET Versions Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
microsoft/semantic-kernel-java#331 · 7 bình luận ·
-
bug triage
microsoft/semantic-kernel-java#330 · 3 bình luận · 1 người được giao ·
-
agents without chatcompletion ? Đang mởbug triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
microsoft/semantic-kernel-java#328 · 1 bình luận ·
-
Java: Remove SK planners Đang mở
microsoft/semantic-kernel-java#323 · 1 reaction · 2 người được giao ·
Tất cả issue của microsoft/semantic-kernel-java
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Two open-case totals on one screen: the Programs tile says 15,858 and the nav badge says 15,868 Đang mởbug frontend maui-pilot
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
objectionary/eo-graphs#74 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100