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

[chatgpt] Fix config option provider to only become active for chatgpt things #15578

Merged
merged 1 commit into from
Sep 23, 2023

Conversation

kaikreuzer
Copy link
Member

Fixes #15575

Signed-off-by: Kai Kreuzer <kai@openhab.org>
@kaikreuzer kaikreuzer added the bug An unexpected problem or unintended behavior of an add-on label Sep 11, 2023
@kaikreuzer kaikreuzer requested a review from a team September 11, 2023 08:05
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@lolodomo lolodomo merged commit 4059003 into openhab:main Sep 23, 2023
@lolodomo lolodomo added this to the 4.1 milestone Sep 23, 2023
@kaikreuzer kaikreuzer deleted the chatgptoptions branch September 25, 2023 19:18
Pshatsillo pushed a commit to Pshatsillo/openhab-addons that referenced this pull request Sep 29, 2023
pat-git023 pushed a commit to pat-git023/openhab-addons that referenced this pull request Oct 13, 2023
querdenker2k pushed a commit to querdenker2k/openhab-addons that referenced this pull request Oct 21, 2023
querdenker2k pushed a commit to querdenker2k/openhab-addons that referenced this pull request Oct 29, 2023
…penhab#15578)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: querdenker2k <querdenker2k@gmx.de>
List<ParameterOption> options = new ArrayList<>();
if (thingHandler instanceof ChatGPTHandler chatGPTHandler) {
chatGPTHandler.getModels().forEach(model -> options.add(new ParameterOption(model, model)));
String accountParameterUrl = "thing-type:" + ChatGPTBindingConstants.THING_TYPE_ACCOUNT.getAsString();
Copy link
Member

@J-N-K J-N-K Dec 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be wrong. The model parameter is on a channel, not on the thing, so the uri is channel-type:chatgpt:chat

austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
…penhab#15578)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[chatgpt] Strings added with ChatGPT binding causes issues in MIIO binding
3 participants