This commit is contained in:
maxwell 2025-01-15 09:13:32 +08:00
parent 5f6121690d
commit 48a889f67e
3 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,4 @@
# rename to .env and fill in the values
TENCENT_SECRET_ID=YOUR_ID TENCENT_SECRET_ID=YOUR_ID
TENCENT_SECRET_KEY=YOUR_SECRET TENCENT_SECRET_KEY=YOUR_SECRET
GEMINI_API_KEY=YOUR_GEMINI_API_KEY GEMINI_API_KEY=YOUR_GEMINI_API_KEY

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.env

View File

@ -21,8 +21,8 @@
``` ```
- 返回识别结果。 - 返回识别结果。
8. google gemini的api key"AIzaSyBn6R7JWK8z58cETrHoXIbdJQ6x7QUR14o" 8. google gemini的api key"your key"
9. tencentSecretId = "AKIDwuhKk2EEF9pJdmjgV9ZozzGPL8vgXR9e",tencentSecretKey = "Kf0Md3Uix2yiMrMk03ucAVdfVAev6DDI" 9. tencentSecretId = "your id",tencentSecretKey = "your secret"
10. key存储在.env文件中使用dotenv库进行加载。 10. key存储在.env文件中使用dotenv库进行加载。
11. go的示例代码如下 11. go的示例代码如下