Skip to content

Commit 64ca9a6

Browse files
committed
🔖 Release v0.11.0
1 parent 863f140 commit 64ca9a6

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

changelog.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
# changelog
22

3-
## 0.11.0 (Unreleased)
3+
## 0.12.0 (Unreleased)
44

55
-
66

7+
## 0.11.0 (2024-04-11)
8+
9+
- Resolve CORS error: Update server configurations to enable Cross-Origin access.
10+
- Add support for function calls in non-stream mode.
11+
- Migrate to [itty-router](https://github.com/kwhitley/itty-router) to reduce package size.
12+
- Utilize the official Deno Docker image for improved consistency.
13+
714
## 0.10.0 (2024-02-28)
815

916
- gemini-openai-proxy can now act as a reverse proxy for google gemini, which

dist/main_bun.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function genModel(req) {
154154
temperature: req.temperature ?? void 0,
155155
topP: req.top_p ?? void 0
156156
},
157-
tools: [
157+
tools: functions.length === 0 ? void 0 : [
158158
{
159159
functionDeclarations: functions
160160
}

dist/main_cloudflare-workers.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function genModel(req) {
154154
temperature: req.temperature ?? void 0,
155155
topP: req.top_p ?? void 0
156156
},
157-
tools: [
157+
tools: functions.length === 0 ? void 0 : [
158158
{
159159
functionDeclarations: functions
160160
}

dist/main_deno.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function genModel(req) {
154154
temperature: req.temperature ?? void 0,
155155
topP: req.top_p ?? void 0
156156
},
157-
tools: [
157+
tools: functions.length === 0 ? void 0 : [
158158
{
159159
functionDeclarations: functions
160160
}

dist/main_node.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ function genModel(req) {
548548
temperature: req.temperature ?? void 0,
549549
topP: req.top_p ?? void 0
550550
},
551-
tools: [
551+
tools: functions.length === 0 ? void 0 : [
552552
{
553553
functionDeclarations: functions
554554
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"start:deno": "deno run --allow-net --allow-env main_deno.ts",
1212
"start:node": "npm run build:node && node dist/main_node.mjs",
1313
"build:bun": "bun run build.mjs",
14-
"build:deno": "deno run --allow-read --allow-env --allow-run build.mjs",
14+
"build:deno": "deno run --allow-read --allow-env --allow-write=./dist --allow-run build.mjs",
1515
"build:node": "node build.mjs",
1616
"test:deno": "deno test --allow-net --allow-env",
1717
"test-cov": "deno test --coverage -A --env && deno coverage coverage --lcov --output=coverage/lcov.info",

0 commit comments

Comments
 (0)