openfang icon indicating copy to clipboard operation
openfang copied to clipboard

I change the model with another provider through the UI and the provider stills the same

Open gotaluism opened this issue 8 months ago • 3 comments

Description

Image

Is there a way to fix it?

Congrats, the project is awesome, it's 1000000 better and more intuitive than OpenClaw 🦀

Expected Behavior

That It can change the provider too

Steps to Reproduce

openfang start, join through the AI

click into chat

put /models and change the name of the model

OpenFang Version

0.3.23

Operating System

Linux (x86_64)

Logs / Screenshots

No response

gotaluism avatar Mar 07 '26 02:03 gotaluism

Can you run openfang stop, then openfang start again @gotaluism ?

minhdoan0730 avatar Mar 07 '26 04:03 minhdoan0730

i may know the answer: all model id should be global identity. so if u have same model name in different providers. u change to another one, won't work.

whitemay avatar Mar 09 '26 16:03 whitemay

Fixed in v0.3.35 alongside #466. Model switch via PUT /api/agents/{id}/model and the /model chat command now return the server-resolved provider. The dashboard, chat page, and channel bridge all read this value so the provider stays consistent with the selected model.

jaberjaber23 avatar Mar 09 '26 18:03 jaberjaber23