Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forefront 如何才能用 messages 来传递上下文 #51

Open
allentofight opened this issue Jun 9, 2023 · 5 comments
Open

forefront 如何才能用 messages 来传递上下文 #51

allentofight opened this issue Jun 9, 2023 · 5 comments

Comments

@allentofight
Copy link

如何让 forefront 用上如下 mcbbs 中的 messages,这样才能用上下文,目前只有问一个问题

curl '127.0.0.1:3000/ask/stream?messages=[{"role":"system","content":"IMPORTANT: You are a virtual assistant powered by the gpt-3.5-turbo model, now time is 2023/6/3 13:42:27}"},{"role":"user","content":"你好\n"},{"role":"assistant","content":"你好!有什么我可以帮助你的吗?"},{"role":"user","content":"写个冒泡排序\n"}]&prompt=test&model=mcbbs&parse=false'
@xiangsx
Copy link
Owner

xiangsx commented Jun 9, 2023

放在prompt里面传过去,比如'我的历史对话是"[]",我的问题是'

@ElvaWalton
Copy link

放在prompt里面传过去

1 similar comment
@MartinMelville
Copy link

放在prompt里面传过去

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@allentofight @xiangsx @ElvaWalton @MartinMelville and others