namankhurpia / Easy-open-ai

This repository contains the community-maintained library for OpenAI's API in java, the easiest way to use GPT 3/4 in your applications.
http://namank.xyz
MIT License
15 stars 3 forks source link

Invalid body is created for ChatCompletionRequest #38

Closed Dimmen closed 5 days ago

Dimmen commented 4 months ago

Describe the bug The wrong json format is used for the fields maxTokens and responseFormat.

To Reproduce Steps to reproduce the behavior: Unsuccessful response with HTTP status code 400 and error body: { "error": { "message": "Unrecognized request arguments supplied: maxTokens, responseFormat", "type": "invalid_request_error", "param": null, "code": null } }

Java Version (please complete the following information):

namankhurpia commented 3 months ago

Hi @Dimmen

can you please provide what you are trying to send for maxToken and responseFormat.