Skip to content

Commit

Permalink
Refactor llm initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-AH-Heller committed Feb 27, 2024
1 parent 74f1d5a commit 8c0d6a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama-index-core/llama_index/core/chat_engine/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def from_defaults(
**kwargs: Any,
) -> "ContextChatEngine":
"""Initialize a ContextChatEngine from default parameters."""
llm = llm_from_settings_or_context(Settings, service_context)
llm = llm or llm_from_settings_or_context(Settings, service_context)

chat_history = chat_history or []
memory = memory or ChatMemoryBuffer.from_defaults(
Expand Down

0 comments on commit 8c0d6a0

Please sign in to comment.