JesusMan0529 commented on code in PR #378:
URL: https://github.com/apache/hugegraph-ai/pull/378#discussion_r4194573342
##########
hugegraph-llm/src/hugegraph_llm/demo/rag_demo/configs_block.py:
##########
@@ -779,6 +795,38 @@ def vector_engine_settings(engine):
apply_faiss_button = gr.Button("Apply Configuration")
apply_faiss_button.click(lambda: apply_vector_engine(engine))
+ def refresh_llm_config(revision):
+ with runtime_config_lock:
+ try:
+ reloaded = type(llm_settings)()
+ _restore_config(llm_settings, reloaded.model_dump())
Review Comment:
Fixed in 76a8ea0. Provider functions and factories now use a settings
snapshot taken under the reload lock, including embeddings and rerankers.
Client construction and embedding calls run after releasing the lock. Added
concurrent reload tests for all nine entry points, plus checks for delayed
construction and refresh during dimension detection.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]