File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
packages/integrations/src/model-provider/deepseek Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 22 "mode" : " pre" ,
33 "tag" : " beta" ,
44 "initialVersions" : {
5- "@astack-tech/components" : " 0.1.0" ,
6- "@astack-tech/core" : " 0.1.0" ,
7- "@astack-tech/integrations" : " 0.1.0 " ,
8- "@astack-tech/tools" : " 0.1.0"
5+ "@astack-tech/components" : " 0.1.1-beta. 0" ,
6+ "@astack-tech/core" : " 0.1.1-beta. 0" ,
7+ "@astack-tech/integrations" : " 0.1.1-beta.2 " ,
8+ "@astack-tech/tools" : " 0.1.1-beta. 0"
99 },
1010 "changesets" : [
1111 " metal-corners-trade" ,
Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ export interface DeepseekConfig {
5757 * 使用 OpenAI 兼容的工具定义格式
5858 */
5959 tools ?: unknown [ ] ;
60+
61+ /**
62+ * dangerouslyAllowBrowser
63+ * 是否允许在浏览器等非安全环境内运行
64+ */
65+ dangerouslyAllowBrowser ?: boolean ;
6066}
6167
6268/**
@@ -141,6 +147,7 @@ class Deepseek extends Component {
141147 this . client = new OpenAI ( {
142148 apiKey : config . apiKey ,
143149 baseURL : config . baseURL || 'https://api.deepseek.com/v1' ,
150+ dangerouslyAllowBrowser : config . dangerouslyAllowBrowser ?? false ,
144151 } ) ;
145152
146153 // 保存基本配置
You can’t perform that action at this time.
0 commit comments