Отсканируй на iPhone, чтобы установить
Chat with Google's new Gemini AI!
Что нового
Версия 1.0
First release
Что делает
Действий: 14-
CommentEdit API key in the text action below!
-
Text
-
Set VariableAPI Key
-
Number
-
Repeat
-
Ask for InputChat with Google Gemini!
-
Text
-
Set VariableSource
-
Get Contents of URLhttps://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=…
-
Get Dictionary Value
-
Get Dictionary Value
-
Get Dictionary Value
-
Get Dictionary Value
-
Show AlertGemini
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/web'
#define color red
#define glyph brainHead
// Edit API key in the text action below!
@APIKey = "nil"
const Number = 10000
repeat _ for Number {
prompt("Chat with Google Gemini!")
@Source = "{\\"contents\\": [{\\"parts\\":[{\\"text\\": \\"{}\\"}]}]}"
const ContentsOfURL = fileRequest("https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key={@APIKey}", "POST", @Source)
const DictionaryValue = getValue(ContentsOfURL, "candidates")
const DictionaryValue1 = getValue(DictionaryValue, "content")
const DictionaryValue2 = getValue(DictionaryValue1, "parts")
alert(, "Gemini")
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от searcc
Вам также может понравиться
Реклама