Problem using list picker with chatbot models

I am trying to use a list picker to let the user select a chatbot model, but the list is distorted as shown in the screenshot I tried to paste here. I have also uploaded the .aia file
Please tell me what the problem is
Arun
testtselmodel1.aia (2.2 KB)
listpickerscreenshot

image

Thank you, but that does not solve the problem. The text before the colon disappears in the view of the list
Arun

How's this?

image


testtselmodel1 (1).aia (2.6 KB)

I see the problem now.

The helper blocks don't coerce into text values the way you would expect.

You might have to code a lookup table mapping the model identifier helper block into whatever text representation you like for the List Picker, then use the SelectionIndex to load the selected model.

It would have been nicer if the chatbotbot component had a block to return the provider of a model.

Here's a pnambic (Pay No Attention to the Man Behind the Curtain) version, patched for the google special cases, and incomplete because I got bored filling in the map table.
image


testtselmodel1 (2).aia (3.3 KB)

P.S. After Picking, you might have to set the Provider too. I have never used this component, so I don't know.

Many thanks, ABG! I know how to fix it now.
Arun

The blocks are populated by an API, which actually does have the information in a structured form. I've logged a feature request to see if we could expose that via blocks to make these types of app designs easier to build.

2 Likes

thank you for requesting the feature. For now, is the attached aia the best one can do?
warmly, Arun
selectLLM.aia (3.6 KB)

Here is the blocks image for your aia:

Your aia does not link providers with models, so it is possible for the user to pick a model and a provider that does not provide that model.

To enforce that you would need either a two column table, or two parallel lists of equal length, model and provider.

selectLLM1.aia (4.6 KB)
Thank you for the feedback.

I have added a dictionary called model_provider which links each model to the corresponding provider. The list picker for providers has been dropped. When you pick a model, the dictionary is used to obtain the provider.
warmly, Arun

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.