zed icon indicating copy to clipboard operation
zed copied to clipboard

need a reverse proxy service for chatgpt/openai

Open xinx1n opened this issue 1 year ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the feature

oepnai's reverse proxy service is very common, I tried adding the following configuration, but it didn't work

"assistant": {
        "openai_api_url": "https://api.somereverseproxy.com/v1/chat/completions"
},

If this works, both the reverse proxy service and the offline model can be used

If applicable, add mockups / screenshots to help present your vision of the feature

No response

xinx1n avatar Feb 29 '24 02:02 xinx1n

Somewhat related:

  • #5032
  • #4424

Moshyfawn avatar Feb 29 '24 03:02 Moshyfawn

#8525 This adds support for Azure OpenAI. This should also work for reverse proxy / Local LLMs (Didn't test it though).

unknownjedi avatar Feb 29 '24 07:02 unknownjedi

oepnai's reverse proxy service is very common, I tried adding the following configuration, but it didn't work

"assistant": {
        "openai_api_url": "https://api.somereverseproxy.com/v1/chat/completions"
},

The openai_api_url setting should only contain the base URL.

What happens if you do it like this?

"assistant": {
  "openai_api_url": "https://api.somereverseproxy.com/v1"
},

maxdeviant avatar Mar 01 '24 03:03 maxdeviant

oepnai's reverse proxy service is very common, I tried adding the following configuration, but it didn't work

"assistant": {
        "openai_api_url": "https://api.somereverseproxy.com/v1/chat/completions"
},

The openai_api_url setting should only contain the base URL.

What happens if you do it like this?

"assistant": {
  "openai_api_url": "https://api.somereverseproxy.com/v1"
},

Sorry, I can't test this problem now, because I found that my key (sk-xxxx) was not saved correctly to keychain access.app, only "sk-" was saved, even if I save it manually, I couldn't save it. May be caused by -.

xinx1n avatar Mar 01 '24 04:03 xinx1n