generated from tailored/app-template
init demo
This commit is contained in:
9
src/provider/chat-adapter/model-scope.ts
Normal file
9
src/provider/chat-adapter/model-scope.ts
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user