Fix type errors.

This commit is contained in:
Zhuoran
2024-08-20 08:44:09 +08:00
parent a3b6654cbb
commit fd26e5635d
7 changed files with 28 additions and 7 deletions
+1
View File
@@ -913,6 +913,7 @@ export interface ModelConfig {
export interface ModelMeta {
description?: string;
capabilities?: object;
profile_image_url?: string;
}
export interface ModelParams {}
+1 -1
View File
@@ -396,7 +396,7 @@ export const deleteModel = async (token: string, tagName: string, urlIdx: string
return res;
};
export const pullModel = async (token: string, tagName: string, urlIdx: string | null = null) => {
export const pullModel = async (token: string, tagName: string, urlIdx: number | null = null) => {
let error = null;
const controller = new AbortController();