From 22adae61570910c6abaa13621167845ff7cc65c9 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Wed, 25 Jun 2025 15:43:14 -0700 Subject: [PATCH 1/4] fix: pathname generation --- packages/openai-adapters/src/apis/Azure.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/openai-adapters/src/apis/Azure.ts b/packages/openai-adapters/src/apis/Azure.ts index bbff66592..4d161c843 100644 --- a/packages/openai-adapters/src/apis/Azure.ts +++ b/packages/openai-adapters/src/apis/Azure.ts @@ -63,7 +63,11 @@ export class AzureApi extends OpenAIApi { "`env.apiVersion` is a required configuration property for Azure OpenAI", ); } - url.pathname = `${url.pathname}/openai/deployments/${config.env.deployment}`; + + const basePathname = `openai/deployments/${config.env.deployment}`; + + url.pathname = + url.pathname === "/" ? basePathname : `${url.pathname}/${basePathname}`; queryParams["api-version"] = config.env.apiVersion; } From 066c595ed71e54d7bce374fa984bf69dfa28cefb Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Wed, 25 Jun 2025 15:44:20 -0700 Subject: [PATCH 2/4] test: azure pathname --- .../openai-adapters/src/test/main.test.ts | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/packages/openai-adapters/src/test/main.test.ts b/packages/openai-adapters/src/test/main.test.ts index 1d68a7782..2c8d779b9 100644 --- a/packages/openai-adapters/src/test/main.test.ts +++ b/packages/openai-adapters/src/test/main.test.ts @@ -173,4 +173,80 @@ describe("Configuration", () => { "https://api.example.com", ); }); + + it("should configure Azure OpenAI client with root URL and trailing slash", () => { + const azure = constructLlmApi({ + provider: "azure", + apiKey: "sk-xxx", + apiBase: "https://test-azure-openai.azure.com/", + env: { + deployment: "gpt-4.1", + apiType: "azure-openai", + apiVersion: "2023-05-15", + }, + }); + + // The Azure client modifies the baseURL to include the deployment + expect((azure as OpenAIApi).openai.baseURL).toBe( + "https://test-azure-openai.azure.com/openai/deployments/gpt-4.1", + ); + expect((azure as OpenAIApi).openai.apiKey).toBe("sk-xxx"); + }); + + it("should configure Azure OpenAI client with path and trailing slash", () => { + const azure = constructLlmApi({ + provider: "azure", + apiKey: "sk-xxx", + apiBase: "https://test-azure-openai.azure.com/v1/", + env: { + deployment: "gpt-4.1", + apiType: "azure-openai", + apiVersion: "2023-05-15", + }, + }); + + // The Azure client modifies the baseURL to include the deployment + expect((azure as OpenAIApi).openai.baseURL).toBe( + "https://test-azure-openai.azure.com/v1/openai/deployments/gpt-4.1", + ); + expect((azure as OpenAIApi).openai.apiKey).toBe("sk-xxx"); + }); + + it("should configure Azure OpenAI client with root URL and no trailing slash", () => { + const azure = constructLlmApi({ + provider: "azure", + apiKey: "sk-xxx", + apiBase: "https://test-azure-openai.azure.com", + env: { + deployment: "gpt-4.1", + apiType: "azure-openai", + apiVersion: "2023-05-15", + }, + }); + + // The Azure client modifies the baseURL to include the deployment + expect((azure as OpenAIApi).openai.baseURL).toBe( + "https://test-azure-openai.azure.com/openai/deployments/gpt-4.1", + ); + expect((azure as OpenAIApi).openai.apiKey).toBe("sk-xxx"); + }); + + it("should configure Azure OpenAI client with path and no trailing slash", () => { + const azure = constructLlmApi({ + provider: "azure", + apiKey: "sk-xxx", + apiBase: "https://test-azure-openai.azure.com/v1", + env: { + deployment: "gpt-4.1", + apiType: "azure-openai", + apiVersion: "2023-05-15", + }, + }); + + // The Azure client modifies the baseURL to include the deployment + expect((azure as OpenAIApi).openai.baseURL).toBe( + "https://test-azure-openai.azure.com/v1/openai/deployments/gpt-4.1", + ); + expect((azure as OpenAIApi).openai.apiKey).toBe("sk-xxx"); + }); }); From 5e166803f6930b0f66ed49553157ca6e0964dd52 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Wed, 25 Jun 2025 16:00:44 -0700 Subject: [PATCH 3/4] feat: bump oai version --- core/package-lock.json | 11 ++++++++--- core/package.json | 2 +- packages/openai-adapters/package-lock.json | 4 ++-- packages/openai-adapters/package.json | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/core/package-lock.json b/core/package-lock.json index d33a32ab4..4c7419178 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -16,7 +16,7 @@ "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "file:../packages/openai-adapters", + "@continuedev/openai-adapters": "1.0.42", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", @@ -139,7 +139,7 @@ }, "../packages/config-yaml": { "name": "@continuedev/config-yaml", - "version": "1.0.94", + "version": "1.0.95", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", @@ -150,10 +150,15 @@ "config-yaml": "dist/cli.js" }, "devDependencies": { + "@semantic-release/changelog": "^6.0.3", + "@semantic-release/git": "^10.0.1", + "@semantic-release/github": "^9.2.6", + "@semantic-release/npm": "^10.0.6", "@types/jest": "^29.5.14", "@types/node": "^20.0.0", "cross-env": "^7.0.3", "jest": "^29.7.0", + "semantic-release": "^21.1.2", "ts-jest": "^29.2.3", "ts-node": "^10.9.2", "zod-to-json-schema": "^3.24.5" @@ -161,7 +166,7 @@ }, "../packages/openai-adapters": { "name": "@continuedev/openai-adapters", - "version": "1.0.40", + "version": "1.0.42", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.5", diff --git a/core/package.json b/core/package.json index df74064a8..26278e318 100644 --- a/core/package.json +++ b/core/package.json @@ -53,7 +53,7 @@ "@continuedev/config-yaml": "file:../packages/config-yaml", "@continuedev/fetch": "^1.0.14", "@continuedev/llm-info": "^1.0.8", - "@continuedev/openai-adapters": "file:../packages/openai-adapters", + "@continuedev/openai-adapters": "1.0.42", "@modelcontextprotocol/sdk": "^1.12.0", "@mozilla/readability": "^0.5.0", "@octokit/rest": "^20.1.1", diff --git a/packages/openai-adapters/package-lock.json b/packages/openai-adapters/package-lock.json index c114ee618..a5b0b7f94 100644 --- a/packages/openai-adapters/package-lock.json +++ b/packages/openai-adapters/package-lock.json @@ -1,12 +1,12 @@ { "name": "@continuedev/openai-adapters", - "version": "1.0.40", + "version": "1.0.42", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@continuedev/openai-adapters", - "version": "1.0.40", + "version": "1.0.42", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.5", diff --git a/packages/openai-adapters/package.json b/packages/openai-adapters/package.json index dbbb23789..0b807411a 100644 --- a/packages/openai-adapters/package.json +++ b/packages/openai-adapters/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/openai-adapters", - "version": "1.0.40", + "version": "1.0.42", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", From 11c4c1b96b50faf8f088473479d3d92db1da6ec4 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Wed, 25 Jun 2025 16:02:49 -0700 Subject: [PATCH 4/4] feat: bump extension versions --- extensions/intellij/gradle.properties | 2 +- extensions/vscode/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index 15326353d..4248e25a9 100644 --- a/extensions/intellij/gradle.properties +++ b/extensions/intellij/gradle.properties @@ -3,7 +3,7 @@ pluginGroup=com.github.continuedev.continueintellijextension pluginName=continue-intellij-extension pluginRepositoryUrl=https://github.com/continuedev/continue # SemVer format -> https://semver.org -pluginVersion=1.0.25 +pluginVersion=1.0.26 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild=223 # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 01253be49..f37fe5139 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "1.1.51", + "version": "1.1.52", "repository": { "type": "git", "url": "https://github.com/continuedev/continue"