-
Couldn't load subscription status.
- Fork 89
fix: llm api menu and other errors #13842
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
base: master
Are you sure you want to change the base?
Conversation
420d60e to
1e40af6
Compare
| ...(api.type === 'PROXY' ? [this.addDebugMenuEntry()] : []), | ||
| ].filter((entry) => entry != null && !entry.tabs?.every((tab) => tab.routerLink === 'DISABLED')); | ||
| ] | ||
| .flat() |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about adding
| 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 |
There was a problem hiding this comment.
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 🤔
113d11f to
04309a3
Compare
a18b29e to
21ddba4
Compare
21ddba4 to
b5fcce7
Compare
Issue
https://gravitee.atlassian.net/browse/APIM-11657
Description
Fixed LLM API Menus, api_key plan other issues.