@ynhcj/xiaoyi-channel 0.0.86-beta → 0.0.87-beta
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/src/provider.js +1 -1
- package/package.json +1 -1
package/dist/src/provider.js
CHANGED
|
@@ -134,7 +134,7 @@ export const xiaoyiProvider = {
|
|
|
134
134
|
const sessionCtx = getCurrentSessionContext();
|
|
135
135
|
if (sessionCtx?.deviceType) {
|
|
136
136
|
const rawDevice = sessionCtx.deviceType;
|
|
137
|
-
const displayDevice = (rawDevice === "
|
|
137
|
+
const displayDevice = (rawDevice === "2in1") ? "鸿蒙PC" : rawDevice;
|
|
138
138
|
const deviceSection = `\n\n## Current User Device Context\nThe current user is using the following device: ${displayDevice}\n`;
|
|
139
139
|
context.systemPrompt = (context.systemPrompt ?? "") + deviceSection;
|
|
140
140
|
}
|