添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
谦逊的水煮肉  ·  JTextArea (Java 2 ...·  1 月前    · 
安静的山寨机  ·  Article - ...·  5 月前    · 
粗眉毛的镜子  ·  创新认定 | ...·  6 月前    · 

Trying the Dall-E api, give the Refused to set unsafe header “User-Agent” Error.
Why would Open AI set this so strict, to only be possible to make requests from a server side application ? Defi apps work fine with a bearer authentication also, from a client-side configuration.

The other API’s to make the OpenAI completions (with other libraries) work fine though.
Anyone knows a workaround ? Or will the Dall-E API be integrated into the other libraries also ?

u can make a little bugfix, go to the line where the error drops and replace:

request.setRequestHeader(key, val);

if (key != "User-Agent") {
    request.setRequestHeader(key, val);