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] Required field 'function_call_id' missing from chatCompletionRequestMessageFunction #31858

Open
JSalter2013 opened this issue Dec 12, 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

@JSalter2013
Copy link

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2024-10-21/inference.json

API Spec version

2024-10-21

Describe the bug

Spec does not validate due to 'required' field missing for 'function_call_id' in chatCompletionRequestMessageFunction.

Expected behavior

Spec should validate.

Actual behavior

openapi-spec-validator --schema=3.0 inference.json throws the following error:

Validation Error: Required list has not defined properties: ['function_call_id']

Reproduction Steps

Save https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2024-10-21/inference.json to a file called inference.json

pip install openapi-spec-validator
openapi-spec-validator --schema=3.0 inference.json

Environment

Python 3.12.8 virtual environment.

@JSalter2013 JSalter2013 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 12, 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 Dec 12, 2024
@v-jiaodi
Copy link
Member

@yetamsft Please help take a look, thanks.

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