Skip to content

feat: show OpenAI-compatible endpoint info for LMStudio provider#315

Merged
haiphucnguyen merged 1 commit intohaiphucnguyen:mainfrom
miguel-baptista07:fix/lmstudio-openai-endpoint-info-307
Apr 14, 2026
Merged

feat: show OpenAI-compatible endpoint info for LMStudio provider#315
haiphucnguyen merged 1 commit intohaiphucnguyen:mainfrom
miguel-baptista07:fix/lmstudio-openai-endpoint-info-307

Conversation

@miguel-baptista07
Copy link
Copy Markdown
Contributor

@miguel-baptista07 miguel-baptista07 commented Apr 13, 2026

Fixes #307

Changes

  • Added InfoField as a new sealed subclass of ProviderConfigField

  • Added informational message in LmStudioSettings explaining that Askimo uses OpenAI-compatible endpoints (/v1), not the native LMStudio API (/api/v1/)

  • Updated ProviderSelectionDialog to render InfoField as an info card with an icon

  • Updated SettingsViewModel to skip InfoField when building providerFieldValues map

  • Added translations in all 10 supported languages

Screenshots

The info message now appears when the user selects LMStudio as provider.
Captura de ecrã 2026-04-13 155018

@cla-assistant
Copy link
Copy Markdown

cla-assistant bot commented Apr 13, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@miguel-baptista07 miguel-baptista07 force-pushed the fix/lmstudio-openai-endpoint-info-307 branch from 3a806c6 to aef60fa Compare April 13, 2026 15:01
…phucnguyen#307)

Add ProviderConfigField.InfoField sealed subclass for displaying
informational banners in the provider configuration dialog.

Wire it into LmStudioSettings.getConfigFields() so that selecting
LMStudio shows a card explaining Askimo uses /v1 endpoints, not the
native LMStudio /api/v1/ endpoints.

Add provider.lmstudio.openai.compat.info i18n key to all 10 locale files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Miguel <miguelkevlin23@gmail.com>
@miguel-baptista07 miguel-baptista07 force-pushed the fix/lmstudio-openai-endpoint-info-307 branch from aef60fa to 96be4b1 Compare April 13, 2026 15:06
@haiphucnguyen
Copy link
Copy Markdown
Owner

Hi @miguel-baptista07 , thank you for your contribution. The PR looks good to me. Can you sign the cla before I can merge? Thanks!

Screenshot 2026-04-13 at 7 46 32 PM

@miguel-baptista07
Copy link
Copy Markdown
Contributor Author

Hi @haiphucnguyen, I'm having the same issue as before with the CLA website —
the page doesn't show the agreement form. I'm trying in an incognito window.
I already signed the CLA for PR #312, is it possible to reuse it?

@miguel-baptista07
Copy link
Copy Markdown
Contributor Author

image done

@haiphucnguyen
Copy link
Copy Markdown
Owner

Thank you @miguel-baptista07 for your contribution.

You just need to sign only once. I am not sure why it requires you sign in every PR. Let me check later if this issue is persisted.

There is the build failure

> Could not resolve all files for configuration ':desktop-shared:compileClasspath'.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
   > Could not resolve org.jetbrains.jediterm:jediterm-ui:3.64.

     Required by:
For more on this, please refer to https://docs.gradle.org/9.4.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
         project ':desktop-shared'
20 actionable tasks: 20 executed
      > Could not resolve org.jetbrains.jediterm:jediterm-ui:3.64.
         > Could not get resource 'https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/jediterm/jediterm-ui/3.64/jediterm-ui-3.64.pom'.
            > Could not GET 'https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/jediterm/jediterm-ui/3.64/jediterm-ui-3.64.pom'. Received status code 503 from server: Service Unavailable
   > Could not resolve org.jetbrains.jediterm:jediterm-core:3.64.
     Required by:
         project ':desktop-shared'
      > Could not resolve org.jetbrains.jediterm:jediterm-core:3.64.
         > Could not get resource 'https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/jediterm/jediterm-core/3.64/jediterm-core-3.64.pom'.
            > Could not GET 'https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/jediterm/jediterm-core/3.64/jediterm-core-3.64.pom'. Received status code 503 from server: Service Unavailable
> There are 7 more failures with identical causes.

but it is the false positive issue for build because the issue 503 on maven host.

I am looking forward to your new contribution :)

@haiphucnguyen haiphucnguyen merged commit d153fa8 into haiphucnguyen:main Apr 14, 2026
13 of 24 checks passed
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.

Give the information of LmStudio using the OpenAI compatible endpoint

3 participants