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

是否可以修改接口处理messages的逻辑? #195

Open
chenjx56 opened this issue Nov 20, 2023 · 2 comments
Open

是否可以修改接口处理messages的逻辑? #195

chenjx56 opened this issue Nov 20, 2023 · 2 comments

Comments

@chenjx56
Copy link

我想在api请求时调用model.generate方法而不是model.chat方法,但是我修改openai_api.py文件并没有起到任何作用

@li-plus
Copy link
Owner

li-plus commented Nov 22, 2023

model.generate 应该对应 OpenAI completions api,但已经 deprecated 了,所以没继续支持。请问是希望使用 openai api 调用 codegeex2 模型吗?

@chenjx56
Copy link
Author

model.generate 应该对应 OpenAI completions api,但已经 deprecated 了,所以没继续支持。请问是希望使用 openai api 调用 codegeex2 模型吗?

只是自己微调模型过程中,有加入额外的指令信息去引导模型输出,所以希望能够自己控制model.chat的操作过程。
感谢回复~

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

2 participants