chore: correct mistral AI request transformation template
This commit is contained in:
parent
f0bd2393fc
commit
fd5c6fcfd3
@ -10,7 +10,7 @@
|
||||
"transform_req": {
|
||||
"chat_completions": {
|
||||
"url": "https://api.mistral.ai/v1/chat/completions",
|
||||
"template": "{{tojson(input_request)}}"
|
||||
"template": "{ {% set first = true %} {% for key, value in input_request %} {% if key == \"messages\" or key == \"model\" or key == \"temperature\" or key == \"store\" or key == \"max_tokens\" or key == \"stream\" or key == \"presence_penalty\" or key == \"metadata\" or key == \"frequency_penalty\" or key == \"tools\" or key == \"tool_choice\" or key == \"logprobs\" or key == \"top_logprobs\" or key == \"logit_bias\" or key == \"n\" or key == \"modalities\" or key == \"prediction\" or key == \"response_format\" or key == \"service_tier\" or key == \"seed\" or key == \"stop\" or key == \"stream_options\" or key == \"top_p\" or key == \"parallel_tool_calls\" or key == \"user\" %} {% if not first %},{% endif %} \"{{ key }}\": {{ tojson(value) }} {% set first = false %} {% endif %} {% endfor %} }"
|
||||
}
|
||||
},
|
||||
"transform_resp": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user