use script to generate raycast ai providers yaml
3 files changed, 21 insertions(+), 37 deletions(-)
changed files
A bin/update-raycast-ai-providers
@@ -0,0 +1,21 @@ +#!/usr/bin/env fish +set --local lms_base_url http://localhost:28100 +set --local lms_models_path /api/v0/models +set --local lms_openai_path /v1/ + +xh $lms_base_url$lms_models_path | fx .data '?.type != "embeddings"' 'map(m => ({ + id: m.id, name: m.id, context: m.max_context_length, + abilities: { + tools: { supported: m.capabilities?.includes("tool_use") || false }, + temperature: { supported: true }, + system_message: { supported: true }, + vision: { supported: m.type == "vlm" }, + } +}))' "x => ({ + providers: [{ + id: 'lm-studio', + name: 'LM Studio', + base_url: '$lms_base_url$lms_openai_path', + models: x + }] +})" YAML.stringify >~/.config/raycast/ai/providers.yaml
M user/hosts/marvin.nix → user/hosts/marvin.nix
@@ -89,10 +89,6 @@ }; }; }; - xdg.configFile."raycast/ai/providers.yaml" = { - source = direct_symlink "/user/settings/raycast/ai/providers.yaml"; - }; - targets.darwin.defaults = { NSGlobalDomain = { AppleKeyboardUIMode = 2;
D user/settings/raycast/ai/providers.yaml
@@ -1,33 +0,0 @@ -providers: - - id: llama.cpp - name: llama.cpp - base_url: https://chat.localhost/v1/ - models: - - id: gpt-oss:20b - name: gpt-oss-20b - context: 131072 - abilities: - temperature: - supported: true - vision: - supported: false - system_message: - supported: true - tools: - supported: true - reasoning_effort: - supported: true - - id: gpt-oss:120b - name: gpt-oss-120b - context: 131072 - abilities: - temperature: - supported: true - vision: - supported: false - system_message: - supported: true - tools: - supported: true - reasoning_effort: - supported: true