Release v1.4.3
This commit is contained in:
4
desktop/frontend/wailsjs/go/main/App.d.ts
vendored
4
desktop/frontend/wailsjs/go/main/App.d.ts
vendored
@@ -11,12 +11,16 @@ export function GetConfig():Promise<service.Config>;
|
||||
|
||||
export function GetDetectionInfo():Promise<main.DetectionInfo>;
|
||||
|
||||
export function GetLogs():Promise<Array<main.AppLog>>;
|
||||
|
||||
export function GetModels():Promise<Array<main.ModelInfo>>;
|
||||
|
||||
export function GetRequests():Promise<Array<main.RequestRecord>>;
|
||||
|
||||
export function GetStatus():Promise<main.ProxyStatus>;
|
||||
|
||||
export function GetTokenStats():Promise<main.TokenStats>;
|
||||
|
||||
export function HideWindow():Promise<void>;
|
||||
|
||||
export function MinimizeWindow():Promise<void>;
|
||||
|
||||
@@ -18,6 +18,10 @@ export function GetDetectionInfo() {
|
||||
return window['go']['main']['App']['GetDetectionInfo']();
|
||||
}
|
||||
|
||||
export function GetLogs() {
|
||||
return window['go']['main']['App']['GetLogs']();
|
||||
}
|
||||
|
||||
export function GetModels() {
|
||||
return window['go']['main']['App']['GetModels']();
|
||||
}
|
||||
@@ -30,6 +34,10 @@ export function GetStatus() {
|
||||
return window['go']['main']['App']['GetStatus']();
|
||||
}
|
||||
|
||||
export function GetTokenStats() {
|
||||
return window['go']['main']['App']['GetTokenStats']();
|
||||
}
|
||||
|
||||
export function HideWindow() {
|
||||
return window['go']['main']['App']['HideWindow']();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
export namespace main {
|
||||
|
||||
export class AppLog {
|
||||
time: string;
|
||||
level: string;
|
||||
message: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new AppLog(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.time = source["time"];
|
||||
this.level = source["level"];
|
||||
this.message = source["message"];
|
||||
}
|
||||
}
|
||||
export class DetectionInfo {
|
||||
listenUrl: string;
|
||||
backend: string;
|
||||
@@ -86,6 +102,9 @@ export namespace main {
|
||||
statusCode: number;
|
||||
duration: string;
|
||||
size?: string;
|
||||
inputTokens?: number;
|
||||
outputTokens?: number;
|
||||
totalTokens?: number;
|
||||
reqBody?: string;
|
||||
respBody?: string;
|
||||
|
||||
@@ -102,10 +121,39 @@ export namespace main {
|
||||
this.statusCode = source["statusCode"];
|
||||
this.duration = source["duration"];
|
||||
this.size = source["size"];
|
||||
this.inputTokens = source["inputTokens"];
|
||||
this.outputTokens = source["outputTokens"];
|
||||
this.totalTokens = source["totalTokens"];
|
||||
this.reqBody = source["reqBody"];
|
||||
this.respBody = source["respBody"];
|
||||
}
|
||||
}
|
||||
export class TokenStats {
|
||||
totalRequests: number;
|
||||
successRequests: number;
|
||||
inputTokens: number;
|
||||
outputTokens: number;
|
||||
totalTokens: number;
|
||||
byModel?: Record<string, number>;
|
||||
lastModel?: string;
|
||||
lastUpdated?: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new TokenStats(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.totalRequests = source["totalRequests"];
|
||||
this.successRequests = source["successRequests"];
|
||||
this.inputTokens = source["inputTokens"];
|
||||
this.outputTokens = source["outputTokens"];
|
||||
this.totalTokens = source["totalTokens"];
|
||||
this.byModel = source["byModel"];
|
||||
this.lastModel = source["lastModel"];
|
||||
this.lastUpdated = source["lastUpdated"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -128,6 +176,8 @@ export namespace service {
|
||||
ShellType: string;
|
||||
SessionMode: string;
|
||||
Timeout: number;
|
||||
RemoteFallbackEnabled: boolean;
|
||||
RemoteFallbackModels: string[];
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new Config(source);
|
||||
@@ -151,6 +201,8 @@ export namespace service {
|
||||
this.ShellType = source["ShellType"];
|
||||
this.SessionMode = source["SessionMode"];
|
||||
this.Timeout = source["Timeout"];
|
||||
this.RemoteFallbackEnabled = source["RemoteFallbackEnabled"];
|
||||
this.RemoteFallbackModels = source["RemoteFallbackModels"];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user