babaohuang / GeminiProChat

Minimal web UI for GeminiPro.
https://geminiprochat.com
MIT License
4.25k stars 12.33k forks source link

联网时间错误? #58

Closed 006lp closed 5 months ago

006lp commented 8 months ago

What operating system are you using?

Android

What browser are you using?

Chrome

Describe the bug

我部署在vercel上,因为gemini pro是联网的,但时间似乎有问题? Screenshot_2023-12-21-13-59-11-53_a252b927494330cdc2c8ba3b3f952e5e

What prompt did you enter?

No response

Console Logs

No response

Participation

antergone commented 8 months ago

别猜,根据google的文档,你直接访问API试试就知道了。

curl https://generativelanguage.googleapis.com/v1/models/gemini-pro:streamGenerateContent?key={TOKEN}&alt=sse \
    -H 'Content-Type: application/json' \
    --no-buffer \
    -d '{ "contents":[
            {"role": "user",
              "parts":[{"text": "现在时间"}]
            }
          ]
        }' > response.json
babaohuang commented 8 months ago

gemini pro api是不联网的,就算是GPT4的API也这样

006lp commented 8 months ago

感谢

lzfcc-china commented 2 months ago

ME TOO