zed icon indicating copy to clipboard operation
zed copied to clipboard

Add LM Studio URL configuration field

Open mpleshivenkov opened this issue 6 months ago • 4 comments

Adds a URL input field to configure LM Studio server endpoint.

Primary Change:

  • URL text input field for LM Studio server configuration
  • Allows users to specify custom LM Studio server URL

Additional Features:

  • Check button to validate server connectivity
  • Visual feedback with status indicators
  • URL validation and error handling

This enables users to connect to LM Studio servers running on different hosts/ports.

mpleshivenkov avatar Jun 02 '25 01:06 mpleshivenkov

We require contributors to sign our Contributor License Agreement, and we don't have @mpleshivenkov on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

cla-bot[bot] avatar Jun 02 '25 01:06 cla-bot[bot]

@cla-bot check

mpleshivenkov avatar Jun 02 '25 01:06 mpleshivenkov

The cla-bot has been summoned, and re-checked this pull request!

cla-bot[bot] avatar Jun 02 '25 01:06 cla-bot[bot]

Fixed code duplication by extracting URL validation into a shared validate_api_url helper function. Both check_server and save_api_url now use the same validation logic.

mpleshivenkov avatar Jun 02 '25 01:06 mpleshivenkov

@mpleshivenkov thanks for sending this in! This is definitely something we would like to support, but we want to think through how to handle this for all providers, since all of them allow for overriding the URL.

In the meantime, feel free to add this setting to your settings.json for LM Studio: https://zed.dev/docs/ai/configuration#custom-provider-endpoint

benbrandt avatar Jun 03 '25 13:06 benbrandt