@myassis/gateway 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/config/index.js
CHANGED
|
@@ -47,8 +47,8 @@ const getEnvPath = () => {
|
|
|
47
47
|
}
|
|
48
48
|
// 2. pkg 环境:从 snapshot 虚拟路径读取打包的 .env
|
|
49
49
|
if (process.pkg) {
|
|
50
|
-
// __dirname 在 pkg 中指向 /snapshot/
|
|
51
|
-
// 打包的 .env 在 /snapshot/
|
|
50
|
+
// __dirname 在 pkg 中指向 /snapshot/myassis/gateway/dist/config
|
|
51
|
+
// 打包的 .env 在 /snapshot/myassis/gateway/dist/.env
|
|
52
52
|
const snapshotEnvPath = path.resolve(__dirname, '..', '.env');
|
|
53
53
|
if (fs.existsSync(snapshotEnvPath)) {
|
|
54
54
|
return snapshotEnvPath;
|
|
@@ -151,12 +151,18 @@ class LLMClient {
|
|
|
151
151
|
return [{
|
|
152
152
|
role: 'tool',
|
|
153
153
|
tool_call_id: m.tool_call_id,
|
|
154
|
-
content:
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
content: '内容在user里面返回',
|
|
155
|
+
}, {
|
|
156
|
+
role: 'user',
|
|
157
|
+
content: [{
|
|
158
|
+
type: 'text',
|
|
159
|
+
text: '请识别这张屏幕截图,然后继续当前任务'
|
|
160
|
+
}, {
|
|
161
|
+
type: 'image_url',
|
|
162
|
+
image_url: {
|
|
163
|
+
url: `data:image/png;base64,${contentObj.output}`
|
|
164
|
+
}
|
|
165
|
+
}]
|
|
160
166
|
}];
|
|
161
167
|
}
|
|
162
168
|
else {
|