ItzCrazyKns / Perplexica

Perplexica is an AI-powered search engine. It is an Open source alternative to Perplexity AI
MIT License
12.53k stars 1.17k forks source link

settings: custom_openapi - Model name : undefined -- Not saved when entered #262

Closed quantumalchemy closed 4 weeks ago

quantumalchemy commented 1 month ago

Describe the bug In settings: custom_openapi - Model name : undefined -- Not saved when entered everything else saved : Custom OpenAI API Key - ok Custom OpenAI Base URL - ok Just --> Model name : undefined - never saved

To Reproduce click save button

ItzCrazyKns commented 1 month ago

Describe the bug In settings: custom_openapi - Model name : undefined -- Not saved when entered everything else saved : Custom OpenAI API Key - ok Custom OpenAI Base URL - ok Just --> Model name : undefined - never saved

To Reproduce click save button

Did you ever add the model name into the model name field?

quantumalchemy commented 1 month ago

yeah obviously .. like 10 times ..saved always 'undefined ' I am going to reinstall (maybe a cache thing?) cant be the only one- thanks

lichenke commented 1 month ago

I also encountered the same situation

Wongkitlong314 commented 1 month ago

same here. even remove the container and delete browser cache and cookie. the problem still exist. can we edit the config file directly? where is it stored?

mcthesw commented 1 month ago

same here. any solution?

snowday365 commented 1 month ago

same here.

ItzCrazyKns commented 4 weeks ago

I'll try to reproduce.

ItzCrazyKns commented 4 weeks ago

Ok, turns out I forgot to handle the custom OpenAI provider separately while settings the model names that caused an issue. Additionally a hook in the select of the model provider also caused a similar issue. Both of them are no fixed.

How to get the patch?

Re-clone Perplexica from Github (If you had did git clone earlier just go to the directory and execute git pull) and then run the following command:

docker compose up -d --build

Or just follow this guide

Happy searching!