暗能星系

    • 登录
    • 搜索

    open Web UI 配置title/默认语言

    问题记录及解决
    1
    1
    9
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • Z
      zhangfanglin 最后由 编辑

      1、默认title配置

      目前代码backend中有个congfig.py文件,打开增加一行代码

      WEBUI_NAME = _get_env_by_type("WEBUI_NAME", dft="灵岸")
      

      然后在.env中才能生效

      2、配置语言

      目前docker有映射一个dada目录,在目录中找到config.json文件,修改如下 "default_locale": "zh-CN",:

      
      {
          "version": 0,
          "ui": {
              "default_locale": "zh-CN",
              "prompt_suggestions": [
                  {
                      "title": [
                          "Help me study",
                          "vocabulary for a college entrance exam"
                      ],
                      "content": "Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."
                  }
              ]
          }
      }
      

      最后重启灵岸docker服务

      1 条回复 最后回复 回复 引用 0
      • First post
        Last post
      Powered by 暗能星系