Skip to content

Commit 7b3c89f

Browse files
committed
feat: Update the novice guide llm deployment package
1 parent 210e472 commit 7b3c89f

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

publish.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Effective: Public
55
Name: AgentCraft
66
Provider:
77
- 阿里云
8-
Version: 0.0.21 #dev0.0.61
8+
Version: 0.0.23 #dev0.0.61
99
Description: 基于Serverless架构的开源智能体平台,可以快速构建构内容提取、知识库、图文生成助手等智能应用
1010
HomePage: https://github.com/devsapp/agentcraft
1111
Tags: #标签详情

src/agentcraft-all/agentcraft-fe/features/workspace/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function WorkSpace({
1818
return (
1919
<>
2020
<Text className={styles.title}>
21-
{parentPath ? 'Ai' : '爱无限引擎'}
21+
{parentPath ? 'AC' : 'AgentCraft'}
2222
</Text>
2323
{parentPath ? (
2424
<Box mt={12} className={styles['workspace-short']}>

src/agentcraft-all/agentcraft-fe/store/quickStart.ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function checkAppStatus(appName: string): Promise<any> {
115115
}
116116

117117
export async function createFoundationModelOnly(payload: any) {
118-
118+
119119
const createAppPayload = {
120120
description: payload.description,
121121
region: payload.region,
@@ -137,12 +137,18 @@ export async function createFoundationModelOnly(payload: any) {
137137
export async function checkFoundationModelStatusAndLLMProxy(appName: string, payload: any) {
138138

139139
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+
}
142148
const llmProxyPayload = {
143149
name: payload.model,
144150
name_alias: payload.name_alias,
145-
url: `http://${appUrl}/v1/chat/completions`,
151+
url: `${system_url}/v1/chat/completions`,
146152
token: '',
147153
description: '',
148154
timeout: 600

0 commit comments

Comments
 (0)