mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-25 08:50:53 +01:00
* Claim asking which model to use when a server lists several (R5.4) * Ask which model to use when a server added by address lists several (R5.4) * Leave the Look for AI line to its own PR (R5.4) * Offer a server's models only for the address that was asked (R5.4) Review of #1436: the add's answer was stored with the address the form showed when it arrived, so changing the address while one server answered offered its models for another, and picking one asked that other server for it. BackendAdded now carries the address that was asked; only the form's current request (server_form.connecting) sets or clears the list, which is kept only while the form still shows that name and address. Any other failure clears an earlier list; a Stop keeps it. The test changes the address before the answer arrives, answers a replaced request, and fails a request after a list was offered. * Draw the server's model choice with the app's own dropdown (R5.4) Review of #1436: the list of a server's chat models was a raw egui ComboBox with selectable_label rows. It now uses widgets::dropdown and widgets::menu_item, like the app's other pickers, so it keeps their icon, popup style and row look. * Drop a model picked from one server's list when the address changes (R5.4) Review of #1436: a model picked from server A's list stayed in the model field after the address was changed to B, so Add would ask B for A's model, which may start a download. The form now remembers which address a listed model was picked for (ServerForm::picked) and clears it once the address is another; a model typed by hand is left alone. The model dropdown is named "Choose a model" for screen readers. A smoke test picks a model by clicking the dropdown, types in the address field and checks the model goes, then checks a typed model stays.