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

system's content is blank #89

Open
vicliu624 opened this issue Aug 3, 2024 · 1 comment
Open

system's content is blank #89

vicliu624 opened this issue Aug 3, 2024 · 1 comment

Comments

@vicliu624
Copy link

vicliu624 commented Aug 3, 2024

when i use IF_AI_tools.json to test. In IF_Chat_Prompt, engine is 'lmstudio' and tool is 'None'.
but server log show
[2024-08-04 00:03:05.289] [ERROR] [Server Error] {"title":'"messages' array must only contain objects with a 'content' field that is not empty"}
in LM Studio.

The reason is content is "", when role is system.

'''
[2024-08-04 00:03:05.289] [INFO] Received POST request to /v1/chat/completions with body: {
"model": "xtuner/llava-llama-3-8b-v1_1-gguf/llava-llama-3-8b-v1_1-int4.gguf",
"messages": [
{
"role": "system",
"content": ""
},
{
"role": "user",
"content": "a flower\n[Image data:
....
'''
Possitive prompt cant generate.Response is
'''
400 Client Error: Bad Request for url: http://127.0.0.1:1234/v1/chat/completions Pixar, animated, whimsical, exaggerated, stylized,
'''
How to avoid this error.How to set system's content.

@if-ai
Copy link
Owner

if-ai commented Aug 6, 2024

right maybe did you select assistant none? this looks like a bug I made somewhere but meanwhile maybe you can create a new preset that says something like "you are a helpful assistant" or use the prime directives

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