@ashsec/copilot-api 0.11.2 → 0.11.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/main.js +2 -1
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -21,7 +21,7 @@ import util from "node:util";
|
|
|
21
21
|
|
|
22
22
|
//#region package.json
|
|
23
23
|
var name = "@ashsec/copilot-api";
|
|
24
|
-
var version = "0.11.
|
|
24
|
+
var version = "0.11.3";
|
|
25
25
|
var description = "Turn GitHub Copilot into OpenAI/Anthropic API compatible server. Usable with Claude Code!";
|
|
26
26
|
var keywords = [
|
|
27
27
|
"proxy",
|
|
@@ -1764,6 +1764,7 @@ const awaitApproval = async () => {
|
|
|
1764
1764
|
*/
|
|
1765
1765
|
function normalizeModelName(model) {
|
|
1766
1766
|
let normalized = model.replace("[1m]", "-1m");
|
|
1767
|
+
normalized = normalized.replace(/-\d{8}$/, "");
|
|
1767
1768
|
normalized = normalized.replaceAll(/(\d)-(\d)/g, (_, p1, p2) => `${p1}.${p2}`);
|
|
1768
1769
|
return normalized;
|
|
1769
1770
|
}
|