Skip to content

Conversation

@nive1980
Copy link
Contributor

Issue

https://gravitee.atlassian.net/browse/APIM-11657

Description

Fixed LLM API Menus, api_key plan other issues.

@nive1980 nive1980 force-pushed the APIM-11657-Adapt-UI-for-llm-new branch 7 times, most recently from 420d60e to 1e40af6 Compare October 27, 2025 12:25
@nive1980 nive1980 marked this pull request as ready for review October 27, 2025 13:14
@nive1980 nive1980 requested a review from a team as a code owner October 27, 2025 13:14
...(api.type === 'PROXY' ? [this.addDebugMenuEntry()] : []),
].filter((entry) => entry != null && !entry.tabs?.every((tab) => tab.routerLink === 'DISABLED'));
]
.flat()
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure to understand why it is required 🤔

ApiType.LLM_PROXY,
flow ->
flow
// TODO(LLM_PROXY): Add a specific LLM selector and use it here
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can remove this todo because we won't have LLM selector like MCP


private void checkSelectorsForType(final ApiType apiType, final Flow flow) {
if (flow.getSelectors() != null) {
if (ApiType.PROXY == apiType) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What about adding

Suggested change
if (ApiType.PROXY == apiType || ApiType.LLM_PROXY == apiType) {

instead of creating a new if branch?

LLM Proxy use regular HTTP selectors

.contains(entry("flowName", "bad_flow"), entry("invalidSelectors", "http"));
}

@Test
Copy link
Contributor

Choose a reason for hiding this comment

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

is it expected to remove this 🤔

@nive1980 nive1980 force-pushed the APIM-11657-Adapt-UI-for-llm-new branch 3 times, most recently from 113d11f to 04309a3 Compare October 28, 2025 08:29
@nive1980 nive1980 marked this pull request as draft October 29, 2025 07:13
@nive1980 nive1980 force-pushed the APIM-11657-Adapt-UI-for-llm-new branch 4 times, most recently from a18b29e to 21ddba4 Compare October 29, 2025 14:31
@nive1980 nive1980 force-pushed the APIM-11657-Adapt-UI-for-llm-new branch from 21ddba4 to b5fcce7 Compare October 29, 2025 14:34
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

Successfully merging this pull request may close these issues.

3 participants