# JSON error on /models call

**URL:** <https://community.sambanova.ai/t/json-error-on-models-call/263>\
**Category:** Discussion\
**Tags:** dev, function\_calling\
**Created:** [September 12, 2024, 6:10pm UTC](https://community.sambanova.ai/t/json-error-on-models-call/263 "2024-09-12T18:10:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.malaga](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/a.malaga/32/432_2.png) [@a.malaga](https://community.sambanova.ai/u/a.malaga)\
**Post date:** [September 12, 2024, 6:10pm UTC](https://community.sambanova.ai/t/json-error-on-models-call/263/1 "2024-09-12T18:10:38Z")

</div>

Hello,  
i’m trying to integrate your models in my local openwebui instance.  
I already have a meta3.1 external api, and i can use it but trying with sambanova api i have this error:  
r.raise\_for\_status()  
INFO [open\_webui.env] Saving ‘OLLAMA\_BASE\_URLS’ to the database  
INFO: 172.17.0.1:64361 - “GET /ollama/api/version HTTP/1.1” 200 OK  
ERROR [open\_webui.apps.openai.main] Connection error: 404, message=‘Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8’, url=‘[https://api.sambanova.ai/v1/models](https://api.sambanova.ai/v1/models)’

Hope you can help me.  
Thanks

---

<div class="post-metadata">

**Author:** ![Coby](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/coby/32/17_2.png) [@Coby](https://community.sambanova.ai/u/Coby)\
**Post date:** [September 12, 2024, 6:21pm UTC](https://community.sambanova.ai/t/json-error-on-models-call/263/2 "2024-09-12T18:21:45Z")

</div>

@a.malaga

Welcome to the community. AT this time we are only doing the streaming inference API but I will submit your request to have the model list API available . In the meantime this Documentation topic will contain the list of supported models.

[Supported Models](https://community.sambanova.ai/t/supported-models/193)

regards

-Coby

---

<div class="post-metadata">

**Author:** ![a.malaga](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/a.malaga/32/432_2.png) [@a.malaga](https://community.sambanova.ai/u/a.malaga)\
**Post date:** [September 12, 2024, 6:28pm UTC](https://community.sambanova.ai/t/json-error-on-models-call/263/3 "2024-09-12T18:28:52Z")

</div>

Hello, thanks.  
Yes /models is “a must” cause many tools use get call to retrieve all models.  
I’ll try with a workaround in the meantime.  
Thanks

---

<div class="post-metadata">

**Author:** ![Coby](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/coby/32/17_2.png) [@Coby](https://community.sambanova.ai/u/Coby)\
**Post date:** [September 12, 2024, 6:33pm UTC](https://community.sambanova.ai/t/json-error-on-models-call/263/4 "2024-09-12T18:33:35Z")

</div>

Thank you for your understanding.

@karan.srivastava FYI

---

<div class="post-metadata">

**Author:** ![a.malaga](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/a.malaga/32/432_2.png) [@a.malaga](https://community.sambanova.ai/u/a.malaga)\
**Post date:** [September 12, 2024, 6:35pm UTC](https://community.sambanova.ai/t/json-error-on-models-call/263/5 "2024-09-12T18:35:06Z")

</div>

If anyone else will ask, you can “bypass” with: [pipelines/examples/pipelines/providers at main · open-webui/pipelines · GitHub](https://github.com/open-webui/pipelines/tree/main/examples/pipelines/providers)  
and select openai\_pipeline.py , editing per API and model provided here.

---

<div class="post-metadata">

**Author:** ![Coby](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/coby/32/17_2.png) [@Coby](https://community.sambanova.ai/u/Coby)\
**Post date:** [September 12, 2024, 7:03pm UTC](https://community.sambanova.ai/t/json-error-on-models-call/263/6 "2024-09-12T19:03:41Z")

</div>

@a.malaga THANK YOU !!!
