n4ze3m / dialoqbase

Create chatbots with ease
https://dialoqbase.n4ze3m.com/
MIT License
1.53k stars 251 forks source link

HTTP 404 while adding custom embedding model #236

Closed tbhaxor closed 3 months ago

tbhaxor commented 3 months ago

When I am adding custom embedding model, it is giving me 404 error. Even though I have selected the OpenAI Compatible API in the first option, it is still sending ollama in the request.

image

This is the curl request I copied from the network request.

curl 'https://REDACTED/api/v1/admin/models/fetch' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'Accept-Language: en-US,en;q=0.7' \
  -H 'Authorization: REDACTED' \
  -H 'Connection: keep-alive' \
  -H 'Content-Type: application/json' \
  -H 'Cookie: sessionId=REDACTED; db_token=REDACTED' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: same-origin' \
  -H 'Sec-GPC: 1' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Windows"' \
  --data-raw '{"ollama_url":"http://REDACTED/v1","api_type":"ollama"}'

[!NOTE]

http://REDACTED/v1 is where my OpenAI Compatible API is running.

n4ze3m commented 3 months ago

Hey, thank you for pointing out that there was an issue on the frontend. We will release a fix later today

tbhaxor commented 3 months ago

@n4ze3m I see the code is fixed but you re-opened the issue. Should I test now or wait?

n4ze3m commented 3 months ago

It has been fixed. You can try it out and let me know if it's working for you.

tbhaxor commented 3 months ago

Yes it is working.