-
Notifications
You must be signed in to change notification settings - Fork 1
/
plamApi.gs
98 lines (85 loc) · 87.8 KB
/
plamApi.gs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/**
* @reference: https://script.google.com/home/projects/1Rj7gfZPzVs6QBw-pOmtzT1nkmQuz0PfF-cb1xrfxiTvnUeiK5SbFU0b7/edit?pli=1
* OAuth2: 1B7FSrk5Zi6L1rSxxTDgDEUsPzlukDsi4KGuTMorsTQHhGBzBkMun4iDF
*/
function getGCPService() {
return OAuth2.createService('GCP')
// Set the endpoint URL.
.setTokenUrl('https://accounts.google.com/o/oauth2/token')
// Set the private key and issuer.
.setPrivateKey(SERVICE_ACCOUNT_PRIVATE_KEY)
.setIssuer(SERVICE_ACCOUNT_EMAIL)
// Set the property store where authorized tokens should be persisted.
.setPropertyStore(PropertiesService.getScriptProperties())
// Set the scope. This must match one of the scopes configured during the
// setup of domain-wide delegation.
.setScope(['https://www.googleapis.com/auth/cloud-platform']);
}
async function generateFBText(content) {
var service = getGCPService();
if (!service.hasAccess()) {
console.log(service.getLastError());
return 'Sorry, something went wrong accessing GCP.';
}
var accessToken = service.getAccessToken();
var url = `https://${API_ENDPOINT}/v1/projects/${PROJECT_ID}/locations/${LOCATION_ID}/publishers/google/models/${MODEL_ID}:streamGenerateContent`;
// Make a POST request with a JSON payload.
var data = {
"contents": [
{
"role": "user",
"parts": [
{
"text": "note that I want output without any comment or markdown\n請以此為前提使用繁體中文濃縮下面文章為\n\n幫我抓出這篇文章的標題,十五個字以內\n400字左右的摘要\n以 #標籤 #標籤 #標籤 #標籤 #標籤 的格式在一行中給我五個與這篇文章有關的標籤\n\ninput: Posted by the IDX team\n\n\n\n\n\nSix months ago, we launched Project IDX, an experimental, cloud-based workspace for full-stack, multiplatform software development. We built Project IDX to simplify and streamline the developer workflow, aiming to reduce the sea of complexities traditionally associated with app development. It certainly seems like we've piqued your interest, and we love seeing what IDX has helped you build.\n\nFor example, we recently learned about Tanaki, an AI-enhanced content creation app built using Project IDX:\n\n\n\nPasquale D’Silva one of the developers that built Tanaki, said:\n\n\"Using the IDX shared workspace to build Tanaki has been so fun. It allows our remote team of imagineers to build together in one place. It is a magic collaboration portal!\"\n\nDevelopers at Google have also been using IDX internally to help speed up development across various projects. One example is the the Firebase Blog, where the full authoring, development, and deployment of the Astro-powered project is handled using IDX:\n\n\n\nAnother interesting project leveraging IDX’s extensibility model is Malloy, a new open-source data language available as a VS Code extension that operates against databases like BigQuery:\n\n\n\n\nLloyd Tabb, a Distinguished Software Engineer at Google, told us:\n\n“I use IDX with the Malloy project. I often have several different data projects going simultaneously and IDX lets me quickly spin up an instance to solve a problem and it is trivial to configure.\"\n\nIf you want to share what IDX has helped you build, use the #ProjectIDX tag on X.\n\nWhat’s new in IDX?\n\nIn addition to seeing how you’re using IDX, a key part of building Project IDX is your feedback, so we’ve continued to roll out features for you to test. We're excited to share the latest updates we've implemented to expedite and streamline multiplatform app development, so you can deliver with speed, ease and quality.\n \nPreview your app directly in IDX with our iOS simulator and Android emulator\n\nWe’re bringing the iOS Simulator and Android Emulator to the browser. Whether you’re building a Flutter or web app, Project IDX now allows you to preview your applications without having to leave your workspace. When you use a Flutter or web template, Project IDX intelligently loads the right preview environment for your application — Safari mobile and Chrome for web templates, or Android, iOS, and Chrome for Flutter templates. \n\n\n\nIDX’s web and Android emulators allow you to develop, test, and debug directly from your workspace, consolidating your multi-step, multiplatform process into one place. With iOS simulation you can spot-check your app's layout and behavior while you work. This feature is still experimental, so be sure to test it out and send us feedback. \n\nGet started fast with a rich library of project templates\n\nFour of our top ten feature requests have been to support more templates, so we’re pleased to share that we’ve added new templates for Astro, Go, Python/Flask, Qwik, Lit, Preact, Solid.js, and Node.js. Use these templates to jump right into your project so you can spend less time setting up and more time creating. \n\nCheck out our new and improved template gallery\n\nOf course you can still import your own repo from GitHub, directly from your local files, or you can choose your own setup using a custom Nix environment.\n\nQuickly build and customize your IDX workspace with improvements to Nix \n\n\n\nIDX uses Nix to define the environment configuration for each workspace to give you flexibility and extensibility in IDX – even our templates and previews are configured using Nix to ensure they’re working correctly inside IDX. We’re continuously working on Nix improvements to help boost your productivity, so now you can:\n\nCustomize IDX starter templates easily by leveraging Nix extensibility.\n\nReduce the likelihood of errors and write code more efficiently with Nix file editing, including support for syntax highlighting, error detection, and suggested code completions.\n\nRecover from broken configurations quickly and avoid unnecessary rebuild attempts with major improvements to our environment customization workflow, including seamless environment rebuilds and troubleshooting.\n\n\nEasily build, test, and deploy apps with additional new IDX features and resources\n\n\n\n\nAuto-detect network ports needed for applications or services and adjust the firewall settings to permit ingress and egress without any additional configuration on your end.\n\nInstantly run command-line tools, scripts, and utilities directly within workspace without the need to install them locally on your machine. \n\nSimplify the process of working with Docker containers and images directly from the development environment by enabling Docker in your dev.nix file.\n\n\n\nAI launched in 15 new regions\n\n\n\nWe’ve launched our AI capabilities in the following 15 countries: India, Australia, Israel, Brazil, Mexico, Colombia, Argentina, Peru, Chile, Singapore, Bangladesh, Pakistan, Canada, Japan, and South Korea. More countries will be enabled with AI access soon – indicate your interest for AI expansion in this feature tracking post and stay tuned for more AI updates.\n\nImproving together \n\nWe're constantly working on adding new capabilities to help you do higher quality work, more efficiently, with less friction. We’ve addressed dozens of your feature requests and fixed a multitude of bugs you flagged for us, so thank you for your continued support and engagement – please keep the feedback coming by filing bugs and feature requests.\n\nFor walkthroughs and more information on all the features mentioned above, check out our documentation page. If you haven’t already, visit our website to sign up to try Project IDX and join us on our journey. Also, be sure to check out our new Project IDX Blog for the latest product announcements and updates from the team. \n\nWe can’t wait to see what you create with Project IDX!\noutput: 【Project IDX 近期新更新到來】\n\nProject IDX 是一個實驗性的雲端工作區,用於全端、多平台軟體開發。目標是簡化和優化開發人員的工作流程,減少傳統上與應用程序開發相關的複雜性。\n\n近期新的更新包括:\n\n* 在瀏覽器中使用 iOS 模擬器和 Android 模擬器,無需離開工作區即可預覽應用程序。\n* 新的模板庫,包括 Astro、Go、Python/Flask、Qwik、Lit、Preact、Solid.js 和 Node.js,可快速開始項目。\n* 使用 Nix 進行改進,以便更輕鬆地自定義 IDX 工作區。\n* 新的 IDX 功能,例如自動檢測網路埠、執行命令行工具以及直接與 Docker 容器和映像一起工作。\n* AI 功能已在 15 個新的地區推出,包括印度、澳大利亞、以色列、巴西、墨西哥等。\n\nProject IDX 仍在不斷改進中,歡迎開發人員提供意見和建議,以幫助我們構建更好的開發環境。有關更多信息,請訪問 Project IDX 網站。 \n\n#IDX #Nix #全端 #模擬器 #工作流\n\ninput: Last week, we announced Gemini, our largest and most capable AI model and the next step in our journey to make AI more helpful for everyone. It comes in three sizes: Ultra, Pro and Nano. We've already started rolling out Gemini in our products: Gemini Nano is in Android, starting with Pixel 8 Pro, and a specifically tuned version of Gemini Pro is in Bard.Today, we’re making Gemini Pro available for developers and enterprises to build for your own use cases, and we’ll be further fine-tuning it in the weeks and months ahead as we listen and learn from your feedback.Gemini Pro is available todayThe first version of Gemini Pro is now accessible via the Gemini API and here’s more about it:Gemini Pro outperforms other similarly-sized models on research benchmarks.Today’s version comes with a 32K context window for text, and future versions will have a larger context window.It’s free to use right now, within limits, and it will be competitively priced.It comes with a range of features: function calling, embeddings, semantic retrieval and custom knowledge grounding, and chat functionality.It supports 38 languages across 180+ countries and territories worldwide.In today’s release, Gemini Pro accepts text as input and generates text as output. We’ve also made a dedicated Gemini Pro Vision multimodal endpoint available today that accepts text and imagery as input, with text output.SDKs are available for Gemini Pro to help you build apps that run anywhere. Python, Android (Kotlin), Node.js, Swift and JavaScript are all supported.Gemini Pro has SDKs that help you build apps that run anywhere.Google AI Studio: The fastest way to build with GeminiGoogle AI Studio is a free, web-based developer tool that enables you to quickly develop prompts and then get an API key to use in your app development. You can sign into Google AI Studio with your Google account and take advantage of the free quota, which allows 60 requests per minute — 20x more than other free offerings. When you’re ready, you can simply click on “Get code” to transfer your work to your IDE of choice, or use one of the quickstart templates available in Android Studio, Colab or Project IDX. To help us improve product quality, when you use the free quota, your API and Google AI Studio input and output may be accessible to trained reviewers. This data is de-identified from your Google account and API key.Google AI Studio is a free, web-based developer tool that enables you to quickly develop prompts and then get an API key to use in your app development.Build with Vertex AI on Google CloudWhen it's time for a fully-managed AI platform, you can easily transition from Google AI Studio to Vertex AI, which allows for customization of Gemini with full data control and benefits from additional Google Cloud features for enterprise security, safety, privacy and data governance and compliance.With Vertex AI, you will have access to the same Gemini models, and will be able to:Tune and distill Gemini with your own company’s data, and augment it with grounding to include up-to-minute information and extensions to take real-world actions.Build Gemini-powered search and conversational agents in a low code / no code environment, including support for retrieval-augmented generation (RAG), blended search, embeddings, conversation playbooks and more.Deploy with confidence. We never train our models on inputs or outputs from Google Cloud customers. Your data and IP are always your data and IP.To read more about our new Vertex AI capabilities, visit the Google Cloud blog.Gemini Pro pricingRight now, developers have free access to Gemini Pro and Gemini Pro Vision through Google AI Studio, with up to 60 requests per minute, making it suitable for most app development needs. Vertex AI developers can try the same models, with the same rate limits, at no cost until general availability early next year, after which there will be a charge per 1,000 characters or per image across Google AI Studio and Vertex AI.Big impact, small price: Because of our investments in TPUs, Gemini Pro can be served more efficiently.Looking aheadWe’re excited that Gemini is now available to developers and enterprises. As we continue to fine-tune it, your feedback will help us improve. You can learn more and start building with Gemini on ai.google.dev, or use Vertex AI’s robust capabilities on your own data with enterprise-grade controls.Early next year, we’ll launch Gemini Ultra, our largest and most capable model for highly complex tasks, after further fine-tuning, safety testing and gathering valuable feedback from partners. We’ll also bring Gemini to more of our developer platforms like Chrome and Firebase.We’re excited to see what you build with Gemini.\noutput: 【Gemini Pro:Google AI模型新登場】\n Google AI Studio 是免費的網路開發工具,可快速開發提示,並取得 API 金鑰以用於應用程式開發。\n\n👉Google AI Studio:開發 Gemini App 最快的方式\n * Gemini Pro 是 Google 最新推出的 AI 模型,比其他同級模型表現更好。\n * 今天發布的版本具有 32K 上下文窗口,未來的版本將有更大的上下文窗口。\n * 目前免費使用,但有限制,未來將以有競爭力的價格收費。\n * 提供多種功能,包括函數調用、嵌入、語義檢索和自定義知識基礎,以及聊天功能。\n * 全球 180 多個國家和地區支援 38 種語言。\n * 支援多種程式語言,包括 Python、Android (Kotlin)、Node.js、Swift 和 JavaScript。\n\n目前,開發人員可以透過 Google AI Studio 免費存取 Gemini Pro 和 Gemini Pro Vision,速度最高可達每分鐘 60 次請求,足以滿足大多數應用程式開發需求。\n* Vertex AI 開發人員可以免費試用相同的模型,限制與免費額度相同,直到明年年初正式發布,之後每 1,000 個字元或每張圖片在 Google AI Studio 和 Vertex AI 上收費。\n\nGemini 目前已開放給開發人員和企業使用,並在不斷進行微調,您的意見將有助於我們改進。\n您可以在 ai.google.dev 上瞭解更多資訊並開始使用 Gemini 進行開發,或使用 Vertex AI 的強大功能,以企業級控制權來處理您自己的資料。\n明年初,我們將推出 Gemini Ultra,這是我們最大且功能最強大的模型,適用於高度複雜的任務,經過進一步的微調、安全性測試和收集合作夥伴的寶貴意見後推出。\n* 我們也會將 Gemini 帶到更多開發人員平台,如 Chrome 和 Firebase。\n* 我們很��待看到您使用 Gemini 開發的成果。\n\n#Gemini #免費 #開發 #AI #Google\n\ninput: Bazel 7 is now released. Bazel is Google's open source build system for fast and correct builds. It has built-in support for building both client and server software, including client applications for both Android and iOS platforms. It also provides an extensible framework that you can use to develop your own build rules. Bazel builds almost all Google products, including Google Search, GMail, and Google Docs.What’s new in Bazel 7?Bazel 7 is the latest major release on the long-term support (LTS) track. It includes:Bzlmod: Bzlmod, Bazel's new modular external dependency management system, is now enabled by default (i.e. --enable_bzlmod defaults to true). If your project doesn't have a MODULE.bazel file, Bazel will create an empty one for you. The old WORKSPACE mechanism will continue to work alongside the new Bzlmod-managed system. Learn more about what’s changed since Bazel 6 and what’s coming up in Bazel 8 and 9.Build without the Bytes (BwoB): Build without the Bytes for builds using remote execution is now enabled by default (i.e. --remote_download_outputs defaults to toplevel). Bazel will no longer try to download any intermediate outputs from the remote server, but only the outputs of requested top-level targets instead. This significantly improves remote build performance. Learn more about BwoB.Merged analysis and execution (Skymeld): Project Skymeld aims to improve multi-target build performance by removing the boundary between the analysis and execution phases and allowing targets to be independently executed as soon as their analysis finishes.Platform-based toolchain resolution for Android and C++: This change helps streamline the toolchain resolution API across all rulesets, obviating the need for language-specific flags. It also removes technical debt by having Android and C++ rules use the same toolchain resolution logic as other rulesets. Full details for Android developers are available in the Android Platforms announcement.What's next?Read the full release notes for Bazel 7, and follow along as we work together towards Bazel 8:Bazel blogGitHubMailing listSlackX (formerly known as Twitter)If you have any questions or feedback, or would like to share something you’ve built, reach out to product@bazel.build. We would love to hear from you!\noutput: 【Bazel 7 發布】\nBzlmod 是 Bazel 新的模組化外部依賴管理系統,現在預設啟用。\n包括 Bzlmod、Build without the Bytes (BwoB) 以及 Merged analysis and execution (Skymeld)。\n\n\nBwoB 預設啟用,Bazel 不再嘗試從遠端伺服器下載任何中間輸出品,而僅會下載請求的頂層目標的輸出品。\n\nSkymeld 旨在通過消除分析和執行階段之間的界限來改善多目標建置效能,並允許目標在分析完成後立即獨立執行。\n\nAndroid 和 C++ 的基於平台的工具鏈解析,有助於簡化所有規則集的工具鏈解析 API,無需特定語言的標記。\n\n詳情請參閱 Bazel 7 的完整版本說明,並在我們共同努力實現 Bazel 8 時關注以下管道:\n\n* Bazel 部落格\n* GitHub\n* 郵件列表\n* Slack\n* X (原 Twitter)\n\n如有任何問題或意見回饋,或想分享自己打造的作品,請寄信至 product@bazel.build。\n\n#Bazel #建置系統 #Android #iOS #Bzlmod #BwoB #Skymeld\n\ninput: Applications are also open for underrepresented founders in North AmericaArtificial intelligence (AI) stands at the forefront of transformative technologies, reshaping industries and redefining the way we live and work. Yet, a closer look at the AI startup ecosystem reveals a stark gender disparity. Women, despite their profound capabilities and innovative prowess, often find themselves navigating a maze of obstacles in their entrepreneurial journey. Despite investment in AI software is booming globally, the venture capital funding problem for women is even more marked. Women-founded startups accounted for only 2.1% of VC deals involving AI startups1. This is a reality that demands attention and action. Globally in 2023, all-women founding teams raised just 3% of all dollars invested in the year, with mixed gender founding teams taking 15%, leaving 82% of dollars to flow to founding teams that are all men2.Google's accelerator programs have actively taken a leading role in championing diversity and empowering women and minority founders - having supported 1100+ startups across the globe since 2016, 36% of which are women-led startups. As such, we are pleased to announce the launch of the Google for Startups Accelerator: Women Founders program (Europe & Israel), a 12 week program for Seed to Series A AI startups based in Europe and Israel.The Google for Startups Accelerator: Women Founders program (Europe & Israel) provides a comprehensive mix of mentorship, technical support, and workshops, establishing a robust foundation for participants. Beyond Google's expert guidance, the accelerator cultivates a collaborative network among women founders, propelling innovation within the tech startup space. By empowering women founders, the Google for Startups Accelerator: Women Founders program (Europe & Israel) proactively contributes to creating a more inclusive and equitable tech community.Applications for the Google for Startups Accelerator: Women Founders Europe & Israel program are open until January 19th, 2024. You can learn more and apply here.In a similar vein, in North America, two other Google for Startups Accelerator programs for underrepresented founders have opened applications for the fifth Women Founders and Black Founders programs. These 10 week equity- free programs are best suited for Seed to Series A, high potential revenue generative women-led and black-led startups with growing teams (5+ employees). Applications for both programs close on February 1st, 2024.To further explore these opportunities and why you should apply - listen to what past participants of the North American Women Founder and Black Founder programs have to say here.\noutput: 【Google 為女性創業家推出新加速器計劃】\n\n* Google for Startups Accelerator:女性創業家計劃 (歐洲和以色列) 為種子到 A 輪階段的人工智慧新創公司提供 12 周的培訓,包括輔導、技術支援和工作坊。\n* 計劃申請至 2024 年 1 月 19 日截止,更多資訊和申請連結請見官網。\n* 在北美,Google for Startups Accelerator 為少數族群創業家提供第五屆女性創業家和黑人創業家計劃,為期 10 週,無需投資,最適合種子輪到 A 輪階段、潛在營收高、團隊成長中 (超過 5 名員工) 的女性領導或黑人領導新創公司。\n* 兩項計劃都將於 2024 年 2 月 1 日截止申請,更多資訊和申請連結請見官網。\n* 也可以聽取北美女性創業家和黑人創業家計劃過去學員的分享,了解申請的理由和機會。\n\n#GoogleAccelerator #女性創業家 #少數族群創業家\n\ninput: Let’s try an experiment. We’ll show this picture to our multimodal model Gemini and ask it to describe what it sees:Tell me what you seeGemini: I see a person's right hand. The hand is open with the fingers spread apart.Ok, let’s try this one:Gemini: A person knocking on a wooden door.How about this one?Gemini: I see a hand with two fingers extended, which is a common symbol for the number two.But wait … what if we asked Gemini to reason about all of these images together?What do you think I'm doing? Hint: it's a game.Gemini: You're playing rock, paper, scissors.Nice. What else could we try? Let's see if Gemini can notice this pattern:I’m playing rock paper scissors. Do you notice a pattern in my gameplay?Gemini: You are alternating between rock and scissors.Neat, it spotted the pattern! But does Gemini really know how this game works? Let’s try asking:Hmm ... do you think it's a good strategy?Gemini: No, it is not a good strategy. Your opponent will quickly learn your pattern and will be able to win every time. You should try to randomize your choices more.Good advice, Gemini! Okay, for this last one, let’s put your multimodal reasoning capabilities to the test. Here’s your prompt:This is a secret message. What does it say?Can you figure it out? We have gotten Gemini to solve it, but we won’t spoil it by putting the answer in this post. 🙂What is multimodal prompting?Everything we did just now is an example of “multimodal prompting.” We’re basically giving Gemini combinations of different modalities — image and text in this case — and having Gemini respond by predicting what might come next. Gemini’s ability to seamlessly combine these modes together enables new possibilities for what you can do.In this post, we’ll explore some of the prompting approaches we used in our Hands on with Gemini demo video. We’ll soon be rolling out Gemini for people to try in Google AI Studio, our free, web-based developer tool where you’ll be able to try your own multimodal prompts with Gemini. We’re hoping this guide of starter prompts and ideas helps inspire you to start exploring your own ideas.🧮 Spatial reasoning and logicLogic and puzzles are fun way to test Gemini. Let’s try one that requires both left-to-right spatial reasoning and knowledge about our solar system:Is this the right order? Consider the distance from the sun and explain your reasoning.Gemini: No, the correct order is Sun, Earth, Saturn. The Sun is the closest to the center of the solar system, followed by the Earth, and then Saturn.Nice! Here’s another, inspired by pinewood derby challenges:Which of these cars is more aerodynamic? The one on the left or the right? Explain why, using specific visual details.Gemini: The car on the right is more aerodynamic. It has a lower profile and a more streamlined shape. The car on the left has a higher profile and a more boxy shape, which makes it less aerodynamic.📷 Image sequencesNext, what if we showed Gemini a sequence of images? Let’s see we can show a few still frames from a game of charades and have Gemini guess the movie:Guess what movie I'm acting out.Gemini: The MatrixNice! But which part specifically? Look at my body movements.Gemini: The part where Neo dodges bullets.🪄 Magic tricksExploring image sequences really lets you dig into how Gemini reasons over time. Let’s try a classic magic trick.Explain what I'm doing.Gemini: You are holding a coin in your right hand.Where do you think the coin is?Gemini: The coin is in your right hand.Sure, that’s a logical answer given what it’s seen. But let’s pull a sleight of hand as we reveal this next image to Gemini...Look here, what happened?Gemini: The coin is gone.Gemini notices it’s gone. But can it summarize what may have happened?Summarize what may have happened, step by step, starting with the first image.Gemini: 1. You started with a coin in your right hand.2. You then made a motion with your hands, and the coin disappeared.3. You then showed that the coin was gone.Gemini is leveraging the entire context of this conversation – both text and image – to summarize its answer. Finally, let’s ask:Can you explain how it disappeared?Gemini: The coin was palmed.Gemini makes a really solid guess! But we won’t reveal our secret 🙂.🔀 Cup shufflingLet’s try a trick that requires memory and logic: the classic ball and cup shuffling game. For this one, we’ll break it down into steps for Gemini. First, let’s establish the basics with these instructions:Instructions: There are three cups in position 1 (left), position 2 (middle), position 3 (right).Next, we’ll need to tell Gemini where we’re placing the ball:Starting position: The ball is in position 3.Current state: empty, empty, ballNotice how we came up with a simple format for remembering where the ball is with “empty, empty, ball.” Next, let’s show Gemini two example turns:Images: Swap: 2 and 3Current state: empty, ball, emptyImages: Swap: 1 and 2Current state: ball, empty, emptyIn these two example turns, we’re both showing it what a swap looks like, and how to update the ball position. Now, let’s see if Gemini can generalize to a swap it hasn't seen:Images: Swap: Here's Gemini's response:1 and 3Current state: empty, empty, ballGemini got it! It looked at these images and correctly inferred that cups 1 and 3 are being swapped. And it reasoned correctly about how to update the ball position. Let’s ask:Tell me where the ball is and summarize how it got there, in paragraph form.Gemini: The ball is in cup 3. Starting with the ball in cup 3, the first swap was cup 2 and 3. This put the ball in cup 2. The second swap was cup 1 and 2. This put the ball in cup 1. The third swap was cup 1 and 3. This put the ball in cup 3.Not only did Gemini get the answer correctly, it accurately summarized the game history. Of course, it won’t always get this challenge right. Sometimes the fake out move (where you swap two empty cups) seems to trip it up, but sometimes it gets that too. But simple prompts like this make it really fun to rapidly test Gemini. You can change the variables in your prompt, including the order of swaps, and see how it does.🔨 Tool useIf you want to use Gemini in your own apps, you’ll want it to be able to connect to other tools. Let’s try a simple idea where Gemini needs to combine multimodality with tool use: drawing a picture to search for music.Step 1. Look at this drawing, describe everything in it, and come up with a fun, specific idea for a good musical soundtrack genre, mood, or soundtrack. Step 2. Provide a search query in the form: \"Search [insert query]\"Gemini: The drawing is of a guitar, drums, and an amplifier. There is also a palm tree. The mood is fun, upbeat, and tropical. The genre is reggae. The soundtrack could be used for a movie or TV show set in a tropical location. Search \"Reggae music for a tropical vacation\"Nice! Gemini both reasons about what it sees and then generates a search query you can parse to do a search. It’s like Gemini is acting like a translator for you – but instead of translating between languages, it’s translating modalities – from drawing to music in this case. With multimodal prompting, you can use Gemini to invent your own entirely new translations between different inputs and outputs.🕹️Game creationWhat if we tried using Gemini to quickly prototype a multimodal game? Here’s an idea: a geography guessing game where you have to point at a map to make your guess. Let’s start by prompting Gemini with the core idea:Instructions: Let's play a game. Think of a country and give me a clue. The clue must be specific enough that there is only one correct country. I will try pointing at the country on a map.Next, let’s give Gemini an example turn of gameplay, showing it how we want it to handle both incorrect and correct answers:Country: This country is huge island that is mostly covered in ice.(Answer: Greenland) Guess:I am pointing at the country of Canada *incorrect*Guess:I am pointing at the country of Greenland *correct*Let’s give it a go and prompt Gemini to generate a clue:Clue:This country is known for its unique wildlife, including kangaroos and koalas. (Answer: Australia)Ok, that’s a good clue. Let’s test out whether pointing will work. Just for fun, let’s try pointing at the wrong place first:Guess:I am pointing at the country of Brazil *incorrect*Great! Gemini looked at my image and figured out I’m pointing at Brazil, and correctly reasoned that’s wrong. Now let’s point at the right place on the map:I am pointing at the country of Australia *correct*Nice! We’ve basically taught Gemini our game logic just by giving it an example. You'll also notice that it generalized from the illustrated hand in the examples.⌨️ CodingOf course, to bring your game idea to life, you’ll eventually have to write some executable code. Let’s see if Gemini can make a simple countdown timer for a game, but with a few fun twists:Implement a simple timer in HTML/CSS/Javascript. Use a sans serif font and dark mode. Start it at 10 seconds and start counting down. When it reaches zero, replace the timer with a random emoji that is associated with excitement and motivation! Then go back to the timer at 10 seconds and start counting down again.With just this single instruction, Gemini gives us a working timer that does what we asked for:My favorite part is scrolling through Gemini’s source code to find the array of motivational emojis it picked for me: const emojis = ['🚀', '⚡️', '🎉', '🎊', '🥳', '🤩', '✨'];\n👀 A sneak peekThroughout this post, we’ve been giving Gemini an input, and having Gemini make predictions for what might come next. That's basically what prompting is. And our inputs have been multimodal – image and text, combined.But so far we've only shown Gemini responding in text. Maybe you’re wondering, can Gemini also respond with a combination of image and text? It can! This is a capability of Gemini called “interleaved text and image generation.” While this feature won’t be ready in the first version of Gemini for people to try, we hope to roll it out soon. Here’s a sneak peek of what’s possible.Let’s see if we could use Gemini to provide everyday creative inspiration. And let’s try it in a domain that requires a bit of multimodal reasoning ... knitting! 🧶. Similar to our map game above, let's provide one example turn of interaction:Give me three ideas for crochet creations I could make with these two colors:Colors: I see blue and yellow yarn.Idea 1: How about a cute dog with one yellow ear? Image 1:Idea 2: Or how about a jellyfish with a few yellow tentacles?Image 2:Idea 3: Or how about a blue cat with a yellow nose?Image 3:We’re essentially teaching Gemini about how we want each interaction to go: “I’ll take a photo of two balls of yarn, and I expect you (Gemini) to both come up with an idea for something I could make, and generate an image of it.”Now, let’s show it a new pair of yarn colors it hasn't yet seen, and see if it can generalize:Give me three ideas for crochet creations I could make with these two colors:Gemini:Colors: I see blue and pink yarn.Idea 1: How about a pig with blue ears?Image 1:Idea 2: Or an octopus with pink and blue tentacles?Image 2:Idea 3: Or a bunny with a pink nose?Image 3:Nice! Gemini correctly reasoned about the new colors (“I see blue and pink yarn”) and generated these ideas and the images in a single, interleaved output of text and image.What Gemini did here is fundamentally different from today’s text-to-image models. It's not just passing an instruction to a separate text-to-image model. It sees the image of my actual yarn on my wooden table, truly doing multimodal reasoning about my text and image together.What's Next?We hope you found this a helpful starter guide to get a sense of what’s possible with Gemini. We’re very excited to roll it out to more people soon so you can explore your own ideas through prompting. Stay tuned!\noutput: 【以多模式提示探索 Gemini 的無限可能】\n\n多模式提示是一種將圖像和文字等不同模態組合起來,並讓 Gemini 預測接下來可能發生什麼的技術。Gemini 能夠將這些模式無縫組合在一起,為您帶來全新的可能性。\n\nGemini 具有多種有趣的功能,例如:\n\n* 空間推理和邏輯:Gemini 可以回答邏輯和智力謎語,並在圖像序列中識別模式。\n* 圖像序列:Gemini 可以理解一系列圖像,並猜測發生了什麼。\n* 魔術把戲:Gemini 可以解釋魔術把戲,並猜測魔術師是如何做到的。\n* 杯子戲法:Gemini 可以玩杯子戲法,並通過交換杯子來移動球的位置。\n* 工具使用:Gemini 可以連接到其他工具,例如將圖畫轉換為音樂搜索查詢。\n* 遊戲創作:Gemini 可以幫助您快速創建多模式遊戲的原型。\n* 編碼:Gemini 可以生成簡單的倒數計時器代碼,並在計時器歸零時顯示隨機表情符號。\n\n除了以文字回應之外,Gemini 也可以使用圖像和文字交錯生成的技術來回應。這種技術可以讓 Gemini 生成圖像和文字交錯的輸出,例如根據您提供的毛線照片,為您提供編織創作的點子和圖像。\n\n我們希望這個指南能幫助您了解使用 Gemini 的可能性。我們很期待在不久的將來向更多人開放 Gemini,讓您能夠通過提示來探索自己的想法。敬請期待!\n\n#Gemini #多模式提示 #AI #圖像和文字 #提示 #開發\n\ninput: Developer Journey is a monthly series highlighting diverse and global developers sharing relatable challenges, opportunities, and wins in their journey. Every month, we will spotlight developers around the world, the Google tools they leverage, and the kinds of products they are building.This month we speak with global Google Developer Experts in Firebase, Women Techmakers, and beyond, to learn more about their favorite Google tools, the applications they’ve built to serve diverse communities, and their best advice for anyone just getting started as a developer.Juan LombanaMexico City, MexicoGoogle Developer Expert, FirebaseFounder, MercatitlánInstagramWhat Google tools have you used to build?Google Analytics and Firebase's A/B testing features have been pivotal in our data-driven approach, enabling continuous improvement in our conversion strategies. More recently, Bard has become a significant asset in developing new products and in our educational endeavors, especially with the introduction of our AI course. Its utility in both product development and educational settings is profound.Which tool has been your favorite to use? Why?If I had to choose, it would be Google Ads. Its ability to consistently drive new customers and provide unparalleled visibility to quality products is unmatched. While it may not traditionally be considered a 'tool' in the strictest sense, its impact on business growth and visibility is indisputable.Please share with us about something you’ve built in the past using Google tools.My entire business, Mercatitlán, has been built and scaled using Google Tools. We have cultivated a community of over 40,000 paid students, educating them on effective use of Google Ads, leveraging Bard for enhanced website content, and employing Google Analytics for strategic A/B testing to boost sales. The transformational impact of these tools on both my business and my students' ventures is a testament to their potential.What will you create with Google Bard?The integration of Bard AI into our daily operations is revolutionizing the way we approach digital marketing. Beyond its current uses in social media content creation, ad ideas generation, email composition, and customer support enhancement, we're exploring several innovative applications:Personalized Marketing Campaigns: Using Bard AI, we can analyze customer data and preferences to create highly personalized marketing campaigns. This helps in delivering more relevant content to our audience, thereby increasing engagement and conversion rates. Competitive Analysis: By analyzing competitor data, Bard AI can help us understand their strategies, strengths, and weaknesses. This intelligence is crucial for refining our marketing approach and differentiating our brand in the marketplace.Content Optimization for SEO: Bard can assist in optimizing website and blog content for search engines. By understanding and integrating key SEO principles, it can help us rank higher in search results, thus improving our online visibility. Automated Reporting and Insights: Automating the generation of marketing reports and insights with Bard saves time and resources, allowing our team to focus on strategy and creativity rather than manual data analysis.What advice would you give someone starting in their developer journey?The key is to start with action rather than waiting for perfection. Adopt a mindset focused on experimentation and analytics. This approach allows you to follow data-driven insights rather than solely relying on innovation, leading to significant societal impact through technology.Jirawat KaranwittayakarnBangkok, ThailandGoogle Developer Expert, FirebaseTech Evangelist, LINE ThailandTwitterLinkedInWhat Google tools have you used to build?I have used a variety of Firebase services to build LINE chatbots for a number of years. These services have included Cloud Functions, Cloud Firestore, Cloud Storage, Firebase Hosting, and etc. Recently I have also used the Gemini API, a very powerful tool that allows me to build Generative AI chatbots.Which tool has been your favorite to use? Why?Firebase is my favorite tool because it is a platform that provides a complete set of tools for building and managing mobile, web, and chatbots. It is very easy to use and has a wide range of features that make it a great choice for developers of all levels. Furthermore, Firebase services have allowed me to scale my chatbots and make them more reliable.Please share with us about something you’ve built in the past using Google tools.LINE Developers TH is a chatbot that allows Thai developers to learn about LINE APIs and get started with building services. It also provides users with the ability to try out demos of LINE APIs.TrueMoney is a wallet app that I have built in the past using Firebase. The app allows users to store money, send money, and pay bills. It is a very popular app in Thailand, with over 10 million users.Sanook is an app that allows users to access news, articles, and other content from the number one web portal in Thailand on their mobile devices.What will you create with Google Bard?I would like to create a use case of building a powerful LINE chatbot using Gemini API and Firebase for developers. I believe this will be a great way to showcase the power of these tools and how they can be used to create innovative solutions.What advice would you give someone starting in their developer journey?First and foremost, I would encourage them to be curious and always be willing to learn new things. The world of technology is constantly changing, so it's important to stay up-to-date on the latest trends and technologies. This can be done by reading articles, attending conferences, and taking online courses.Secondly, I would recommend that they find a mentor or role model who can help guide them on their journey. Having someone who has been through the process can be invaluable in providing support and advice. They can help you identify areas where you need to improve, and provide you with tips and tricks for success.Finally, I would encourage them to never give up. The road to becoming a developer can be challenging, but it's also incredibly rewarding. If you're passionate about technology, then don't let anything stop you from pursuing your dreams.Laura MorinigoLondon, EnglandGoogle Developer Expert, FirebaseWomen Techmakers AmbassadorPrincipal Engineer and Consultant, Samsung Electronics UKInstagramTwitterLinkedInWhat Google tools have you used to build?I have used tools like Google Cloud and Firebase.Which tool has been your favorite to use? Why?I would say Firebase! It helped me to build web apps and explore new technologies easily while saving a lot of time and resources. Additionally, a lot of functionalities have been added recently. Over the years, I've witnessed its evolution, with the addition of numerous functionalities that continually enhance its utility and user experience. This constant innovation within Firebase not only simplifies complex tasks but also opens doors to creative possibilities in web app development.Please share with us about something you’ve built in the past using Google tools.I've been leading a project in partnership with the United Nations to help share information about its worldwide global goals. We used Firebase hosting and Cloud functions for the first release of the web app and it was a success! It felt very good to help create tools that support a good cause.What will you create with Google Bard?I'm experimenting with the current extensions to improve personal productivity. It's very interesting how you can improve the way that you do your daily tasks.What advice would you give someone starting in their developer journey?Remember that as a developer you will have the power to create! Use this power to build personal projects and combine it with things that you enjoy. You will start building a portfolio and have fun while learning. Finally, don't hesitate to find a mentor and connect with a community of developers to support and guidance in your journey. You can find a lot of help, improve your networking, and even have friends for life!\noutput: 【開發者旅程:全球 Google 開發者專家分享經驗與建議】\n\n1. Juan Lombana\n * 過去成就:利用 Google 工具建立 Mercatitlán,培養了 40,000 多名付費學生,教授 Google Ads 的有效使用、利用 Bard 增強網站內容,以及使用 Google Analytics 進行戰略 A/B 測試以提高銷售額。\n * 未來計劃:將 Bard AI 整合到日常運營中,革新數字營銷方式。\n * 建議:以行動開始,而不是等待完美。採用以實驗和分析為中心的思維模式。這種方法讓您可以追蹤數據驅動的洞察,而不仅仅是依賴創新,從而通過技術產生重大的社會影響。\n\n2. Jirawat Karanwittayakarn\n * 過去成就:使用 Firebase 服務構建 LINE 聊天機器人,包括 LINE Developers TH 聊天機器人,幫助泰國開發人員學習 LINE API 並開始構建服務;TrueMoney 錢包應用程式,在泰國擁有超過 1,000 萬用戶;Sanook 應用程式,允許用戶在他們的移動設備上訪問泰國頭號網路門戶的新聞、文章和其他內容。\n * 未來計劃:構建一個強大的 LINE 聊天機器人,結合 Gemini API 和 Firebase,並為開發人員提供用例。\n * 建議:首先,要保持好奇心並始終樂於學習新事物。其次,尋找一位導師或榜樣來引導您的旅程。最後,永遠不要放棄。成為開發人員的道路可能充满挑戰,但回報也是巨大的。如果您對技術充滿熱情,那麼不要讓任何事情阻止您追求夢想。\n\n3. Laura Morinigo\n * 過去成就:與聯合國合作領導一個項目,幫助分享其全球目標的信息。他們使用 Firebase 托管和 Cloud Functions 發布了第一個 Web 應用程序,並且取得了成功!幫助創建支持公益事業的工具,感到非常自豪。\n * 未來計劃:正在嘗試當前扩展以提高個人生產力。您可以改善完成日常任務的方式,這非常有趣。\n * 建議:記住,作為一名開發人員,您將擁有創造力!利用這種力量來構建個人項目,並將其與您喜歡的東西結合起來。您將開始構建作品集,并在學習的同時獲得樂趣。最後,不要猶豫,尋找導師並與開發者社區建立聯繫,在您的旅程中獲得支持和指導。您可以找到很多幫助,改進您的網路,甚至結交終生的朋友!\n\n#開發者旅程 #Google開發者專家 #Firebase #WomenTechmakers #Bard\n\ninput: Passkeys are an easier and more secure alternative to passwords. They let users sign-in simply with a fingerprint, face scan, PIN or a pattern. This week we are sharing resources to help you understand passkeys and upgrade authentication on your sites and apps.Every day from 23-27 October on @ChromiumDev and @AndroidDev we’ll share new materials, including blog posts, case studies, and a Q&A session. Use #PasskeysWeek to participate in the conversation and spread the word about your sites and apps that support passkeys.Join our live Q&AOn 25 October at 10 AM PDT, we’ll host a live Q&A session on Google for Developers YouTube channel where you’ll be able to ask questions in the live chat and get answers from passkeys engineers from Google. To send us your questions ahead of time through social media channels tag @ChromiumDev and @AndroidDev and use #PasskeysWeek.Bookmark this link or click \"Notify me\" to get alerted when the livestream is about to start:The recording will also be available on the channel after the event. Save the date and learn more about passkeys.Where are passkeys todayGoogle Accounts have supported passkeys since May this year and on 10 October, 2023 have made passkeys the default sign in method for all devices that support it. If you haven’t created a passkey for your Google account yet, head over to g.co/passkeys.Google is also partnering with brands to enable passkeys across Chrome and Android platforms. Partners across the ecommerce, financial tech, and travel industries—along with other software providers—already support passkeys creating easier, secure sign-ins for their users.eBay, Uber and WhatsApp have recently joined that list, you can now sign into your account on these services with passkeys on Chrome and Android.Success storiesWhen the travel company KAYAK integrated passkeys into its Android and web apps, they reduced the time it takes their users to sign up and sign in by 50%.Password manager Dashlane can also manage passkeys across its Android, iOS, macOS, and Windows apps, as well as on the web with an extension for Chrome, Firefox, Edge, and Safari. Since introducing passkeys, Dashlane has seen a 70% increase in conversion rate for signing in with passkeys compared to passwords.To learn more about these success stories keep an eye on #PasskeysWeek on @ChromiumDev and @AndroidDev, where we'll share full case studies in the next couple of days.Learn how to implement passkeys and earn a badgeAre you a web developer? Are you ready to learn how to implement passkeys in a web app?We have compiled everything you need to know in a short course: Passwordless login on the web with passkeys.Are you an Android developer? Head over to Passkeys on Android.Read the docs, complete the codelab, pass the quiz, and you’ll earn a passkeys badge on your Google Developer profile.More resourcesPasskeys on the web is a collection of learning resources and latest updates about passkeys in Chrome.Credential Manager documentation explains how to add passkeys support to your Android app.passkeys.dev is a site created by the W3C WebAuthn Community Adoption Group and members of the FIDO Alliance that hosts documentation about passkeys and a list of demos.FIDO Alliance is an open industry association with a mission to develop and standardize technical specifications that reduce the reliance on passwords to authenticate users.Stay tuned for more.\noutput: 【密碼金鑰週:探索更安全便捷的���錄方式】\n\nGoogle 密碼金鑰週將於 10 月 23 日至 27 日舉行,分享一系列資源,幫助開發者了解密碼金鑰並升級網站和應用程式的身份驗證方式。 \n\n* 活動期間,@ChromiumDev 和 @AndroidDev 將每天分享新資料,包括博客文章、案例研究和問答環節。\n* 10 月 25 日上午 10 點(太平洋夏令時間)將在 Google for Developers YouTube 頻道舉行線上問答環節。\n* Google 帳戶自今年 5 月起已支持密碼金鑰,並於 2023 年 10 月 10 日將密碼金鑰設為所有支持設備的默認登錄方式。\n* Google 正在與各品牌合作,在 Chrome 和 Android 平台上啟用密碼金鑰。\n* 案例研究顯示,使用密碼金鑰可以顯著提升用戶體驗和安全性。\n* 開發者可以通過學習資源和代碼實驗室了解如何實施密碼金鑰,並獲得徽章。\n\n#密碼金鑰 #安全 #登錄 #開發者 #資源\n\ninput: If you are joining us for the first time, you can binge listen to our amazing 8 episodes from Season 1 wherever you get your podcasts.We are back for another season of People of AI with a new lineup of incredible guests! I am so excited to introduce my new co-host Luiz Gustavo Martins as we meet inspiring people with interesting stories in the field of Artificial Intelligence.Last season we focused on the incredible journeys that our guests took to get into the field of AI. Through our stories, we highlighted that no matter who you are, what your interests are, or what you work on, there is a place for anyone to get into this field. We also explored how much more accessible the technology has become over the years, as well as the importance of building AI-related products responsibly and ethically. It is easier than ever to use tools, platforms and services powered by machine learning to leverage the benefits of AI, and break down the barrier of entry.For season 2, we will feature amazing conversations, focusing on Generative AI! Specifically, we will be discussing the explosive growth of Generative AI tools and the major technology shift that has happened in recent months. We will dive into various topics to explore areas where Generative AI can contribute tremendous value, as well as boost both productivity and economic growth. We will also continue to explore the personal paths and career development of this season’s guests as they share how their interest in technology was sparked, how they worked hard to get to where they are today, and explore what it is that they are currently working on.Starting today, we will release one new episode of season 2 per week. Listen to the first episode on the People of AI site or wherever you get your podcasts. And stay tuned for later in the season when we premiere our first video podcasts as well!Episode 1: meet your hosts, Ashley and Gus and learn about Generative AI, Bard and the big shift that has dramatically changed the industry. Episode 2: meet Sunita Verma, a long-time Googler, as she shares her personal journey from Engineering to CS, and into Google. As an early pioneer of AI and Google Ads, we will talk about the evolution of AI and how Generative AI will transform the way we work. Episode 3: meet Sayak Paul, a Google Developer Expert (GDE) as we explore what it means to be a GDE and how to leverage the power of your community through community contributions. Episode 4: meet Crispin Velez, the lead for Cloud’s Vertex AI as we dig into his experience in Cloud working with customers and partners on how to integrate and deploy AI. We also learn how he grew his AI developer community in LATAM from scratch. Episode 5: meet Joyce Shen, venture capital/private equity investor. She shares her fascinating career in AI and how she has worked with businesses to spot AI talent, incorporate AI technology into workflows and implement responsible AI into their products. Episode 6: meet Anne Simonds and Brian Gary, founders of Muse https://www.museml.com. Join us as we talk about their recent journeys into AI and their new company which uses the power of Generative AI to spark creativity. Episode 7: meet Tulsee Doshi, product lead for Google’s Responsible AI efforts as we discuss the development of Google-wide resources and best practices for developing more inclusive, diverse, and ethical algorithm driven products. Episode 8: meet Jeanine Banks, Vice President and General Manager of Google Developer X and Head of Developer Relations. Join us as we debunk AI and get down to what Generative AI really is, how it has changed over the past few months and will continue to change the developer landscape. Episode 9: meet Simon Tokumine, Director of Product Management at Google. We will talk about how AI has brought us into the era of task-orientated products and is fueling a new community of makers.Listen now to the first episode of Season 2. We can’t wait to share the stories of these exceptional People of AI with you!\noutput: 【人工智慧人物 Podcast 第二季回歸】\n\n人工智慧人物 Podcast 第二季回歸,由 Ashley 和 Luiz Gustavo Martins 共同主持,聚焦生成式 AI,探討其爆炸性增長、技術變革、價值貢獻、生產力提升、經濟增長以及對個人和職業發展的影響。 \n\n本季將邀請各領域傑出人士分享他們在 AI 領域的經驗和見解,包括 Google 工程師、Google 開發者專家、雲端專家、風險投資家、創業家和負責任 AI 產品負責人等。\n\n聽眾可以通過 Podcast 平台或人工智慧人物網站收聽節目,並期待本季稍後推出的首批視頻 Podcast。\n\n#Podcast #AI #生成式AI #人物 #訪談\n\ninput: For the past six years, we have shared the latest and greatest updates to Firebase, Google’s app development platform, at our annual Firebase Summit – this year, we wanted to do something a little different for our community of developers. So, in addition to the Flutter Firebase festival that just wrapped up, and meeting you all over the world at DevFests, we’re thrilled to announce our very first Firebase Demo Day, happening on November 8, 2023!What is Demo Day?Demo Day will be a virtual experience where we'll unveil short demos (i.e. pre-recorded videos) that showcase what's new, what's possible, and how you can solve your biggest app development challenges with Firebase. You’ll hear directly from our team about what they’ve been working on in a format that will feel both refreshing but also familiar.What will you learn?You’ll learn how Firebase can help you build and run fullstack apps faster, harness the power of AI to build smart experiences, and use Google technology and tools together to be more productive. We’ve been working closely with our friends from Flutter, Google Cloud, and Project IDX to ensure the demos cover a variety of topics and feature integrated solutions from your favorite Google products.How can you participate?Since Demo Day is not your typical physical or virtual event, you don’t need to worry about registering, securing a ticket, or even traveling. This is one of the easiest ways to peek at the exciting future of Firebase! Simply bookmark the website (and add the event to your calendar), then check back on Wednesday, November 8, 2023 at 1:00 pm EST to watch the videos at your own pace and be inspired to make your app the best it can be for users and your business.In the meantime, we encourage you to follow us on X (formerly Twitter) and LinkedIn and join the conversation using #FirebaseDemoDay. We’ll be sharing teasers and behind-the-scenes footage throughout October as we count down to Demo Day, so stay tuned!\noutput: 【Firebase Demo Day 線上活動】\n\nFirebase 將於 2023 年 11 月 8 日舉辦首屆線上 Demo Day 活動,展示 Firebase 的最新功能和解決方案,幫助開發者更快地構建和運行全端應用程式,利用 AI 打造智慧體驗,並使用 Google 技術和工具提高生產力。 \n\n活動將以預先錄製的影片形式呈現,涵蓋 Firebase、Flutter、Google Cloud 和 Project IDX 等多個主題,並展示整合解決方案。 \n\n參與方式:\n\n* 將網站加入書籤,並在 2023 年 11 月 8 日下午 1 點(美國東部時間)觀看影片。\n* 在 X (前 Twitter) 和 LinkedIn 上關注 Firebase,並使用 #FirebaseDemoDay 加入討論。\n\n#Firebase #DemoDay #線上活動 #開發者 #Google\n\ninput: For the past six years, we have shared the latest and greatest updates to Firebase, Google’s app development platform, at our annual Firebase Summit – this year, we wanted to do something a little different for our community of developers. So, in addition to the Flutter Firebase festival that just wrapped up, and meeting you all over the world at DevFests, we’re thrilled to announce our very first Firebase Demo Day, happening on November 8, 2023!What is Demo Day?Demo Day will be a virtual experience where we'll unveil short demos (i.e. pre-recorded videos) that showcase what's new, what's possible, and how you can solve your biggest app development challenges with Firebase. You’ll hear directly from our team about what they’ve been working on in a format that will feel both refreshing but also familiar.What will you learn?You’ll learn how Firebase can help you build and run fullstack apps faster, harness the power of AI to build smart experiences, and use Google technology and tools together to be more productive. We’ve been working closely with our friends from Flutter, Google Cloud, and Project IDX to ensure the demos cover a variety of topics and feature integrated solutions from your favorite Google products.How can you participate?Since Demo Day is not your typical physical or virtual event, you don’t need to worry about registering, securing a ticket, or even traveling. This is one of the easiest ways to peek at the exciting future of Firebase! Simply bookmark the website (and add the event to your calendar), then check back on Wednesday, November 8, 2023 at 1:00 pm EST to watch the videos at your own pace and be inspired to make your app the best it can be for users and your business.In the meantime, we encourage you to follow us on X (formerly Twitter) and LinkedIn and join the conversation using #FirebaseDemoDay. We’ll be sharing teasers and behind-the-scenes footage throughout October as we count down to Demo Day, so stay tuned!\noutput: 【Firebase 首屆 Demo Day 將於 11 月 8 日舉行】\n\n過去六年來,我們一直在年度 Firebase 峰會上分享 Google 應用程式開發平台 Firebase 的最新和最棒的更新 - 今年,我們想為我們的開發人員社群做一些不同的事情。因此,除了剛剛結束的 Flutter Firebase 慶典,以及在全球 DevFest 與您見面之外,我們很高興地宣布我們的第一個 Firebase Demo Day 將於 2023 年 11 月 8 日舉行!\n\nDemo Day 將是一個虛擬體驗,我們將在其中展示簡短的演示(即預先錄製的影片),展示 Firebase 的新功能、可能性以及如何使用 Firebase 解決您最大的應用程式開發挑戰。您將直接從我們的團隊聽到他們一直在做什麼,其形式既令人耳目一新又熟悉。\n\n您將學習 Firebase 如何幫助您更快地建構和執行全端應用程式、利用 AI 的力量建構智慧體驗,以及如何結合使用 Google 技術和工具來提高生產力。我們一直與 Flutter、Google Cloud 和 Project IDX 的朋友密切合作,以確保演示涵蓋各種主題,並以您最喜愛的 Google 產品為特色整合解決方案。\n\n由於 Demo Day 不是典型的實體或虛擬活動,您無需擔心註冊、獲得門票,甚至旅行。這是窺視 Firebase 令人興奮的未來的最簡單方法之一!只需將網站加入書籤(並將活動添加到您的日曆中),然後在 2023 年 11 月 8 日星期三美國東部時間下午 1:00 回來觀看影片,並激勵您讓您的應用程式成為使用者和您的業務的最佳選擇。\n\n同時,我們鼓勵您在 X(以前稱為 Twitter)和 LinkedIn 上關注我們,並使用 #FirebaseDemoDay 加入對話。我們將在整個 10 月份分享預告片和幕後花絮,為 Demo Day 倒計時,敬請期待!\n\n#FirebaseDemoDay #Firebase #應用程式開發 #Flutter #GoogleCloud #ProjectIDX\n\ninput: If you are joining us for the first time, you can binge listen to our amazing 8 episodes from Season 1 wherever you get your podcasts.We are back for another season of People of AI with a new lineup of incredible guests! I am so excited to introduce my new co-host Luiz Gustavo Martins as we meet inspiring people with interesting stories in the field of Artificial Intelligence.Last season we focused on the incredible journeys that our guests took to get into the field of AI. Through our stories, we highlighted that no matter who you are, what your interests are, or what you work on, there is a place for anyone to get into this field. We also explored how much more accessible the technology has become over the years, as well as the importance of building AI-related products responsibly and ethically. It is easier than ever to use tools, platforms and services powered by machine learning to leverage the benefits of AI, and break down the barrier of entry.For season 2, we will feature amazing conversations, focusing on Generative AI! Specifically, we will be discussing the explosive growth of Generative AI tools and the major technology shift that has happened in recent months. We will dive into various topics to explore areas where Generative AI can contribute tremendous value, as well as boost both productivity and economic growth. We will also continue to explore the personal paths and career development of this season’s guests as they share how their interest in technology was sparked, how they worked hard to get to where they are today, and explore what it is that they are currently working on.Starting today, we will release one new episode of season 2 per week. Listen to the first episode on the People of AI site or wherever you get your podcasts. And stay tuned for later in the season when we premiere our first video podcasts as well!Episode 1: meet your hosts, Ashley and Gus and learn about Generative AI, Bard and the big shift that has dramatically changed the industry. Episode 2: meet Sunita Verma, a long-time Googler, as she shares her personal journey from Engineering to CS, and into Google. As an early pioneer of AI and Google Ads, we will talk about the evolution of AI and how Generative AI will transform the way we work. Episode 3: meet Sayak Paul, a Google Developer Expert (GDE) as we explore what it means to be a GDE and how to leverage the power of your community through community contributions. Episode 4: meet Crispin Velez, the lead for Cloud’s Vertex AI as we dig into his experience in Cloud working with customers and partners on how to integrate and deploy AI. We also learn how he grew his AI developer community in LATAM from scratch. Episode 5: meet Joyce Shen, venture capital/private equity investor. She shares her fascinating career in AI and how she has worked with businesses to spot AI talent, incorporate AI technology into workflows and implement responsible AI into their products. Episode 6: meet Anne Simonds and Brian Gary, founders of Muse https://www.museml.com. Join us as we talk about their recent journeys into AI and their new company which uses the power of Generative AI to spark creativity. Episode 7: meet Tulsee Doshi, product lead for Google’s Responsible AI efforts as we discuss the development of Google-wide resources and best practices for developing more inclusive, diverse, and ethical algorithm driven products. Episode 8: meet Jeanine Banks, Vice President and General Manager of Google Developer X and Head of Developer Relations. Join us as we debunk AI and get down to what Generative AI really is, how it has changed over the past few months and will continue to change the developer landscape. Episode 9: meet Simon Tokumine, Director of Product Management at Google. We will talk about how AI has brought us into the era of task-orientated products and is fueling a new community of makers.Listen now to the first episode of Season 2. We can’t wait to share the stories of these exceptional People of AI with you!\noutput: 【人工智慧人物錄第二季】\n\n如果您是第一次加入我們,您可以隨時隨地收聽第一季令人驚豔的 8 集節目。\n\n我們帶著新一季的人工智慧人物錄回來了,並邀請到一組令人驚豔的嘉賓!我很興奮地介紹我的新共同主持人 Luiz Gustavo Martins,我們將在人工智慧領域中認識到一些具有啟發性且故事有趣的人物。\n\n在上一季中,我們專注於嘉賓們進入人工智慧領域的非凡旅程。透過這些故事,我們強調無論您是誰、興趣是什麼或從事什麼工作,任何人都可以在這個領域佔有一席之地。我們還探討了多年來該技術變得更加容易使用,以及負責任且合乎道德地建構與人工智慧相關產品的重要性。使用由機器學習支援的工具、平臺和服務來利用人工智慧的優勢並打破進入障礙,這比以往任何時候都更加容易。\n\n在第二季中,我們將以精彩的對話為特色,重點關注生成式人工智慧!特別是,我們將討論生成式人工智慧工具的爆炸性增長以及最近幾個月發生的主要技術轉變。我們將深入探討各種主題,以探索生成式人工智慧可以做出巨大貢獻的領域,並提高生產力和經濟增長。我們還將繼續探索本季嘉賓的個人道路和職業發展,因為他們分享了他們對技術的興趣是如何被激發的,他們如何努力走到今天的位置,以及他們目前正在做什麼。\n\n從今天開始,我們將每週發佈一集第二季的新劇集。在人工智慧人物錄網站或您收聽播客的任何地方收聽第一集。並在稍後繼續關注本季,我們還將首播我們的第一個影片播客!\n\n立即收聽第二季的第一集。我們迫不及待地想與您分享這些傑出的人工智慧人物的故事!\n\n#Podcast #人工智慧 #人物錄\n\ninput: This article was originally posted on Google for DevelopersDashlane is a password management tool that provides a secure way to manage user credentials, access control, and authentication across multiple systems and applications. Dashlane has over 18 million users and 20,000 businesses in 180 countries. It’s available on Android, iOS, macOS, Windows, and as a web app with an extension for Chrome, Firefox, Edge, and Safari.The opportunityMany users choose password managers because of the pain and frustration of dealing with passwords. While password managers help here, the fact remains that one of the biggest issues with passwords are security breaches. Passkeys on the other hand bring passwordless authentication with major advancements in security.Passkeys are a simple and secure authentication technology that enables signing in to online accounts without entering a password. They cannot be reused, don't leak in server breaches of relying parties, and protect users from phishing attacks. Passkeys are built on open standards and work on all major platforms and browsers.As an authentication tool, Dashlane’s primary goal is to ensure customers’ credentials are kept safe. They realized how significant the impact of passkeys could be to the security of their users and adapted their applications to support passkeys across devices, browsers, and platforms. With passkey support they provide users a secure and convenient access with a phishing-resistant authentication method.ImplementationPasskeys as a replacement for passwords is a relatively new concept and to address the challenge of going from a familiar to an unfamiliar way of logging in, the Dashlane team considered various solutions.On the desktop web they implemented conditional UI support through a browser extension to help users gracefully navigate the choice between using a password and a passkey to log into websites that support both login methods. As soon as the user taps on the username input field, an autofill suggestion dialog pops up with the stored passkeys and password autofill suggestions. The user can then choose an account and use the device screen lock to sign in.Note: To learn how to add passkeys support with conditional UI to your web app check out Create a passkey for passwordless logins and Sign in with a passkey through form autofill.On Android, they used the Credential Manager API which supports multiple sign-in methods, such as username and password, passkeys, and federated sign-in solutions (such as Sign-in with Google) in a single API. The Credential Manager simplifies the development process and it has enabled Dashlane to implement passkeys support on Android in 8 weeks with a team of one engineer.Note: If you are a credential provider, such as a password manager app, check out the guide on how to integrate Credential Manager with your credential provider solution.ResultsData shows that users are more satisfied with the passkey flows than the existing password flows.The conversion rate is 92% on passkey authentication opportunities on the web (when Dashlane suggests a saved passkey for the user to sign in), compared to a 54% conversion rate on opportunities to automatically sign in with passwords. That’s a 70% increase in conversion rate compared to passwords–a great sign for passkey adoption.The conversion rate here refers to user actions when they visit websites that support passkeys. If a user attempts to register or use a passkey they will see a Dashlane dialog appear on Chrome on desktop. If they proceed and create new or use an existing passkey it is considered a success. If they dismiss the dialog or cancel passkey creation, it’s considered a failure. The same user experience flow applies to passwords.Dashlane also saw a 63% conversion rate on passkey registration opportunities (when Dashlane offers to save a newly created passkey to the user’s vault) compared to only around 25% conversion rate on suggestions to save new passwords. This indicates that Dashlane’s suggestions to save passkeys are more relevant and precise than the suggestions to save passwords.Dashlane observed an acceleration of passkey usage with 6.8% average weekly growth of passkeys saved and used on the web.TakeawaysWhile passkeys are a new technology that users are just starting to get familiar with, the adoption rate and positive engagement rates show that Dashlane users are more satisfied with passkey flows than the existing password flows. “Staying up to date on developments in the market landscape and industry, anticipating the potential impact to your customers’ experience, and being ready to meet their needs can pay off. Thanks in part to our rapid implementation of the Credential Manager API, customers can rest assured that they can continue to rely on Dashlane to store and help them access services, no matter how authentication methods evolve.“ –Rew Islam, Director of Product Engineering and Innovation at Dashlane Dashlane tracks and investigates all passkey errors and says that there haven’t been many. They also receive few questions from customers around how to use or manage their passkeys. This can be a sign of an intuitive user experience, clear help center documentation, a tendency of passkey users today already being knowledgeable about passkeys, or some combination of these factors.AndroidBeginnercase studyLearnmobileprivacy\noutput: 【Dashlane:密碼金鑰提升使用者體驗】\n\nDashlane 是一個密碼管理工具,提供安全的方式來管理使用者憑證、訪問控制和跨多個系統和應用程式的身份驗證。Dashlane 在 180 個國家擁有超過 1800 萬使用者和 20,000 家企業。它可在 Android、iOS、macOS、Windows 上使用,並作為 Web 應用程式,並提供 Chrome、Firefox、Edge 和 Safari 的擴充套件。\n\nDashlane 實現了密碼金鑰支援,為使用者提供安全便捷的訪問,以及防釣魚的身份驗證方法。\n\n結果顯示,與現有的密碼流程相比,使用者對密碼金鑰流程更滿意。\n\n網頁上的密碼金鑰身份驗證機會的轉換率為 92%(當 Dashlane 建議使用者使用儲存的密碼金鑰登錄時),而使用密碼自動登錄的機會的轉換率為 54%。與密碼相比,轉換率提高了 70%——這是密碼金鑰採用的好兆頭。\n\nDashlane 還發現,密碼金鑰註冊機會的轉換率為 63%(當 Dashlane 建議將新建立的密碼金鑰儲存到使用者的保險庫中時),而建議儲存新密碼的轉換率僅為 25% 左右。這表明 Dashlane 儲存密碼金鑰的建議比儲存密碼的建議更相關、更精確。\n\nDashlane 觀察到密碼金鑰使用量的加速,網頁上儲存和使用的密碼金鑰平均每週增長 6.8%。\n\n#密碼金鑰 #使用者體驗 #安全 #Dashlane #身份驗證\n\ninput: Attackers are taking greater strides to evade detection. This is one of the running themes in our latest release: M-Trends 2024. This edition of our annual report continues our tradition of providing relevant attacker and defender metrics, and insights into the latest attacker tactics, techniques and procedures, along with guidance and best practices on how organizations and defenders should be responding to threats.\n \n \n\n\n\nThis year’s M-Trends report covers Mandiant Consulting investigations of targeted attack activity conducted between January 1, 2023 and December 31, 2023. During that time, many of our observations demonstrate a more concerted effort by attackers to evade detection, and remain undetected on systems for longer periods of time:\n\n\nIncreased targeting of edge devices, and platforms that traditionally lack endpoint detection and response solutions.\n\n\nA more than 50% growth in zero-day usage over the same reporting period in 2022, both by espionage groups as well as financially-motivated attackers.\n\n\nMore “living off the land,” or use of legitimate, pre-installed tools and software within an environment.\n\n\nDespite the increased focus on evasion by attackers, we are pleased to report that defenders are generally continuing to improve at detecting threats. Dwell time represents the period an attacker is on a system from compromise to detection, and in 2023 the global median dwell time is now 10 days, down from 16 days in 2022. While various factors (such as ransomware) help drive down dwell time, it’s still a big win for defenders. We can’t let up, however. Mandiant red teams need only five to seven days on average to achieve their objectives, so organizations must remain vigilant. Other M-Trends 2024 metrics include:\n\n\n54% of organizations first learned of a compromise from an external source (down from 63% in 2022), while 46% first identified evidence of a compromise internally.\n\n\nOur engagements most frequently occurred at financial services organizations (17.3%), business and professional services (13.3%), high tech (12.4%), retail and hospitality (8.6%), healthcare (8.1%), and government (8.1%).\n\n\nThe most common initial infection vectors were exploits (38%), phishing (17%), prior compromise (15%), and stolen credentials (10%). \n\n\nAdditional topics covered in detail in M-Trends 2024 include Chinese espionage operations targeting the visibility gap, the evolution of phishing amid shifting security controls, the use of adversary-in-the-middle to overcome multi-factor authentication, cloud intrusion trends, and the role of artificial intelligence in red and purple team engagements. \nWith the release of M-Trends 2024, we hope to arm security professionals with insights from the frontlines of the latest, constantly evolving cyber attacks, and to provide actionable learnings to improve organizations’ security postures.\nRead M-Trends 2024 now, and register today for our webinar series to get a closer look from experts about the data and insights in this year’s report. M-Trends 2024: Executive Edition is also available to read now, featuring a high-level overview of each section, along with key takeaways.\noutput: 【M-Trends 2024:攻擊者逃避偵測趨勢】\n\nMandiant Consulting 發佈了 M-Trends 2024 報告,揭示了攻擊者逃避偵測的最新趨勢。報告涵蓋了 2023 年針對性攻擊活動的調查結果,發現攻擊者更加努力地逃避偵測,並在系統中停留更長時間。\n\n主要發現:\n\n* 攻擊者越來越多地針對邊緣設備和傳統上缺乏端點偵測和響應解決方案的平台。\n* 與 2022 年同期相比,零日漏洞的使用量增長了 50% 以上。\n* 攻擊者更多地使用「就地取材」技術,即利用環境中合法的預安裝工具和軟體。\n\n儘管攻擊者越來越注重逃避偵測,但報告顯示,防禦者在偵測威脅方面總體上仍在不斷改進。2023 年全球平均停留時間為 10 天,低於 2022 年的 16 天。\n\n其他重要指標:\n\n* 54% 的組織首先從外部來源得知入侵事件。\n* 金融服務組織 (17.3%) 是最常受到攻擊的目標。\n* 最常見的初始感染途徑是漏洞利用 (38%) 和網路釣魚 (17%)。\n\n報告還深入探討了其他主題,包括中國間諜活動、網路釣魚的演變、雲端入侵趨勢以及人工智慧在紅隊和紫隊參與中的作用。\n\n#M-Trends #網路安全 #攻擊者 #防禦者 #威脅情報\n\ninput: The content in this blog post was originally published last week as a members-only email to the Google Cloud Innovators community. To get this content directly in your inbox (not to mention lots of other benefits), sign up to be an Innovator today.\nNew and shinyThree new things to know this weekGoogle Cloud Next ‘24 featured some headline-worthy releases. We announced many things! The most attention-grabbing announcements included Gemini for Google Cloud which brings the power of generative AI to many services, Gemini 1.5 Pro now available in public preview, new database “studio” and AI experiences for AlloyDB, Spanner, and Cloud SQL, and Vertex AI model management features such as support for grounding, system instructions, rapid evaluation, AI agent building, and prompt management.Don’t sleep on these additional announcements from Cloud Next. Those headline announcements get most of the glory, but we shared dozens of other interesting items at Next. Cloud Assist is coming soon and offers a major improvement to how you understand and troubleshoot your cloud apps. Cloud Run is getting a new application canvas and the ability to deploy to multiple regions at once. And we shared powerful new partner integrations including those with GitLab and Hugging Face.Big updates to Infrastructure Manager. Before Cloud Next started, we actually shipped a major update to our service for deploying and managing infrastructure with Terraform. You can now set up Git-based workflows, work with private Git repos, validate and enforce quota limits, and run the service in more regions around the world.Watch this\n\n\n\n\n\n \n \n\n \n \n\n \n The Google Cloud Next developer keynote\n \n \n \n \n \n \n\n \n \n\n\n\n \n \n\n\n\nThe Developer Keynote at Cloud Next ‘24 was an opportunity to show AI in action for all kinds of developers.Community cutsEvery week I round up some of my favorite links from builders around the Google Cloud-iverse. Want to see your blog or video in the next issue? Drop Richard a line!Serverless is a good choice. This post from McKinsey Digital looks at the architecture and considerations for a service running atop fully-managed cloud infrastructure.A platform-as-code option for GitLab on Google Cloud. I like this work from Real Kinetic that offers up a way to automate deployment of source, CI/CD, and cloud services for developers.You don’t have to deploy all the time; just deploy when you want to. Taylor shows us how you might use Cloud Workflows to schedule your Cloud Deploy rollouts for a target time. Creative solution here!Learn and growThree ways to build your cloud muscles this weekTwo new Jump Start Solutions for generative AI? Sounds good! We just shipped a pair of Jump Starts that you can explore and deploy to learn about a generative AI knowledge base, and a generative AI RAG-style solution.Always blame DNS, but understand it too. You’ve got some choices to make with regards to DNS and Google Kubernetes Engine, and this post does a good job explaining your options.The Google Cloud AI Hypercomputer stands out. Our layered approach of advanced hardware, optimized block storage infrastructure, and performance-tailored open software means we can deliver a new paradigm of powerful and flexible AI solutions. Read Mark’s post to learn about our latest advances here.Gimme some AI assistance in my database. On April 24th and 25th, attend this online session about “Integrating Gemini with your Database for Advanced Analytics.” Learn by watching! Register here.One more thing\n\n\n\n\n\n\n\n \n \n \n \n\n \n\n \n \n \n \n \n \n \n https://twitter.com/googlecloud/status/1778907475099431102\n \n \n\n \n \n \n \n\n\n\n\n\nWe shipped a million things at Next. Ok, only 218. That’s still a lot. Get a run down of everything we talked about at this tentpole event.Become an Innovator to stay up-to-date on the latest news, product updates, events, and learning opportunities with Google Cloud.\noutput: 【Google Cloud Next '24 開發者亮點】\n\nGoogle Cloud Next '24 大會發布多項重要更新,包括:\n\n* Gemini for Google Cloud:將生成式 AI 的力量帶到多項服務中。\n* Gemini 1.5 Pro 公開預覽:功能更強大的生成式 AI 模型。\n* AlloyDB、Spanner 和 Cloud SQL 的新資料庫「工作室」和 AI 體驗:簡化資料庫管理和分析。\n* Vertex AI 模型管理功能:支援基礎、系統指令、快速評估、AI 代理建構和提示管理。\n\n其他重要更新:\n\n* Cloud Assist:幫助理解和排除雲端應用程式問題。\n* Cloud Run:新的應用程式畫布和多區域部署功能。\n* GitLab 和 Hugging Face 等合作夥伴整合。\n* Infrastructure Manager 更新:支援 Git 工作流程、私有 Git 儲存庫、配額限制驗證和更多區域。\n\n#GoogleCloudNext #開發者 #AI #資料庫 #雲端\n\ninput: Today, we're launching the general availability (GA) of Direct VPC egress for Cloud Run. This feature enables your Cloud Run resources to send traffic directly to a VPC network without proxying it through Serverless VPC Access connectors, making it easier to set up, faster, and with lower costs.\nIn fact, Direct VPC egress delivers approximately twice the throughput compared to both VPC connectors and the default Cloud Run internet egress path, offering up to 1 GB per second per instance. Whether you're sending traffic to destinations on the VPC, to other Google Cloud services like Cloud Storage, or to other destinations on the public internet, Direct VPC egress offers higher throughput and lower latency for performance-sensitive apps.\nWhat's new since the preview\nNotable improvements and new features:\n\n\nAll regions where Cloud Run is available are now enabled for Direct VPC egress.\n\n\nEach Cloud Run service revision with Direct VPC can now scale beyond 100 instances as controlled by a quota. There is a standard quota increase request process if you need to scale even more. \n\n\nCloud NAT is supported, and Direct VPC egress traffic is now included in VPC Flow Logs and Firewall Rules Logging.\n\n\nThese updates address the top issues reported by our preview customers, especially larger customers with advanced scalability, networking, and security requirements. \nCustomer feedback\nMany customers have been trying Direct VPC egress in preview since last year and have given us great feedback, including DZ BANK:\n\"With Direct VPC egress for Cloud Run, the platform team can more easily onboard new Cloud Run workloads because we no longer need to maintain Serverless VPC Access connectors and their associated dedicated /28 subnets. In our dynamic environment, where new Cloud Run services are created regularly, this simpler networking architecture saves us 4-6 hours per week of manual toil. We have also deprovisioned 30+ VPC connectors, saving on the additional compute costs for running them.\" - Tim Harpe, Senior Cloud Engineer, DZ BANK\nIf you enable direct VPC egress and send all your egress traffic to a VPC, you can leverage the same tools and capabilities for all your traffic – from Cloud Run, GKE, or VMs.\nNext steps\nDirect VPC egress is ready for your production workloads. Try it today and enjoy better performance and lower cost.\nFor a primer about how Direct VPC egress works, check out our preview blog post and its attached explainer video., pubDate=Wed Apr 24 00:00:00 GMT+08:00 2024, imageURL=null, link=https://cloud.google.com/blog/products/serverless/direct-vpc-egress-for-cloud-run-is-now-ga/, title=Direct VPC egress on Cloud Run is now generally available,\noutput: 【Cloud Run 直接 VPC 出口正式上線】\n\nCloud Run 直接 VPC 出口功能現已正式上線,可讓 Cloud Run 資源直接將流量發送到 VPC 網路,無需透過無伺服器 VPC 訪問連接器進行代理,從而更易於設置、速度更快且成本更低。\n\n直接 VPC 出口與 VPC 連接器和預設 Cloud Run 互聯網出口路徑相比,吞吐量大約提高了一倍,每個實例每秒可達 1 GB。無論您是將流量發送到 VPC 上的目標位置、其他 Google Cloud 服務(如 Cloud Storage),還是公共互聯網上的其他目標位置,直接 VPC 出口都為性能敏感型應用程式提供更高的吞吐量和更低的延遲。\n\n#CloudRun #VPC #網路 #性能 #成本\n\ninput: "+content+"\noutput:"
}
]
}
],
"generationConfig": {
"maxOutputTokens": 8192,
"temperature": 0,
"topP": 0.95,
},
"safetySettings": [
{
"category": "HARM_CATEGORY_HATE_SPEECH",
"threshold": "BLOCK_ONLY_HIGH"
},
{
"category": "HARM_CATEGORY_DANGEROUS_CONTENT",
"threshold": "BLOCK_ONLY_HIGH"
},
{
"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
"threshold": "BLOCK_ONLY_HIGH"
},
{
"category": "HARM_CATEGORY_HARASSMENT",
"threshold": "BLOCK_ONLY_HIGH"
}
],
};
var options = {
'method' : 'post',
'contentType': 'application/json',
// Convert the JavaScript object to a JSON string.
'payload' : JSON.stringify(data),
'headers': {
Authorization: `Bearer ${accessToken}`
},
};
var response = UrlFetchApp.fetch(url, options);
var data = JSON.parse(response.getContentText());
return outputSummation(data)
}
const outputSummation = (data) => {
let res = ''
for(let item of data){
if(item.error){
Logger.log(item.error.message)
return ''
}
res += item.candidates[0].content.parts[0].text
}
return res
}