mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 02:50:42 +00:00
* Feat: LM Studio Integration * Format * Support usage in streaming true Fix token count * Add custom window check * Drop max tokens fallback * tweak docs Update generated * Avoid error if stale header does not resolve * Fix test * Fix test * Fix rebase issues Trim code * Fix tests Drop keyless Fixes * Fix linter issues in tests * Update generated artifacts * Do not have fatal header resoltuion for discovery * Do the same for API key as well * fix: honor lmstudio preload runtime auth * fix: clear stale lmstudio header auth * fix: lazy-load lmstudio runtime facade * fix: preserve lmstudio shared synthetic auth * fix: clear stale lmstudio header auth in discovery * fix: prefer lmstudio header auth for discovery * fix: honor lmstudio header auth in warmup paths * fix: clear stale lmstudio profile auth * fix: ignore lmstudio env auth on header migration * fix: use local lmstudio setup seam * fix: resolve lmstudio rebase fallout --------- Co-authored-by: Frank Yang <frank.ekn@gmail.com>
13 lines
828 B
TypeScript
13 lines
828 B
TypeScript
/** Shared LM Studio defaults used by setup, runtime discovery, and embeddings paths. */
|
|
export const LMSTUDIO_DEFAULT_BASE_URL = "http://localhost:1234";
|
|
export const LMSTUDIO_DEFAULT_INFERENCE_BASE_URL = `${LMSTUDIO_DEFAULT_BASE_URL}/v1`;
|
|
export const LMSTUDIO_DEFAULT_EMBEDDING_MODEL = "text-embedding-nomic-embed-text-v1.5";
|
|
export const LMSTUDIO_PROVIDER_LABEL = "LM Studio";
|
|
export const LMSTUDIO_DEFAULT_API_KEY_ENV_VAR = "LM_API_TOKEN";
|
|
export const LMSTUDIO_LOCAL_API_KEY_PLACEHOLDER = "lmstudio-local";
|
|
export const LMSTUDIO_MODEL_PLACEHOLDER = "model-key-from-api-v1-models";
|
|
// Default context length sent when requesting LM Studio to load a model.
|
|
export const LMSTUDIO_DEFAULT_LOAD_CONTEXT_LENGTH = 64000;
|
|
export const LMSTUDIO_DEFAULT_MODEL_ID = "qwen/qwen3.5-9b";
|
|
export const LMSTUDIO_PROVIDER_ID = "lmstudio";
|