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

[Bug]: different request bodies uesd by query llm and index llm #1617

Open
3 tasks done
kebuAAA opened this issue Jan 13, 2025 · 0 comments
Open
3 tasks done

[Bug]: different request bodies uesd by query llm and index llm #1617

kebuAAA opened this issue Jan 13, 2025 · 0 comments
Labels
bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer

Comments

@kebuAAA
Copy link

kebuAAA commented Jan 13, 2025

Do you need to file an issue?

  • I have searched the existing issues and this bug is not already filed.
  • My model is hosted on OpenAI or Azure. If not, please look at the "model providers" issue and don't file a new one here.
  • I believe this is a legitimate bug, not just a question. If this is a question, please use the Discussions area.

Describe the bug

I'm a little confuse why the request body of query llm doesn't follow the standard just as the index llm(set the llm type to "openai_chat"). Take the query question "1+2=?" as an example. The request body of query llm seems to be like following structure(just list the data parameter):

{
"messages":"1+2=?"
}

This is not the standard request body of openai:

{
"messages":[
      {
        "role": "user",
        "content": "1+2=?"
      }
],
}

I wonder why the request body of queryllm and index llm differ, thanks for your time.

Steps to reproduce

No response

Expected Behavior

No response

GraphRAG Config Used

# Paste your config here

Logs and screenshots

No response

Additional Information

  • GraphRAG Version:
  • Operating System:
  • Python Version:
  • Related Issues:
@kebuAAA kebuAAA added bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant