diff --git a/semantic_router/layer.py b/semantic_router/layer.py index 694f4ebe0d80e4303a5ad07a61d23afa454f0f24..186b32d0e8b829aced4fa1e2caeb7d75bf048b14 100644 --- a/semantic_router/layer.py +++ b/semantic_router/layer.py @@ -110,9 +110,9 @@ class LayerConfig: llm_class = getattr(llm_module, llm_data["class"]) # Instantiate the LLM class with the provided model name llm = llm_class(name=llm_data["model"]) - route_data["llm"] = ( - llm # Reassign the instantiated llm object back to route_data - ) + route_data[ + "llm" + ] = llm # Reassign the instantiated llm object back to route_data # Dynamically create the Route object using the remaining route_data route = Route(**route_data)