Skip to content

docs: add AI provider configuration and usage docs#3062

Open
olexii4 wants to merge 7 commits into
mainfrom
AI_widget
Open

docs: add AI provider configuration and usage docs#3062
olexii4 wants to merge 7 commits into
mainfrom
AI_widget

Conversation

@olexii4

@olexii4 olexii4 commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

What does this pull request change?

Adds documentation for the AI Selector Widget feature introduced in che-dashboard#1505.

Administration Guide

  • Configuring AI providers (configuring-ai-providers.adoc) — procedure for creating the ai-tool-registry ConfigMap with providers, tools, and default selections.
  • AI provider API key Secret reference (ai-provider-api-key-secret-reference.adoc) — Secret schema, labels, annotations, naming convention, and manual creation.
  • CheCluster CR fields reference (checluster-custom-resource-fields-reference.adoc) — AI tool registry ConfigMap reference with provider and tool field tables.

End-User Guide

  • Using AI assistants in workspaces (using-ai-assistants-in-workspaces.adoc) — overview: default provider, multi-provider selection, AI Provider column in workspaces list, changing AI tool on existing workspaces.
  • Configuring an AI provider API key (configuring-an-ai-provider-api-key.adoc) — procedure with two paths: Create Workspace page and User Preferences > AI Providers Keys tab.
  • URL parameter for the AI provider (url-parameter-for-the-ai-provider.adoc) — ai-provider= factory URL parameter with comma-separated provider IDs.
Знімок екрана 2026-05-26 о 18 30 11 Знімок екрана 2026-05-26 о 18 32 18 Знімок екрана 2026-05-26 о 18 35 03

What issues does this pull request fix or reference?

eclipse-che/che#23796

Docs PR for che-dashboard#1505.

Specify the version of the product this pull request applies to

7.117.0

Pull Request checklist

The author and the reviewers validate the content of this pull request with the following checklist, in addition to the automated tests.

  • Any procedure:
    • Successfully tested.
  • Any page or link rename:
    • The page contains a redirection for the previous URL.
    • Propagate the URL change in:
  • Builds on Eclipse Che hosted by Red Hat.
  • the Validate language on files added or modified step reports no vale warnings.

@olexii4 olexii4 requested a review from amisevsk April 9, 2026 22:05
@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown

🎊 Navigate the preview: https://6a19810e776e3530c6fd40c7--eclipse-che-docs-pr.netlify.app 🎊

@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown

Click here to review and test in web IDE: Contribute

@ibuziuk ibuziuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@gtrivedi88 please, review the doc structure, so that it aligns with the new policy
@olexii4 please add the Tech-preview note

@olexii4 olexii4 changed the title [wip]docs: add AI provider configuration and usage docs docs: add AI provider configuration and usage docs May 7, 2026
@olexii4 olexii4 force-pushed the AI_widget branch 2 times, most recently from bd0f738 to 98fb924 Compare May 11, 2026 02:11

@gtrivedi88 gtrivedi88 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Added some suggestions. Please let me know if you have questions.

Comment thread modules/administration-guide/pages/configuring-ai-providers.adoc Outdated
Comment thread modules/administration-guide/pages/configuring-ai-providers.adoc Outdated
Comment thread modules/administration-guide/pages/configuring-ai-providers.adoc Outdated
Comment thread modules/end-user-guide/pages/configuring-an-ai-provider-api-key.adoc Outdated
Comment thread modules/end-user-guide/pages/configuring-an-ai-provider-api-key.adoc Outdated
Comment thread modules/end-user-guide/pages/using-ai-assistants-in-workspaces.adoc Outdated
Comment thread modules/end-user-guide/pages/using-ai-assistants-in-workspaces.adoc Outdated
Comment thread modules/administration-guide/pages/ai-provider-api-key-secret-reference.adoc Outdated
Comment thread modules/administration-guide/pages/ai-provider-api-key-secret-reference.adoc Outdated
Comment thread modules/end-user-guide/pages/using-ai-assistants-in-workspaces.adoc Outdated

@gtrivedi88 gtrivedi88 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

JTBD follow-up — missing abstracts and feature-focused framing

Additional issues not covered in the initial review. All 5 new files are missing [role="_abstract"] and several have feature-focused framing in the intro paragraph.

🤖 RHAI docs Claude Code review

Comment thread modules/administration-guide/pages/configuring-ai-providers.adoc Outdated
Comment thread modules/administration-guide/pages/ai-provider-api-key-secret-reference.adoc Outdated
Comment thread modules/end-user-guide/pages/using-ai-assistants-in-workspaces.adoc Outdated
Comment thread modules/end-user-guide/pages/url-parameter-for-the-ai-provider.adoc Outdated
@svor

svor commented May 28, 2026

Copy link
Copy Markdown
Contributor

@gtrivedi88 do you have an idea why Preview action doesn't work anymore?

@gtrivedi88

