yihong0618 / bilingual_book_maker

Make bilingual epub books Using AI translate
MIT License
6.92k stars 1k forks source link

Azure OpenAI’s content management policy #241

Open qingwenlyu opened 1 year ago

qingwenlyu commented 1 year ago

翻译的时候日志显示遇到问题

“To make the murder look like an accident, so as not to attract any attention. They almost succeeded. There were fifty-one traffic accidents that killed five people in the city that day. But a scout hidden within the ETO provided an intelligence report confirming that the ETO had orchestrated the attempt on your life. And what’s most frightening is this: The order came from Trisolaris itself, conveyed to Evans through the sophons. To this date, that is the only assassination they’ve ever ordered.” The response was filtered due to the prompt triggering Azure OpenAI’s content management policy. Please modify your prompt and retry. To learn more about our content filtering policies please read our documentation:

微软的接口似乎会审查内容,是否可以对于被审查的内容翻译的时候采取备选方案,比如优先有微软的,如果失败改用原生 open ai 或其他免费接口。 谢谢

largomst commented 1 year ago

我也遇到类似的问题,例如 fluent python 中的一段

Here’s the plan: when someone uses a feature you don’t understand, simply shoot them. This is easier than learning something new, and before too long the only 
living coders will be writing in an easily understood, tiny subset of Python 0.9.6 <wink>.

对于无法通过审查的内容,是否可以直接跳过?

yihong0618 commented 1 year ago

可以,我们研究一下。

delicacyyy commented 1 year ago

或者告知一下跳过的代码在哪 我自己先改改

delicacyyy commented 1 year ago

image 是不是改这里

delicacyyy commented 1 year ago

image 改好了

delicacyyy commented 1 year ago

ctrl+c 有的时候没反应 是不是程序单线程连azure 比较卡 没功夫响应