mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-05 15:09:42 +02:00
Merge pull request #393 from opticon454/feature-custom-llm-server-support
feat: Custom Model Endpoint Profiles (local or cloud, all harnesses)
This commit is contained in:
@@ -330,6 +330,22 @@ export class MockSession extends EventEmitter {
|
||||
this.color = c;
|
||||
});
|
||||
|
||||
/** Custom Model Endpoint Profiles (deployment_plan.md) */
|
||||
customModel: { endpointId: string; modelId: string; label?: string } | undefined = undefined;
|
||||
private _mockCustomModelConfigDir: string | undefined;
|
||||
setCustomModel = vi.fn(
|
||||
(
|
||||
next: { endpointId: string; modelId: string; label?: string; envKeys: string[]; configDir?: string } | undefined,
|
||||
_envOverrides?: Record<string, string>
|
||||
): string | undefined => {
|
||||
const previous = this._mockCustomModelConfigDir;
|
||||
this._mockCustomModelConfigDir = next?.configDir;
|
||||
this.customModel = next ? { endpointId: next.endpointId, modelId: next.modelId, label: next.label } : undefined;
|
||||
return previous;
|
||||
}
|
||||
);
|
||||
restartCli = vi.fn(async () => true);
|
||||
|
||||
/** Stub for sendInput */
|
||||
sendInput = vi.fn();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user