ekkinox / yai

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

how to enable openai proxy #91

Open wangzhankun opened 8 months ago

wangzhankun commented 8 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 8 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 7 months ago

Having the same issue

JessonChan commented 4 months ago

114 fixed this issue