PublicAffairs / openai-gemini

Gemini ➜ OpenAI API proxy. Serverless!
https://my-openai-gemini-demo.vercel.app/
MIT License
382 stars 238 forks source link

choice model in post request #10

Closed llimonix closed 4 months ago

llimonix commented 5 months ago

json_data = { 'messages': [ { 'role': 'user', 'content': 'Как дела', }, ], 'model': 'gemini-1.5-flash-latest', 'temperature': 1, 'top_p': 1, 'stream': False, } or json_data = { 'messages': [ { 'role': 'user', 'content': 'Как дела', }, ], 'model': 'gemini-1.5-pro-latest', 'temperature': 1, 'top_p': 1, 'stream': False, }

netlify[bot] commented 5 months ago

Deploy Preview for gemini-pro ready!

Name Link
Latest commit ab93054249383a7f73a2dccc791006db8eed0f12
Latest deploy log https://app.netlify.com/sites/gemini-pro/deploys/6668294f58079a0008939a4e
Deploy Preview https://deploy-preview-10--gemini-pro.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

johnd0e commented 4 months ago

https://github.com/PublicAffairs/openai-gemini/commit/81416be041e443c0bcdb1cfc08cbf49a1e5b0e33