Skip to content

feat: Add JSON response mode#17

Merged
esafak merged 1 commit into
mainfrom
json
Jul 26, 2025
Merged

feat: Add JSON response mode#17
esafak merged 1 commit into
mainfrom
json

Conversation

@esafak

@esafak esafak commented Jul 26, 2025

Copy link
Copy Markdown
Owner
  • Implements a jsonMode parameter to request JSON formatted output.
  • Updates chat methods in all providers to accept and handle the jsonMode flag.
  • Modifies API requests for OpenAI and Gemini to include JSON response format parameters when jsonMode is true.
  • Adds a json flag to the CLI arguments for enabling JSON output.
  • Updates tests to cover the new jsonMode functionality.

* Implements a `jsonMode` parameter to request JSON formatted output.
* Updates `chat` methods in all providers to accept and handle the `jsonMode` flag.
* Modifies API requests for OpenAI and Gemini to include JSON response format parameters when `jsonMode` is true.
* Adds a `json` flag to the CLI arguments for enabling JSON output.
* Updates tests to cover the new `jsonMode` functionality.
@esafak esafak merged commit 777ef25 into main Jul 26, 2025
1 check passed
@esafak esafak deleted the json branch July 26, 2025 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant