Originally created by @jmstacey on GitHub (Apr 28, 2024).
Bug Report
Description
Bug Summary:
Custom OpenAI API Endpoints don't seem to work, such as api.together.xyz, and api.replicate.com
Steps to Reproduce:
Settings, Connections, OpenAPI
Add an endpoint using together or replicate API base and key
Expected Behavior:
Available models load and become available to interact with.
Actual Behavior:
No models shown. No useful logs in container console that I can see. ENV contains GLOBAL_LOG_LEVEL=DEBUG, and the expected OPENAI_API_BASE_URLS and OPENAI_API_KEYS.
Environment
Open WebUI Version: v0.1.122
Reproduction Details
Confirmation:
I have read and followed all the instructions provided in the README.md.
I am on the latest version of both Open WebUI and Ollama.
Same API Base URLs and keys work in another chat app.
Originally created by @jmstacey on GitHub (Apr 28, 2024).
# Bug Report
## Description
**Bug Summary:**
Custom OpenAI API Endpoints don't seem to work, such as api.together.xyz, and api.replicate.com
**Steps to Reproduce:**
1. Settings, Connections, OpenAPI
2. Add an endpoint using together or replicate API base and key
**Expected Behavior:**
Available models load and become available to interact with.
**Actual Behavior:**
No models shown. No useful logs in container console that I can see. ENV contains GLOBAL_LOG_LEVEL=DEBUG, and the expected OPENAI_API_BASE_URLS and OPENAI_API_KEYS.
## Environment
- **Open WebUI Version:** v0.1.122
## Reproduction Details
**Confirmation:**
- [x] I have read and followed all the instructions provided in the README.md.
- [x] I am on the latest version of both Open WebUI and Ollama.
- [ ] I have included the browser console logs.
- [x] I have included the Docker container logs.
## Logs and Screenshots
[Container Log.txt](https://github.com/open-webui/open-webui/files/15142651/Container.Log.txt)
## Installation Method
Docker, following Docs with API details set through the Web UI. Also tried defining through docker run parameters:
```
docker run -d -p 3000:8080 \
-v open-webui:/app/backend/data \
-e OPENAI_API_BASE_URLS="https://api.together.xyz/v1" \
-e OPENAI_API_KEYS="the_key" \
--name open-webui \
--restart always \
ghcr.io/open-webui/open-webui:main
```
## Additional Information
Same API Base URLs and keys work in another chat app.
Seems like api.together.xyz api wasn't directly compatible with openai API spec (model list being directly sent as an array with /models endpoint instead of being sent as an object). Just updated the code on our dev branch to add support for api.together.xyz at least, let me know if the issue persists!
@tjbck commented on GitHub (Apr 28, 2024):
Seems like `api.together.xyz` api wasn't directly compatible with openai API spec (model list being directly sent as an array with `/models` endpoint instead of being sent as an object). Just updated the code on our dev branch to add support for `api.together.xyz` at least, let me know if the issue persists!
@tjbck thanks for speedy fix. I downloaded dev branch and commit 9832e6edba does seem to have fixed the issue and both together.ai and groq.com APIs are now working. I'll leave comment open incase you want to close it after the merge.
@jmstacey commented on GitHub (Apr 28, 2024):
@tjbck thanks for speedy fix. I downloaded dev branch and commit 9832e6edba4fd30aff3e30da4c128cfb581f922d does seem to have fixed the issue and both together.ai and groq.com APIs are now working. I'll leave comment open incase you want to close it after the merge.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @jmstacey on GitHub (Apr 28, 2024).
Bug Report
Description
Bug Summary:
Custom OpenAI API Endpoints don't seem to work, such as api.together.xyz, and api.replicate.com
Steps to Reproduce:
Expected Behavior:
Available models load and become available to interact with.
Actual Behavior:
No models shown. No useful logs in container console that I can see. ENV contains GLOBAL_LOG_LEVEL=DEBUG, and the expected OPENAI_API_BASE_URLS and OPENAI_API_KEYS.
Environment
Reproduction Details
Confirmation:
Logs and Screenshots
Container Log.txt
Installation Method
Docker, following Docs with API details set through the Web UI. Also tried defining through docker run parameters:
Additional Information
Same API Base URLs and keys work in another chat app.
@tjbck commented on GitHub (Apr 28, 2024):
Seems like
api.together.xyzapi wasn't directly compatible with openai API spec (model list being directly sent as an array with/modelsendpoint instead of being sent as an object). Just updated the code on our dev branch to add support forapi.together.xyzat least, let me know if the issue persists!@jmstacey commented on GitHub (Apr 28, 2024):
@tjbck thanks for speedy fix. I downloaded dev branch and commit
9832e6edbadoes seem to have fixed the issue and both together.ai and groq.com APIs are now working. I'll leave comment open incase you want to close it after the merge.@Yanyutin753 commented on GitHub (May 1, 2024):
@jmstacey you can try use oneapi to resolve this problem