midscene icon indicating copy to clipboard operation
midscene copied to clipboard

[Feature]: Response format for Open Source Model

Open kmati-dev opened this issue 1 year ago • 1 comments

What problem does this feature solve?

Due to the Response Format or JSON Output Not Being Limited for Proprietary Models This feature is managed by the inference provider.

This would be great to support enabling or disabling the response format.

Open-Source Libraries or Serving Frameworks

JSON Output can help ensure consistency in the model's output. At least, the response will always return in the correct format. However, the correctness of the position and action still depends on the model.

Moreover, we could fine-tune the enum of the response format to help the model produce more accurate choices or values.

What does the proposed API look like?

It should be similar with other config.

MIDSCENE_USE_RESPONSE_FORMAT=1

kmati-dev avatar Jul 13 '25 14:07 kmati-dev

Midscene has internally encapsulated input and output, so users do not need to worry about the output format.

quanru avatar Dec 02 '25 06:12 quanru