Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Undefined property "function_call_id" in chatCompletionRequestMessageFunction schema #29672

Open
bc-yuya-kumagai opened this issue Jul 2, 2024 · 1 comment
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. data-plane question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@bc-yuya-kumagai
Copy link

API Spec link

API Spec version

2024-02-01

Describe the bug

The OpenAPI Spec contains an inconsistency in the chatCompletionRequestMessageFunction schema. The schema includes the following constraints:

required:
  - function_call_id
  - content

However, the property "function_call_id" does not appear anywhere in the entire specification. When using libraries like prance to obtain the specification object, an error like the following occurs:

​```
ExtraParametersError: Required list has not defined properties: ['function_call_id']

The above exception was the direct cause of the following exception:
​```

This inconsistency may hinder the creation of data using the OpenAPI Spec or cause issues with POST data validation.

Expected behavior

Can retrieve specifications without errors

Actual behavior

The following error occurs when trying to retrieve the specifications.

ExtraParametersError: Required list has not defined properties: ['function_call_id']
The above exception was the direct cause of the following exception:

Reproduction Steps

To reproduce the error:
Use the following python code snippet to parse the OpenAPI Spec:

from prance import ResolvingParser

  # Parse the OpenAPI definition and resolve $refs
  parser = ResolvingParser('aoai_spec.json')
  
  # Get the resolved definition
  resolved = parser.specification

Environment

OS: Windows 10
language: Python

@bc-yuya-kumagai bc-yuya-kumagai added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 2, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Jul 2, 2024
@v-jiaodi
Copy link
Member

v-jiaodi commented Jul 3, 2024

@YunsongB Please help take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. data-plane question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants