Skip to content

Commit e4e55ca

Browse files
authored
[Fix] Adapter bug fixes and compatibility improvements (#695)
* fix(core): reorder URL concatenation logic to check trailing slash first Move the trailing slash check to the beginning of the concatUrl method to prevent unreachable code and ensure correct URL handling for all apiEndpoint formats. Fixes adapter bug where certain URL patterns were not being handled correctly. * fix(core): improve proxy address compatibility with different Koishi versions Use bracket notation and fallback logic to safely access proxy configuration from ctx.http, supporting both 'config' and 'currentConfig' properties across different Koishi versions. * chore(release): bump version to 1.3.11 Update all package versions to 1.3.11 and bump koishi-plugin-chatluna peer dependency version across all packages to reflect the bug fixes in the adapter and compatibility improvements.
1 parent caf047c commit e4e55ca

28 files changed

Lines changed: 32 additions & 31 deletions

File tree

packages/adapter-azure-openai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
},
5858
"peerDependencies": {
5959
"koishi": "^4.18.9",
60-
"koishi-plugin-chatluna": "^1.3.10"
60+
"koishi-plugin-chatluna": "^1.3.11"
6161
},
6262
"resolutions": {
6363
"@langchain/core": "^0.3.80",

packages/adapter-claude/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
},
6060
"peerDependencies": {
6161
"koishi": "^4.18.9",
62-
"koishi-plugin-chatluna": "^1.3.10"
62+
"koishi-plugin-chatluna": "^1.3.11"
6363
},
6464
"resolutions": {
6565
"@langchain/core": "^0.3.80",

packages/adapter-deepseek/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
},
7272
"peerDependencies": {
7373
"koishi": "^4.18.9",
74-
"koishi-plugin-chatluna": "^1.3.10"
74+
"koishi-plugin-chatluna": "^1.3.11"
7575
},
7676
"koishi": {
7777
"category": "ai",

packages/adapter-dify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
},
7272
"peerDependencies": {
7373
"koishi": "^4.18.9",
74-
"koishi-plugin-chatluna": "^1.3.10"
74+
"koishi-plugin-chatluna": "^1.3.11"
7575
},
7676
"koishi": {
7777
"description": {

packages/adapter-doubao/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
},
7272
"peerDependencies": {
7373
"koishi": "^4.18.9",
74-
"koishi-plugin-chatluna": "^1.3.10"
74+
"koishi-plugin-chatluna": "^1.3.11"
7575
},
7676
"koishi": {
7777
"description": {

packages/adapter-gemini/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
},
7676
"peerDependencies": {
7777
"koishi": "^4.18.9",
78-
"koishi-plugin-chatluna": "^1.3.10",
78+
"koishi-plugin-chatluna": "^1.3.11",
7979
"koishi-plugin-chatluna-storage-service": "^1.0.1"
8080
},
8181
"peerDependenciesMeta": {

packages/adapter-hunyuan/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
},
7272
"peerDependencies": {
7373
"koishi": "^4.18.9",
74-
"koishi-plugin-chatluna": "^1.3.10"
74+
"koishi-plugin-chatluna": "^1.3.11"
7575
},
7676
"koishi": {
7777
"description": {

packages/adapter-ollama/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
},
5555
"peerDependencies": {
5656
"koishi": "^4.18.9",
57-
"koishi-plugin-chatluna": "^1.3.10"
57+
"koishi-plugin-chatluna": "^1.3.11"
5858
},
5959
"resolutions": {
6060
"@langchain/core": "^0.3.80",

packages/adapter-openai-like/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
},
7272
"peerDependencies": {
7373
"koishi": "^4.18.9",
74-
"koishi-plugin-chatluna": "^1.3.10"
74+
"koishi-plugin-chatluna": "^1.3.11"
7575
},
7676
"koishi": {
7777
"description": {

packages/adapter-openai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
},
7272
"peerDependencies": {
7373
"koishi": "^4.18.9",
74-
"koishi-plugin-chatluna": "^1.3.10"
74+
"koishi-plugin-chatluna": "^1.3.11"
7575
},
7676
"koishi": {
7777
"description": {

0 commit comments

Comments
 (0)