Copy link
Copy Markdown
Contributor

@svor I think the root cause is the actions-cool/maintain-one-comment repository was blocked by GitHub for a Terms of Service violation on May 19, 2026. That's why every run since May 19 fails and every run before May 18 succeeded.

This is the response from GitHub API:

{"message": "Repository access blocked", "block": {"reason": "tos", "created_at": "2026-05-19T00:34:15Z"}}
The action's repo was taken down by GitHub — not an org policy issue. Nobody in the eclipse-che org changed anything.

Fix: Replace actions-cool/maintain-one-comment@v3 with either:

A different maintained action (e.g., marocchino/sticky-pull-request-comment@v2)
An inline gh CLI script

Creating a PR for fix.

@gtrivedi88

Copy link
Copy Markdown
Contributor

@svor #3113

@gtrivedi88

Copy link
Copy Markdown
Contributor

@svor I think we are good now.

@svor

svor commented May 29, 2026

Copy link
Copy Markdown
Contributor

@gtrivedi88 looks like we have similar problem with Publish preview on netlify and the preview is not published

@gtrivedi88

Copy link
Copy Markdown
Contributor

@svor Can you please review and LGTM: #3115
Once merged, i believe the issue will be fixed here

olexii4 added 6 commits May 29, 2026 14:59
Assisted-by: Claude Sonnet 4.6
Signed-off-by: Oleksii Orel <oorel@redhat.com>
- Fix section title levels in configuring-an-ai-provider-api-key.adoc
  (=== to == to follow expected sequence after = heading)
- Add end-user-guide: module prefix to cross-module xrefs in
  ai-provider-api-key-secret-reference.adoc and configuring-ai-providers.adoc
- Remove non-existent aiProviders and defaultAiProvider xrefs from
  checluster-custom-resource-fields-reference.adoc (AI config is
  ConfigMap-based, not CheCluster CR fields)

Assisted-by: Claude Sonnet 4.6
Signed-off-by: Oleksii Orel <oorel@redhat.com>
- Sentence-case all :navtitle: values
- Add [role="_abstract"] to all 5 modules with JTBD-focused text
- Use imperative verb in procedure titles (Configure, not Configuring)
- Use noun phrase for concept title (AI assistants in workspaces)
- Fix :description: fields to explain what/why, not restate the title
- Add Tech-Preview note to configuring-ai-providers.adoc
- Consolidate two consecutive NOTE admonitions into one
- Remove custom subheadings from procedure module; present both
  paths as a single numbered list with choice items
- Fix hardcoded Gemini verification commands to generic placeholders
- Fix callout 4: correct regex description (all non-identifier chars,
  not just slashes, are replaced with dashes)
- Fix additional resources link: DevWorkspace Operator -> Devfile docs
- Extract changing-the-ai-tool procedure into its own module and add
  xref from the concept page
- Add changing-the-ai-tool-on-a-workspace.adoc to end-user nav

Assisted-by: Claude Sonnet 4.6
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Replace examples/ path with example$ family prefix required by Antora
for including files from the examples/ directory.

Assisted-by: Claude Sonnet 4.6
Signed-off-by: Oleksii Orel <oorel@redhat.com>
…mple

Replace all GEMINI_API_KEY and ANTHROPIC_API_KEY references with
OPENAI_API_KEY. Replace google/gemini and anthropic/claude provider IDs
with opencodeai/opencode. Simplify the url-parameter page to a single
provider example.

Assisted-by: Claude Sonnet 4.6
Signed-off-by: Oleksii Orel <oorel@redhat.com>
- Replace Gemini/Claude dual-provider example with a single OpenCode
  provider using OPENAI_API_KEY
- Add Procedure step with a minimal Dockerfile for building a custom
  injector image, based on che-incubator/che-ai-tool-images/dockerfiles/
  opencode/Dockerfile; explains multi-stage build, wrapper script for
  OpenShift arbitrary UIDs, and multi-arch build command
- Reference che-incubator/che-ai-tool-images for maintained examples
- Document all registry.json fields with numbered callouts

Assisted-by: Claude Sonnet 4.6
Signed-off-by: Oleksii Orel <oorel@redhat.com>
@svor

svor commented May 29, 2026

Copy link
Copy Markdown
Contributor

@gtrivedi88 thank you, now it's possible to see the preview in PRs

@svor svor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM
should be merged after eclipse-che/che-dashboard#1505

@svor

svor commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

@TheChosenMok this PR contributes information about AI tooling implemented in the PR and we are going to have instructions how to configure it with opencode as an example: https://6a19810e776e3530c6fd40c7--eclipse-che-docs-pr.netlify.app/docs/next/administration-guide/configuring-ai-providers/

If you have any concerns, please let us know

@svor

svor commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

@gtrivedi88 could you please take another look at the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready for Review

Development

Successfully merging this pull request may close these issues.

4 participants