Repository navigation
How to pass extra_headers argument to litellm model #2167
Unanswered
Akshay Bindlish (akshaybndlsh3)
asked this question in
Q&A
Replies: 1 comment
|
If you're using the pip installation, you shouldn't need to modify GraphRAG exposes completion_models:
default_completion_model:
model_provider: openai
model: <your-model>
auth_method: api_key
api_key: ${API_KEY}
call_args:
extra_headers:
X-Custom-Header: ${CUSTOM_HEADER}If you need multiple headers: call_args:
extra_headers:
X-Custom-Header: ${CUSTOM_HEADER}
X-Another-Header: ${ANOTHER_HEADER}GraphRAG documents If this doesn't work with the specific GraphRAG version you're using, I'd check the installed version first because the configuration format has changed between GraphRAG releases. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
How can we pass extra_headers argument to litellm model which is mentioned below in _get_kwargs function from settings.yaml or otherwise ?
I'm using graphrag installation from pip.
graphrag/language_model/providers/litellm/chat_model.py
All reactions