opencode-aicodewith-auth 0.1.55 → 0.1.57
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 +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -876,7 +876,7 @@ function sanitizeRequestBody(bodyStr) {
|
|
|
876
876
|
delete body.previous_response_id;
|
|
877
877
|
if (Array.isArray(body.input)) {
|
|
878
878
|
body.input = body.input.filter((item) => item.type !== "item_reference").map((item) => {
|
|
879
|
-
if (item.type === "
|
|
879
|
+
if (item.type === "function_call" || item.type === "local_shell_call" || item.type === "custom_tool_call")
|
|
880
880
|
return item;
|
|
881
881
|
const { id, ...rest } = item;
|
|
882
882
|
return rest;
|
|
@@ -1891,8 +1891,9 @@ var isGeminiUrl = (url) => url.includes(":generateContent") || url.includes(":st
|
|
|
1891
1891
|
var isClaudeUrl = (url) => url.includes("/v1/messages");
|
|
1892
1892
|
var isThirdPartyModel = (model) => Boolean(model && model.endsWith("-third-party"));
|
|
1893
1893
|
var stripThirdPartySuffix = (model) => model.replace(/-third-party$/, "");
|
|
1894
|
-
var
|
|
1895
|
-
var
|
|
1894
|
+
var stripProviderPrefix = (model) => model.includes("/") ? model.split("/").pop() : model;
|
|
1895
|
+
var isModel = (model, prefix) => Boolean(model && stripProviderPrefix(model).startsWith(prefix));
|
|
1896
|
+
var isCodexModel = (model) => Boolean(model && CODEX_MODEL_PREFIXES.some((prefix) => stripProviderPrefix(model).startsWith(prefix)));
|
|
1896
1897
|
var saveResponseIfEnabled = async (response, provider, metadata) => {
|
|
1897
1898
|
if (!SAVE_RAW_RESPONSE_ENABLED)
|
|
1898
1899
|
return response;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-aicodewith-auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.57",
|
|
4
4
|
"description": "OpenCode plugin for AICodewith authentication - Access GPT-5.3 Codex, GPT-5.2, Claude, and Gemini models through AICodewith API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|