Skip to main content

知子莫若子

用Gemini部署Discourse的AI,翻看Google家的官方文檔https://ai.google.dev/docs/gemini_api_overview#curl_3,沒看明白Multi-turn conversations (chat)與Streamed responses的區別,於是找GPT-4:

如說。
於是,以子之矛攻子之矛:

這就清清楚楚了。

https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent
https://generativelanguage.googleapis.com/v1/models/gemini-pro:streamGenerateContent

直接beta了就:
https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent

Comments