web-ui icon indicating copy to clipboard operation
web-ui copied to clipboard

How do I change the default LLM Provider from Openai to Google

Open Kenneth-Rosenstroem opened this issue 9 months ago • 5 comments

None other than Google works for me, even though I have added API keys. Program stalls on my Pinokio install, remote and local.

So where can I change the default LLM Provider to Google every time I start the program? It defaults to Openai, and I wish it to default to google instead.

Thanks.

Kenneth-Rosenstroem avatar Mar 05 '25 20:03 Kenneth-Rosenstroem

You can save your config via "Configuration" > "Save Current Config". The next time, select the saved config file, and load it with "Load Existing Config From File". Unfortunately, automatic loading on restart isn't supported, so you will have to load it every time you restart the app.

marginal23326 avatar Mar 05 '25 20:03 marginal23326

You can't on a remote session though, as it saves it only on the PC where it is installed...

Configuration saved to ./tmp/webui_settings\eaf299b8-78d8-43c3-8e75-09898c1a1087.pkl

So this didn't solve anything.

Thanks for the input though.

Kenneth-Rosenstroem avatar Mar 05 '25 20:03 Kenneth-Rosenstroem

If that's the case, then the only option is to directly modify the code (change openai to google and the model name, gpt-4o to a google's one:

webui.py

769:                        choices=utils.model_names['openai'],

and:

src\utils\default_config_settings.py

15:        "llm_provider": "openai",
16:        "llm_model_name": "gpt-4o",
92:                gr.update(value=loaded_config.get("llm_provider", "openai")),
93:                gr.update(value=loaded_config.get("llm_model_name", "gpt-4o")),

marginal23326 avatar Mar 05 '25 20:03 marginal23326

Thank you, Sir, that was what I was looking for. Appreciate it.

Kenneth-Rosenstroem avatar Mar 05 '25 20:03 Kenneth-Rosenstroem

The issue is closed. As user got what he wanted.

GauravChaurasiaGC avatar Mar 20 '25 14:03 GauravChaurasiaGC