init demo

This commit is contained in:
2025-04-04 23:17:03 +08:00
parent c2877c3d3b
commit a225bd4f16
39 changed files with 1426 additions and 102 deletions

View File

@@ -0,0 +1,9 @@
// https://api-inference.modelscope.cn/v1/
import { BaseChat, BaseChatOptions } from '../core/chat.ts';
export type ModelScopeOptions = Partial<BaseChatOptions>;
export class ModelScope extends BaseChat {
constructor(options: ModelScopeOptions) {
super({ baseURL: 'https://api-inference.modelscope.cn/v1/', ...options } as any);
}
}