mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add reasoning_effort to Custom.
Update inline image quality style
This commit is contained in:
@@ -1957,14 +1957,16 @@
|
|||||||
<span data-i18n="image_inlining_hint_3">menu to attach an image file to the chat.</span>
|
<span data-i18n="image_inlining_hint_3">menu to attach an image file to the chat.</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom">
|
<div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom">
|
||||||
<label for="openai_inline_image_quality" data-i18n="Inline Image Quality">
|
<div class="flex-container oneline-dropdown">
|
||||||
Inline Image Quality
|
<label for="openai_inline_image_quality" data-i18n="Inline Image Quality">
|
||||||
</label>
|
Inline Image Quality
|
||||||
<select id="openai_inline_image_quality">
|
</label>
|
||||||
<option data-i18n="openai_inline_image_quality_auto" value="auto">Auto</option>
|
<select id="openai_inline_image_quality">
|
||||||
<option data-i18n="openai_inline_image_quality_low" value="low">Low</option>
|
<option data-i18n="openai_inline_image_quality_auto" value="auto">Auto</option>
|
||||||
<option data-i18n="openai_inline_image_quality_high" value="high">High</option>
|
<option data-i18n="openai_inline_image_quality_low" value="low">Low</option>
|
||||||
</select>
|
<option data-i18n="openai_inline_image_quality_high" value="high">High</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="range-block" data-source="makersuite">
|
<div class="range-block" data-source="makersuite">
|
||||||
@@ -1995,7 +1997,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai">
|
<div class="flex-container flexFlowColumn wide100p textAlignCenter marginTop10" data-source="openai,custom">
|
||||||
<div class="flex-container oneline-dropdown" title="Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.">
|
<div class="flex-container oneline-dropdown" title="Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.">
|
||||||
<label for="openai_reasoning_effort" data-i18n="Reasoning Effort">
|
<label for="openai_reasoning_effort" data-i18n="Reasoning Effort">
|
||||||
Reasoning Effort
|
Reasoning Effort
|
||||||
|
@@ -1027,6 +1027,11 @@ router.post('/generate', jsonParser, function (request, response) {
|
|||||||
bodyParams.logprobs = true;
|
bodyParams.logprobs = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A few of OpenAIs reasoning models support reasoning effort
|
||||||
|
if (['o1', 'o3-mini', 'o3-mini-2025-01-31'].includes(request.body.model)) {
|
||||||
|
bodyParams['reasoning_effort'] = request.body.reasoning_effort;
|
||||||
|
}
|
||||||
|
|
||||||
mergeObjectWithYaml(bodyParams, request.body.custom_include_body);
|
mergeObjectWithYaml(bodyParams, request.body.custom_include_body);
|
||||||
mergeObjectWithYaml(headers, request.body.custom_include_headers);
|
mergeObjectWithYaml(headers, request.body.custom_include_headers);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user