Skip to content

Invalid schema for function 'get_current_weather': None is not of type 'object' #432

@mehulgohil

Description

@mehulgohil

Describe the bug
When calling CreateChatCompletion with function call getting error 400.
ChatCompletion error: error, status code: 400, message: Invalid schema for function 'get_current_weather': None is not of type 'object'

Expected behavior
Expected behaviorwas to return the function call definition

Screenshots/Logs
image

Environment (please complete the following information):

  • go-openai version: [e.g. v1.12.0]
  • Go version: [e.g. 1.18]
  • OpenAI API version: [e.g. v1]
  • OS: [e.g. Ubuntu 20.04]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions