generated from tailored/app-template
feat: center change
This commit is contained in:
@@ -4,6 +4,7 @@ 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);
|
||||
const baseURL = options.baseURL || 'https://api-inference.modelscope.cn/v1/';
|
||||
super({ ...options, baseURL: baseURL } as any);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user