microsoft / microsoft/semantic-kernel-java

Bug: Issue with API Version Compatibility When Using AzureOpenAI

Ouverte
#244 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

bug triage
Langage dominant
Java
Étoiles
276
Forks
56
Merge moyen
17 h 45 min
PR mergées (30 j)
4

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par l’exemple de schéma de réponse dans semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples/chatcompletion/responseschema/Example_ChatWithResponseFormat.java et suivez la configuration du client AzureOpenAI. Reproduisez l’erreur de version d’API, puis vérifiez que le client peut accepter la version d’API requise et que l’exemple s’exécute avec json_schema.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
azure, java
Domaine
api
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.