爱意满满的作品展示区。
sardina

用 Golang 写了一个 Bing Ai Chat Sdk,欢迎试用😊

  •  
  •   sardina · Apr 22, 2023 · 2502 views
    This topic created in 1293 days ago, the information mentioned may be changed or developed.

    Github 地址: https://github.com/labulakalia/bingchat

    首先要有一个 Bing Ai 的权限,并且可以连接,否则需要先设置http_proxy或者https_proxy哦

    使用示例

    ➜ ./bingchat -c cookies.json
    local http proxy is set
    Bing Ai Chat Copilot
    /reset [styles]
          1  more create
          2  more balance
          3  more precise
    /quit
      quit
    /help
      print help
    Current Style: Balance 
    Ask> hello
    Hello! How can I help you today? 😊
    Prompt suggest
    1: What is the weather like today?
    2: What is the latest news?
    3: Can you tell me a joke?
    Ask> 2
    Here are some of the latest news sources you can check out:
    - [The Guardian]( https://www.theguardian.com/world)
    - [NBC News]( https://www.nbcnews.com/latest-stories)
    - [RTÉ News]( https://www.rte.ie/news/)
    
    Which one would you like to check out?
    Prompt suggest
    1: What is the latest news on politics?
    2: What is the latest news on sports?
    3: What is the latest news on entertainment?
    Ask> /reset 1
    Switch Style Create
    Ask> 
    
    

    欢迎 Star/PR

    billzhuang
    billzhuang
    Apr 22, 2023 via iPhone
    1
    bing ai 的 api 在哪儿?
    sardina
    sardina
    OP
    Apr 22, 2023 via iPhone
    2
    @billzhuang 没有 api ,爬网页的接口,需要自已导出 bing.com 的 cookie 来使用
    sardina
    sardina
    OP
    Apr 22, 2023
    3
    修复了会话被 bing 关闭后,不能继续发消息的 bug
    laizenan
    laizenan
    Apr 24, 2023
    4
    有点像 EdgeGPT ,用 js 写了个类似的( https://github.com/lonelam/EdgeGPTJs) 主要的痛点在于手动导出 cookie 的步骤过于复杂,对用户不友好。如果能封装一个页面,然后手动拿 cookie ,会不会更好用。
    sardina
    sardina
    OP
    Apr 24, 2023
    5
    @laizenan 确实挺复杂的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4857 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 07:58 · PVG 15:58 · LAX 23:58 · JFK 02:58
    ♥ Do have faith in what you're doing.