MCPcopy Create free account
hub / github.com/Dimillian/CodexMonitor / getConfigModel

Function getConfigModel

src/services/tauri.ts:250–260  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

248}
249
250export async function getConfigModel(workspaceId: string): Promise<string | null> {
251 const response = await invoke<{ model?: string | null }>("get_config_model", {
252 workspaceId,
253 });
254 const model = response?.model;
255 if (typeof model !== "string") {
256 return null;
257 }
258 const trimmed = model.trim();
259 return trimmed.length > 0 ? trimmed : null;
260}
261
262export async function addWorkspace(path: string): Promise<WorkspaceInfo> {
263 return invoke<WorkspaceInfo>("add_workspace", { path });

Callers 2

useSettingsDefaultModelsFunction · 0.90
useModelsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected