zed icon indicating copy to clipboard operation
zed copied to clipboard

Implement Groq or OS models for Assistant Tab (settings.assistant)

Open xsa-dev opened this issue 10 months ago • 3 comments

Check for existing issues

  • [X] Completed

Describe the feature

Currently, the Assistant Tab is limited to using the OpenAI API, which can lead to some challenges for open source projects. To provide more flexibility, I suggest adding a configurable field to change the base_url for the assistant tab. This would allow users to access free AI services like Groq, or alternatively use Ollama, LiteLLM, or other models by specifying their base_url. However, I want to note that I haven't fully vetted or tested these alternative options yet, so some additional checks may be needed before implementing this.

image

If applicable, add mockups / screenshots to help present your vision of the feature

It would be great to have a window or dialog similar to the request panel, where users can:

  1. Enter the base_url for alternative AI models/services
  2. Provide names and settings for custom models
  3. Save and manage multiple configurations

The dialog could have a dropdown to select pre-defined options (OpenAI, Groq, Ollama, etc.) as well as the ability to add new custom entries with a friendly name, base_url, and required parameters.

This would allow easy switching between different AI models/providers without manually entering URLs/settings every time, providing a seamless experience for developers/users exploring various AI capabilities. No response

xsa-dev avatar Apr 26 '24 22:04 xsa-dev

Need this!

didier avatar Apr 28 '24 08:04 didier

Yeah, love this thing in ST

yaroslavyaroslav avatar May 11 '24 10:05 yaroslavyaroslav

Hope to support custom models, such as

    "assistant": {
    "version": "1",
    "provider": {
      "name": "openai",
      "type": "openai",
      "default_model": "gpt-custom-model-1",
      "custom_model": ["gpt-custom-model-1", "gpt-custom-model-2"],
      "api_url": "https://www.example.com"
    }
  },

GOWxx avatar May 16 '24 15:05 GOWxx

When?

Wolfsauge avatar May 24 '24 18:05 Wolfsauge

I'd like to take this on!

timeowilliams avatar Jun 05 '24 14:06 timeowilliams

As of #12902, Ollama is now supported as a way to interface with local language models.

rgbkrk avatar Jun 12 '24 03:06 rgbkrk