Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
/ bard-web Public archive

使用谷歌Bard接口,实现简单HTML网页版在线聊天(支持连续对话及会话隔离)

Notifications You must be signed in to change notification settings

slippersheepig/bard-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bardchat

  • 基于acheong08/Bard使用谷歌Bard接口,实现简单HTML网页版在线聊天(支持连续对话及会话隔离)
  • 更多问题可参考官方FAQ

部署

获取COOKIE

  • 打开https://bard.google.com
    • F12打开浏览器控制台
    • 打开应用程序-Cookie,在对应上方网址的COOKIE里找到__Secure-1PSID__Secure-1PSIDTS字段,复制其value值备用

使用Docker Compose配置

  • 新建docker-compose.yml文件,粘贴以下内容并保存
services:
  chatgpt:
    image: sheepgreen/bard-web
    container_name: bardchat
    environment:
      - BARD__Secure_1PSID=上方获取到的value值
      - BARD__Secure_1PSIDTS=上方获取到的value值
    ports:
      - "9898:8088" #8088为容器内端口,不可更换;9898为外部端口,可自行更换
    restart: always
  • 输入docker-compose up -d即启动成功

注意事项

About

使用谷歌Bard接口,实现简单HTML网页版在线聊天(支持连续对话及会话隔离)

Topics

Resources

Stars

Watchers

Forks