Mobile-Artificial-Intelligence / maid

Maid is a cross-platform Flutter app for interfacing with GGUF / llama.cpp models locally, and with Ollama and OpenAI models remotely.
MIT License
1.03k stars 98 forks source link

Open ai API link changes on restart #572

Closed jimd-den closed 3 weeks ago

jimd-den commented 1 month ago

When using other API the link switches back to openai

danemadsen commented 1 month ago

So to clarify is this when closing then restarting the app?

jimd-den commented 1 month ago

actually when you select lama.cpp or anything else, it'll reset the link, when you select a maid option. and yes just closing, everytime you close, but it's because the openai model class uses a static variable for the link. So it's loading that static variable on restart or open, the best way would just be to create a custom API option that works like the openai for groq and open router.

danemadsen commented 1 month ago

I cant reproduce this on the latest build?

jimd-den commented 3 weeks ago

I cant reproduce this on the latest build?

You are right, should've updated