feat(Google): Support all Text/Chat Models, Response streaming, PaLM -> Google 🤖 (#1316)

* feat: update PaLM icons

* feat: add additional google models

* POC: formatting inputs for Vertex AI streaming

* refactor: move endpoints services outside of /routes dir to /services/Endpoints

* refactor: shorten schemas import

* refactor: rename PALM to GOOGLE

* feat: make Google editable endpoint

* feat: reusable Ask and Edit controllers based off Anthropic

* chore: organize imports/logic

* fix(parseConvo): include examples in googleSchema

* fix: google only allows odd number of messages to be sent

* fix: pass proxy to AnthropicClient

* refactor: change `google` altName to `Google`

* refactor: update getModelMaxTokens and related functions to handle maxTokensMap with nested endpoint model key/values

* refactor: google Icon and response sender changes (Codey and Google logo instead of PaLM in all cases)

* feat: google support for maxTokensMap

* feat: google updated endpoints with Ask/Edit controllers, buildOptions, and initializeClient

* feat(GoogleClient): now builds prompt for text models and supports real streaming from Vertex AI through langchain

* chore(GoogleClient): remove comments, left before for reference in git history

* docs: update google instructions (WIP)

* docs(apis_and_tokens.md): add images to google instructions

* docs: remove typo apis_and_tokens.md

* Update apis_and_tokens.md

* feat(Google): use default settings map, fully support context for both text and chat models, fully support examples for chat models

* chore: update more PaLM references to Google

* chore: move playwright out of workflows to avoid failing tests
This commit is contained in:
Danny Avila 2023-12-10 14:54:13 -05:00 committed by GitHub
parent 8a1968b2f8
commit 583e978a82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
90 changed files with 1613 additions and 784 deletions

View file

@ -120,7 +120,7 @@ export default {
'Top K изменяет то, как модель выбирает токены для вывода. Top K равное 1 означает, что выбирается наиболее вероятный токен из всего словаря модели (так называемое жадное декодирование), а Top K равное 3 означает, что следующий токен выбирается из трех наиболее вероятных токенов (с использованием температуры).',
com_endpoint_google_maxoutputtokens:
'Максимальное количество токенов, которые могут быть сгенерированы в ответе. Укажите меньшее значение для более коротких ответов и большее значение для более длинных ответов.',
com_endpoint_google_custom_name_placeholder: 'Установите пользовательское имя для PaLM2',
com_endpoint_google_custom_name_placeholder: 'Установите пользовательское имя для Google',
com_endpoint_google_prompt_prefix_placeholder:
'Установите пользовательские инструкции или контекст. Игнорируется, если пусто.',
com_endpoint_custom_name: 'Пользовательское имя',
@ -180,7 +180,7 @@ export default {
com_endpoint_view_options: 'Просмотреть параметры',
com_endpoint_save_convo_as_preset: 'Сохранить разговор как предустановку',
com_endpoint_presets_clear_warning:
'Вы уверены, что хотите очистить все предустановки? Эти действия необратимы, и восстановление невозможно.',
'Вы уверены, что хотите очистить все предустановки? Эти действия необратимы, и восстановление невозможно.',
com_endpoint_presets: 'предустановки',
com_endpoint_my_preset: 'Моя предустановка',
com_endpoint_config_key: 'Установить ключ API',