ekkinox / yai

Your AI powered terminal assistant.
https://ekkinox.github.io/yai
MIT License
682 stars 32 forks source link

how to enable openai proxy #91

Open wangzhankun opened 11 months ago

wangzhankun commented 11 months ago

I notice that there is openai_proxy option in yai.json. But it does nothing when I have set it. It still uses the default openai url:

image
wangzhankun commented 11 months ago

The solution is:

image
  1. assign the url to clientConfig.BaseURL
  2. must add /v1 postfix. I don't know why, but the url doesn't consist of v1 when using proxy.
ibnbd commented 10 months ago

Having the same issue

JessonChan commented 7 months ago

114 fixed this issue