mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-12-03 02:16:42 +00:00
fixes a critical bug where Ollama options were not being applied correctly
`dict.update()` modifies the dictionary in-place and returns `None`.
This commit is contained in:
parent
bd94714b15
commit
645f81f7c8
@ -363,7 +363,7 @@ def create_app(args):
|
||||
llm_model_kwargs={
|
||||
"host": args.llm_binding_host,
|
||||
"timeout": args.timeout,
|
||||
"options": {"num_ctx": args.ollama_num_ctx}.update(OllamaLLMOptions.options_dict(args)),
|
||||
"options": OllamaLLMOptions.options_dict(args),
|
||||
"api_key": args.llm_binding_api_key,
|
||||
}
|
||||
if args.llm_binding == "lollms" or args.llm_binding == "ollama"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user