@ynhcj/xiaoyi-channel 0.0.86-beta → 0.0.88-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 +2 -2
- package/package.json +1 -1
package/dist/src/provider.js
CHANGED
|
@@ -134,8 +134,8 @@ export const xiaoyiProvider = {
|
|
|
134
134
|
const sessionCtx = getCurrentSessionContext();
|
|
135
135
|
if (sessionCtx?.deviceType) {
|
|
136
136
|
const rawDevice = sessionCtx.deviceType;
|
|
137
|
-
const displayDevice = (rawDevice === "
|
|
138
|
-
const deviceSection = `\n\n## Current User Device Context\nThe current user is using the following device: ${displayDevice}\n
|
|
137
|
+
const displayDevice = (rawDevice === "2in1") ? "鸿蒙PC" : rawDevice;
|
|
138
|
+
const deviceSection = `\n\n## Current User Device Context\nThe current user is using the following device: ${displayDevice}\nYou need to be aware of the user’s current device and provide guidance accordingly. If the response involves device-related tools or actions, you must tailor the reply based on the user’s current device, using device-specific references such as “saved to the Notes/Calendar on your {deviceType}.\n”`;
|
|
139
139
|
context.systemPrompt = (context.systemPrompt ?? "") + deviceSection;
|
|
140
140
|
}
|
|
141
141
|
const stream = await underlying(model, context, {
|