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

template.py #431

Open
1137043480 opened this issue Dec 21, 2024 · 2 comments
Open

template.py #431

1137043480 opened this issue Dec 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@1137043480
Copy link

1137043480 commented Dec 21, 2024

Describe the bug

Please provide a clear and concise description of what the bug is. If applicable, add screenshots to help explain your problem, especially for visualization related problems.

template.py中的class Conversation中的方法get_prompt,调用_format_example方法。_format_example方法是不是应该处理messages为空的情况,比如此py文件第93行messages为[]时,那么是不是应该在此py文件第59行后,添加处理逻辑?
WechatIMG1196

@1137043480 1137043480 added the bug Something isn't working label Dec 21, 2024
@shibing624
Copy link
Owner

messages为[],就返回[],也是符合预期的。

@1137043480
Copy link
Author

1137043480 commented Dec 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants