Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SmartTextArea] Documentation for Parameters parameter #10

Open
hakenr opened this issue Mar 14, 2024 · 3 comments
Open

[SmartTextArea] Documentation for Parameters parameter #10

hakenr opened this issue Mar 14, 2024 · 3 comments
Milestone

Comments

@hakenr
Copy link

hakenr commented Mar 14, 2024

I didn't find any documentation for this parameter.

(Also please consider renaming the parameter. Parameters parameter seems to me problematic in context of Blazor.)

@SteveSandersonMS
Copy link
Contributor

Good point.

Parameters is just an arbitrary string you can use to communicate any state or context information you want into the inference backend (it arrives as a property on the SmartTextAreaConfig shown in "customizing the prompt"). For example you might want to supply the ID of the discussion a user is participating in, and then use information based on that in the prompt on the backend so it can generate text relevant to that discussion.

However this is a bit nonobvious and perhaps advanced. The name is definitely questionable.

@SteveSandersonMS SteveSandersonMS added this to the backlog milestone Mar 15, 2024
@hakenr
Copy link
Author

hakenr commented Mar 15, 2024

Ah, now I get it.
However, the name could be something like XyState.

BTW, if you go with ItemsProvider (#11), you probably won't need such a parameter. ;-)

@SteveSandersonMS
Copy link
Contributor

Great, thanks for confirming. I agree that some name related to 'state' makes more sense so I'll try to update it something along the lines of your suggestion.

BTW, if you go with ItemsProvider (#11), you probably won't need such a parameter. ;-)

In the Blazor interactive case sure, but I'm trying to give equal consideration to Blazor SSR and MVC/Razor Pages as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants