File tree Expand file tree Collapse file tree 6 files changed +13
-6
lines changed Expand file tree Collapse file tree 6 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments