lmstudio and tencent-tokenhub were the last chat-completions providers with no ProviderProfile, so their requests were built by the legacy flag branch in ChatCompletionsTransport.build_kwargs (name check for LM Studio, host check for TokenHub). They now have profiles that reproduce the same wire through build_api_kwargs_extras: - lmstudio: top-level reasoning_effort from the model's published allowed_options. The agent's cached probe is passed to the hook as reasoning_options; auxiliary calls (no probe) keep the generic nested reasoning they already sent. base_url is left empty on purpose: a loopback base_url would map every 127.0.0.1 / localhost endpoint to LM Studio in URL-to-provider inference and turn off local-server detection for Ollama, llama.cpp and vLLM. Model listing and the doctor probe stay off so the picker keeps LM Studio's own chat-model probe. - tencent-tokenhub: top-level reasoning_effort clamped to low/medium/high, omitted when thinking is off, high when no level is chosen (default_reasoning_config on main-loop turns). Model listing and the doctor probe stay off so the picker keeps the curated Hy list. The name-based LM Studio branch is removed from the legacy path. The host-based branches stay: an agent built from a base_url alone (run_agent.py main, the batch runner, library callers) carries provider="" and still reaches the legacy path. 11 base_url-only snapshot cells now pin those host-detected requests (OpenRouter, Nous, Kimi, Kimi coding, TokenHub, GitHub Models, NVIDIA NIM, Qwen portal, a localhost LM Studio port, Ollama, a generic endpoint) so the change that retires the legacy path can prove it sends the same requests. Deliberate deltas: model ids prefixed lmstudio: / tencent-tokenhub: are now stripped like every other profiled provider's; TokenHub auxiliary calls with a reasoning config send top-level reasoning_effort (the main-loop shape) instead of nested extra_body.reasoning.
6 lines
105 B
YAML
6 lines
105 B
YAML
name: lmstudio-provider
|
|
kind: model-provider
|
|
version: 1.0.0
|
|
description: LM Studio
|
|
author: Nous Research
|