Skip to content

Commit

Permalink
docs: google gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
dingyi222666 committed Dec 22, 2023
1 parent bbc837a commit 7a00174
Show file tree
Hide file tree
Showing 9 changed files with 2,756 additions and 1,260 deletions.
Binary file added .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
4 changes: 4 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ function sidebarGuide() {
text: 'New Bing',
link: '/guide/configure-model-platform/bing-chat',
},
{
text: 'Google gemini',
link: '/guide/configure-model-platform/google-gemini',
},
{
text: 'Claude 2',
link: '/guide/configure-model-platform/cluade-2',
Expand Down
47 changes: 47 additions & 0 deletions docs/guide/configure-model-platform/google-gemini.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Google gemini

## 介绍

Google gemini 是谷歌在 2023 年年底宣布推出其认为规模最大、功能最强大的人工智能模型。

Google 目前推出了免费的 `gemini-pro` 模型,快去试试吧!

本适配器不支持 `plugin` 聊天模式,不能让模型调用本地插件工具。

## 安装

前往插件市场,搜索 `chatluna-google-gemini-adapter`,安装即可。

![images](../../public/images/plugin_gemini_pic_1.png)

## 配置

在配置之前,请先前往 [Google AI Studio](https://makersuite.google.com/app/apikey) 获取 Google AI Studio 平台的 `API KEY`

如使用为其他代理平台(转发接口,API-ADAPTER),还需额外获取 API host 地址。

::: tip 提示
未来我们可能会录制官方教程,敬请期待。
:::

获取到 `API KEY` 后,转到 `gemini-adapter` 的配置页面。

默认插件有一个空的适配项,填入你的 `API KEY` 即可。

![images](../../public/images/plugin_gemini_config_1.png)

记得点击右上角的保存按钮。

## 使用

在 OpenAI 适配器的配置页面,点击运行按钮,如无误,你应该看不到任何错误 log,那即可转到 ChatLuna 的主插件页面。

在主插件页面,下划到 [模版房间选项](../useful-configurations.md#模版房间选项),查看 [defaultModel](../useful-configurations.md#defaultmodel) 的选项里是否含有 `gemini` 模型,如果有,则说明你已经成功地接入了 Google 平台。

![images](../../public/images/plugin_gemini_config_2.png)

## 常见问题

### 1. 国内平台如何接入?

国内平台接入 Google 官方的接口,需要代理设置,前往主插件的配置页面,开启 [代理模式](../useful-configurations.md/#isproxy),然后配置 [代理地址](../useful-configurations.md#proxyaddress)
Binary file added docs/public/images/plugin_gemini_config_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/images/plugin_gemini_config_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/images/plugin_gemini_pic_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
"build": "vitepress build docs",
"serve": "vitepress serve docs"
}
}
}
3,962 changes: 2,703 additions & 1,259 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 7a00174

Please sign in to comment.