feat: Allow custom prompts
附议,这个对翻译很重要呀
https://github.com/funstory-ai/BabelDOC/pull/344 added a --custom-system-prompt "/no_think You are a professional, authentic machine translation engine." which is mainly used to add the /no_think instruction of Qwen 3 in the prompt.
Technically, this thing will only replace the first sentence of the prompt generated by BabelDOC, nothing more.
QWEN3 使用--custom-system-prompt "/no_think" 还是不工作。
\uv\tools\babeldoc\Lib\site-packages\op enai_base_client.py", line 1034, in request raise self._make_status_error_from_response(err.response) from None openai.BadRequestError: Error code: 400 - {'error': {'code': 'invalid_parameter_error', 'message': 'parameter.enable_thinking must be set to false for non-streaming calls', 'param': None, 'type': 'invalid_request_error'}, 'request_id': 'ea479305-a4c4-463a-99b0-20bb84742998'}
QWEN3 使用--custom-system-prompt "/no_think" 还是不工作。
\uv\tools\babeldoc\Lib\site-packages\op enai_base_client.py", line 1034, in request raise self._make_status_error_from_response(err.response) from None openai.BadRequestError: Error code: 400 - {'error': {'code': 'invalid_parameter_error', 'message': 'parameter.enable_thinking must be set to false for non-streaming calls', 'param': None, 'type': 'invalid_request_error'}, 'request_id': 'ea479305-a4c4-463a-99b0-20bb84742998'}
This CLI is mainly for debugging purposes. Although end users can use this CLI to translate files, we do not provide any technical support for this purpose.