diff --git a/.env b/.envsample similarity index 60% rename from .env rename to .envsample index 5e6b345..d2f6160 100644 --- a/.env +++ b/.envsample @@ -1,3 +1,4 @@ +# rename to .env and fill in the values TENCENT_SECRET_ID=YOUR_ID TENCENT_SECRET_KEY=YOUR_SECRET GEMINI_API_KEY=YOUR_GEMINI_API_KEY diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/README.md b/README.md index cad3514..b9c3658 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ ``` - 返回识别结果。 -8. google gemini的api key:"AIzaSyBn6R7JWK8z58cETrHoXIbdJQ6x7QUR14o" -9. tencentSecretId = "AKIDwuhKk2EEF9pJdmjgV9ZozzGPL8vgXR9e",tencentSecretKey = "Kf0Md3Uix2yiMrMk03ucAVdfVAev6DDI" +8. google gemini的api key:"your key" +9. tencentSecretId = "your id",tencentSecretKey = "your secret" 10. key存储在.env文件中,使用dotenv库进行加载。 11. go的示例代码如下: