devika icon indicating copy to clipboard operation
devika copied to clipboard

Feature: selectable custom hosted model IDs through the existing OpenAI client

Open cenab opened this issue 2 months ago • 0 comments

Is your feature request related to a problem? Please describe.

I am evaluating Tsubasa (https://api.tsubasa.sh/v1, models tsubasa-fast and tsubasa-pro). The current OpenAi client accepts a custom base URL, but LLM.models still enumerates fixed OpenAI choices and model_enum() returns no provider for an arbitrary alias. Configuring the endpoint alone does not make these models selectable.

I reviewed #31 and #89, plus the Azure-specific #55 / #69 route. This request concerns the remaining model-selector path, not another base-URL option or Azure implementation.

Describe the solution you'd like

Would a configuration-defined model ID/display name under a custom OpenAI-compatible connection be welcome? It could reuse OpenAi.inference, keep the connection's key/base URL explicit, and expose the configured models through the existing picker. Context/output metadata should be part of a tested profile rather than assumed from GPT labels.

Describe alternatives you've considered

Using an existing GPT label would hide the actual model identity. The LM Studio client sends a fixed local model ID and placeholder key, so it is not an authenticated hosted-provider route. A new transport would duplicate the existing OpenAI client.

Additional context

This is based on current source inspection; no desktop UI, full agent run or live Tsubasa inference is claimed. A follow-up patch would need selector/dispatch tests and a bounded real request capture before publishing a usable setup.

Source: src/llm/openai_client.py, src/llm/llm.py.

Tsubasa-affiliated investigation.

cenab avatar Sep 28 '26 05:09 cenab