[新服务] google gemini chat deployed via vercel web * netlify proxy

date
Feb 23, 2024
slug
newservice-google-gemini-pro-vercel-netlify
status
Published
summary
新服务-
tags
service
type
Post
URL
notion image

Summary

notion image
notion image

步骤

#netlify proxy https://simonmy.com/posts/使用netlify反向代理google-palm-api.html

export GEMINI_API_KEY=AIzaSyCEyy
curl https://h1-palm-netlify-proxy.netlify.app/v1/models/gemini-pro:generateContent?key={$GEMINI_API_KEY} \
   -H 'Content-Type: application/json' \
   -X POST \
   -d '{ "contents":[
   { "parts":[{"text": "Hi"}]}
   ]
}'
notion image
notion image

vercel

notion image

验证


© Ying Bun 2021 - 2024