Skip to content

.Net: Bug: OpenAIFunctionParameter.ParameterType is null for integer and number types #8087

Closed

Description

Describe the bug
OpenAIFunctionParameter.ParameterType is null for integer and number types.
image

To Reproduce
Sample parameter json:

"startAt": {
  "description": "The index of the first item to return in a page of results (page offset).",
  "type": "integer",
  "format": "int32",
  "default": 0
}

Here's the full swagger file (check searchForIssuesUsingJql API)
openapi.json

Platform

  • OS: [e.g. Windows, Mac]
  • IDE: [e.g. Visual Studio, VS Code]
  • Language: [e.g. C#, Python]
  • Source: Nuget version 1.16.1

Additional context
We parse the swagger file using:
await this.kernel.ImportPluginFromOpenApiAsync(cacheKey, pluginStream, parameters, cancellationToken)

Note: We are not seeing this issue for string type parameters!

Activity

  1. changed the title [-]Bug: OpenAIFunctionParameter.ParameterType is null for integer and number types[/-] [+].Net: Bug: OpenAIFunctionParameter.ParameterType is null for integer and number types[/+] on Aug 13, 2024
  2. changed the title [-].Net: Bug: OpenAIFunctionParameter.ParameterType is null for integer and number types[/-] [+]Python: Bug: OpenAIFunctionParameter.ParameterType is null for integer and number types[/+] on Aug 13, 2024
  3. changed the title [-]Python: Bug: OpenAIFunctionParameter.ParameterType is null for integer and number types[/-] [+].Net: Bug: OpenAIFunctionParameter.ParameterType is null for integer and number types[/+] on Aug 13, 2024
  4. SergeyMenshykh commented on Aug 13, 2024

    @SergeyMenshykh
    Contributor

    Hi Sunny Mitra (@sunnymitramsft), thanks for reporting the issue. We plan to fix it this week.

  5. moved this from Sprint: In Progress to Sprint: In Design in Semantic Kernelon Aug 13, 2024
  6. moved this from Sprint: In Design to Sprint: Done in Semantic Kernelon Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETIssue or Pull requests regarding .NET codebugSomething isn't workingpythonPull requests for the Python Semantic Kernel

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions