opencode-qwen-cli-auth 1.0.2 → 1.0.3
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/index.js +0 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -161,20 +161,6 @@ export const QwenAuthPlugin = async (_input) => {
|
|
|
161
161
|
},
|
|
162
162
|
],
|
|
163
163
|
},
|
|
164
|
-
/**
|
|
165
|
-
* Them header X-DashScope-AuthType cho Portal API (OAuth)
|
|
166
|
-
* CLI goc gui header nay de server nhan biet auth method
|
|
167
|
-
*/
|
|
168
|
-
"chat.headers": async (input, output) => {
|
|
169
|
-
try {
|
|
170
|
-
if (input?.provider?.info?.id === PROVIDER_ID && output?.headers) {
|
|
171
|
-
output.headers["X-DashScope-AuthType"] = "qwen-oauth";
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
catch (_) {
|
|
175
|
-
// Khong de loi hook lam treo request
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
164
|
};
|
|
179
165
|
};
|
|
180
166
|
export default QwenAuthPlugin;
|
package/package.json
CHANGED