openai-translator icon indicating copy to clipboard operation
openai-translator copied to clipboard

希望填加自定义完整API URL的功能

Open Jer-y opened this issue 3 years ago • 0 comments

Search before asking

  • [X] I searched in the issues and found nothing similar.

Motivation

  • 目前所有的请求都会被translate.ts添加/v1/chat/completions.
  • 这让使用者没有办法用其他API URL(比如Azure Open AI)

Solution

  1. 把/v1/chat/completions直接放在utils.ts的defaultAPIURL
  2. 将translate.ts中的/v1/chat/completions移除

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

  • [ ] I'm willing to submit a PR!

Jer-y avatar Mar 13 '23 07:03 Jer-y