go-openai icon indicating copy to clipboard operation
go-openai copied to clipboard

error, status code: 400, message: '' is not one of ['system', 'assistant', 'user', 'function'] - 'messages.0.role'

Open miaojinsing opened this issue 11 months ago • 0 comments

Your issue may already be reported! Please search on the issue tracker before creating one.

Describe the bug A clear and concise description of what the bug is. If it's an API-related bug, please provide relevant endpoint(s).

To Reproduce Steps to reproduce the behavior, including any relevant code snippets.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots/Logs If applicable, add screenshots to help explain your problem. For non-graphical issues, please provide any relevant logs or stack traces.

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]

Additional context Add any other context about the problem here.

miaojinsing avatar Mar 07 '24 08:03 miaojinsing