Open Beta API: Intermittent error 'Error in API gateway: Expecting value: line 1 column 1 (char 0)'

Here is the code used to submit the request to the mor api:

https://github.com/nima1981/dissentbot/blob/master/api/index.js


In my local environment I use the following parameters to connect with the morpheus API:

API_URL_MODELS="https://api.mor.org/api/v1/models"
MODEL_ID="venice-uncensored" API_URL_CHAT_COMPLETION="https://api.mor.org/api/v1/chat/completions"


Here is the error occasionally returned by the morpheus API

server-1 | API ERROR RESPONSE: { server-1 | error: { server-1 | message: 'Error in API gateway: Expecting value: line 1 column 1 (char 0)', server-1 | type: 'gateway_error', server-1 | session_id: '0x8eefd1bab34aa5c6442d37243981b0fa10d1ce204cac4589e28f439243c99707' server-1 | } server-1 | }

You can see the same app working online using the venice api where this error never occurs: https://dissentbot.com

In that live environment I use the following parameters to connect with the Venice API:
API_URL_MODELS="https://api.venice.ai/api/v1/models"

MODEL_ID="venice-uncensored" API_URL_CHAT_COMPLETION="https://api.venice.ai/api/v1/chat/completions"

Please authenticate to join the conversation.

Upvoters
Status

In Progress

Board
πŸ•·οΈ

Bugs

Tags

API Gateway App

Date

9 months ago

Author

nima1981

Subscribe to post

Get notified by email when there are changes.