flipboard.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Welcome to Flipboard on Mastodon. A place for our community of curators and enthusiasts to inform and inspire each other. If you'd like to join please request an invitation via the sign-up page.

Administered by:

Server stats:

1.2K
active users

#gemini

82 posts71 participants4 posts today

🌘 使用 TypeScript 在 Gemini API 中搭配 OpenAI 後備方案
➤ 提升應用程式的穩定性:Gemini 與 OpenAI 的無縫整合
sometechblog.com/posts/try-gem
本文介紹瞭如何在 TypeScript 中使用 Gemini API,並設定 OpenAI 作為後備方案,以應對 Gemini API 的速率限制。作者分享了透過 OpenAI 的 TS/JS 函式庫和自定義輔助函式實現此功能的具體方法,特別是針對 Gemini gemini-2.5-pro-exp-03-25 模型每分鐘僅支援 20 個請求的限制。文章提供了具體的程式碼範例,包括定義模型類型、建立 `getCompletion` 和 `getJSONCompletion` 輔助函式,以及如何使用它們進行 API 調用。
+ 這個方法真的很有用!我一直擔心 Gemini 的速率限制問題,現在有了 OpenAI 作為
#開發 #API #Gemini #OpenAI #TypeScript

sometechblog.comUse the Gemini API with OpenAI fallback in Typescript - sometechblog.comIf you want to use Gemini’s public API, but at the same time have a safe fallback in case you have exhausted the rate limits, you can use the OpenAI TS/JS library and a few helper functions. In my particular case I needed a type-safe solution for a chartmaker app with a fallback since Gemini’s gemini-2.5-pro-exp-03-25 model is restricted to 20 request/min. First, you need to define which models you want to use so that they appear as autosuggest when you use the helper functions:

🤖 AI
🔴 Gemini 2.5 Pro: Google’s AI Gets “Good Vibes”

🔸 Faster, more factual & engaging than earlier Gemini models.
🔸 Uses “Dynamic Thinking” to avoid overthinking simple prompts.
🔸 Ranks top on LM Arena; aims to match ChatGPT’s appeal.
🔸 Transparency still lacking: no model card or technical report yet.

#Google#Gemini#AI

I hope I live to see the day when #AI synthetic #knowledge is treated as a fundamental #human right, a "public utility" whose tap cannot be controlled to censor free expression and thought.

Today is not that day. From #Google #Gemini refusing to give contact info for public officials under the guise of #privacy to #Alibaba #Qwen TOS giving it the right to censor "inappropriate" text it freely harvested for its "open source" models, like this prompt about China's "notorious" gaokao testing 😔