Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Bug: Issue with API Version Compatibility When Using AzureOpenAI

Aperta
#244 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
azure, java
Ambito
api

Direzione di ricerca

Inizia dall'esempio dello schema della risposta in semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/chatcompletion/responseschema/Example_ChatWithResponseFormat.java e segui come viene configurato il client AzureOpenAI. Riproduci l'errore di versione dell'API, quindi verifica che il client possa accettare la versione API richiesta e che l'esempio venga eseguito con json_schema.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug triage

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.

Lingua principale
Java
Stelle
276
Fork
56
Merge medio
17h 45m
PR unite (30g)
4

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/semantic-kernel-java

Tutte le issue di microsoft/semantic-kernel-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.