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

请问 仿OpenAI API接口的服务器Demo,此方法仍然是生成后,一次性返回,如何是流式的通过接口返回数据呢 #831

Closed
3 of 5 tasks
SevenMpp opened this issue Aug 23, 2023 · 3 comments
Labels

Comments

@SevenMpp
Copy link

SevenMpp commented Aug 23, 2023

提交前必须检查以下项目

  • 请确保使用的是仓库最新代码(git pull),一些问题已被解决和修复。
  • 由于相关依赖频繁更新,请确保按照Wiki中的相关步骤执行
  • 我已阅读FAQ章节并且已在Issue中对问题进行了搜索,没有找到相似问题和解决方案
  • 第三方插件问题:例如llama.cpptext-generation-webuiLlamaChat等,同时建议到对应的项目中查找解决方案
  • 模型正确性检查:务必检查模型的SHA256.md,模型不对的情况下无法保证效果和正常运行

问题类型

模型推理

基础模型

Alpaca-Plus-7B

操作系统

Linux

详细描述问题

# 请在此处粘贴运行代码(如没有可删除该代码块)

使用 scripts/openai_server_demo/openai_api_server.py 中的方法,进行调用

依赖情况(代码类问题务必提供)

# 请在此处粘贴依赖情况

运行日志或截图

# 请在此处粘贴运行日志
@ymcui
Copy link
Owner

ymcui commented Aug 23, 2023

可以参考我们二代的wiki:https://github.com/ymcui/Chinese-LLaMA-Alpaca-2/wiki/api_calls_zh#聊天接口高级参数说明
其中有一个stream参数。一代这里只有一个旧的pull request(#783),并没有完成。

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your consideration.

@github-actions github-actions bot added the stale label Aug 30, 2023
@github-actions
Copy link

github-actions bot commented Sep 3, 2023

Closing the issue, since no updates observed. Feel free to re-open if you need any further assistance.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2023
@ymcui ymcui closed this as completed Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants