File tree 3 files changed +12
-6
lines changed
src/agentcraft-all/agentcraft-fe
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Effective: Public
5
5
Name : AgentCraft
6
6
Provider :
7
7
- 阿里云
8
- Version : 0.0.21 # dev0.0.61
8
+ Version : 0.0.23 # dev0.0.61
9
9
Description : 基于Serverless架构的开源智能体平台,可以快速构建构内容提取、知识库、图文生成助手等智能应用
10
10
HomePage : https://github.com/devsapp/agentcraft
11
11
Tags : # 标签详情
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export function WorkSpace({
18
18
return (
19
19
< >
20
20
< Text className = { styles . title } >
21
- { parentPath ? 'Ai ' : '爱无限引擎 ' }
21
+ { parentPath ? 'AC ' : 'AgentCraft ' }
22
22
</ Text >
23
23
{ parentPath ? (
24
24
< Box mt = { 12 } className = { styles [ 'workspace-short' ] } >
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ function checkAppStatus(appName: string): Promise<any> {
115
115
}
116
116
117
117
export async function createFoundationModelOnly ( payload : any ) {
118
-
118
+
119
119
const createAppPayload = {
120
120
description : payload . description ,
121
121
region : payload . region ,
@@ -137,12 +137,18 @@ export async function createFoundationModelOnly(payload: any) {
137
137
export async function checkFoundationModelStatusAndLLMProxy ( appName : string , payload : any ) {
138
138
139
139
const appInfo = await checkAppStatus ( appName ) ;
140
- const domainData : any = appInfo ?. output ?. deploy [ 'domain' ] ;
141
- const appUrl = domainData . domainName ;
140
+ // const domainData: any = appInfo?.output?.deploy['domain'];
141
+ // const appUrl = domainData.domainName;
142
+ let system_url = '' ;
143
+ try {
144
+ system_url = appInfo ?. output ?. deploy ?. apiServer ?. url ?. system_url ;
145
+ } catch ( e ) {
146
+ console . log ( e ) ;
147
+ }
142
148
const llmProxyPayload = {
143
149
name : payload . model ,
144
150
name_alias : payload . name_alias ,
145
- url : `http:// ${ appUrl } /v1/chat/completions` ,
151
+ url : `${ system_url } /v1/chat/completions` ,
146
152
token : '' ,
147
153
description : '' ,
148
154
timeout : 600
You can’t perform that action at this time.
0 commit comments