feat: workspace→session picker and /model switch (v0.3.0)
Align Telegram session list with Web via apiProxy (exclude archived), resume cold sessions on bind, and allow model selection from the phone. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Vendored
+34
@@ -0,0 +1,34 @@
|
||||
import type { Context } from '@deepseek-ai/cordis';
|
||||
export interface ModelOption {
|
||||
provider: string;
|
||||
model: string;
|
||||
label: string;
|
||||
efforts?: Array<{
|
||||
id: string;
|
||||
name: string;
|
||||
}>;
|
||||
}
|
||||
export interface ModelSnapshot {
|
||||
current: {
|
||||
provider: string;
|
||||
model: string;
|
||||
reasoningEffort?: string;
|
||||
};
|
||||
routable: boolean;
|
||||
options: ModelOption[];
|
||||
}
|
||||
export declare function loadSessionModels(ctx: Context, sessionId: string): Promise<ModelSnapshot>;
|
||||
export declare function selectSessionModel(ctx: Context, sessionId: string, selection: {
|
||||
provider: string;
|
||||
model: string;
|
||||
reasoningEffort?: string;
|
||||
}): Promise<{
|
||||
provider: string;
|
||||
model: string;
|
||||
reasoningEffort?: string;
|
||||
}>;
|
||||
export declare function formatModel(sel: {
|
||||
provider: string;
|
||||
model: string;
|
||||
reasoningEffort?: string;
|
||||
}): string;
|
||||
Reference in New Issue
Block a user