Skip to content

Commit

Permalink
fix: Gemini 500
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazee6 committed Jun 4, 2024
1 parent 10d8b85 commit c572961
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 34 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN npm i -g [email protected]

COPY package.json ./

COPY patches ./patches
#COPY patches ./patches

RUN pnpm install

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ https://developers.cloudflare.com/workers-ai/models/
| CF_TOKEN | Cloudflare Workers AI Token |
| CF_GATEWAY | Cloudflare AI Gateway URL |
| OPENAI_API_KEY | OpenAI API Key (需要ChatGPT时填写) |
| G_API_KEY | Google AI API Key (需要GeminiPro时填写) |
| G_API_KEY | Google AI API Key (需要GeminiPro时填写) |
| PASSWORD | 访问密码 (可选) |

#### CF_TOKEN
Expand All @@ -64,6 +64,8 @@ https://dash.cloudflare.com/profile/api-tokens
- 单击创建令牌
- 复制您的令牌,设置环境变量

示例:https://gateway.ai.cloudflare.com/v1/A484BCC718B10B73022BFE2D9AB49776/myai

#### CF_GATEWAY

https://dash.cloudflare.com/
Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,5 @@
"highlight.js": "^11.9.0",
"markdown-it": "^14.1.0"
},
"packageManager": "[email protected]+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0",
"pnpm": {
"patchedDependencies": {
"@google/[email protected]": "patches/@[email protected]"
}
}
"packageManager": "[email protected]+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0"
}
26 changes: 0 additions & 26 deletions patches/@[email protected]

This file was deleted.

0 comments on commit c572961

Please sign in to comment.