vectorer123
V2EX  ›  问与答

关于接入 AI 问题

  •  
  •   vectorer123 · May 8, 2024 · 1777 views
    This topic created in 920 days ago, the information mentioned may be changed or developed.

    各位请教一下 现在的 AI 角色都是内置 prompt 么,那怎么保持会话消息,让 AI 记住之前用户的提问,串联起来

    3 replies  •  2024-05-08 14:49:41 +08:00
    vacuitym
    vacuitym
    May 8, 2024❤️1
    1
    用 API 对接,可以自己设置 prompt ,会话消息的保持是每次新对话都把历史对话传输过去(现在铜币很宝贵,我纠结了很久要不要回你)
    vectorer123
    vectorer123
    OP
    May 8, 2024
    2
    @vacuitym 把历史对话消息传输过去 这样不是很消耗 token 么
    vacuitym
    vacuitym
    May 8, 2024
    3
    @linwuhi 没错,我有写过一个介绍,你可以大致看下: https://vacuity.me/chatgpt-context-token/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2120 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 07:51 · PVG 15:51 · LAX 23:51 · JFK 02:51
    ♥ Do have faith in what you're doing.