Skip to content

Commit 013fdd7

Browse files
committed
style
1 parent f8c5425 commit 013fdd7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/configs/rag/custom_rag_output_rails/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
from langchain_core.prompts import PromptTemplate
1716
from langchain_core.language_models.llms import BaseLLM
1817
from langchain_core.output_parsers import StrOutputParser
18+
from langchain_core.prompts import PromptTemplate
1919

2020
from nemoguardrails import LLMRails
2121
from nemoguardrails.actions.actions import ActionResult

tests/llm_providers/test_langchain_integration.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,18 @@ def test_langchain_provider_imports():
124124
for provider_name in llm_provider_names:
125125
try:
126126
provider_cls = _llm_providers[provider_name]
127-
assert provider_cls is not None, (
128-
f"Provider class for '{provider_name}' is None"
129-
)
127+
assert (
128+
provider_cls is not None
129+
), f"Provider class for '{provider_name}' is None"
130130
except Exception as e:
131131
warnings.warn(f"Failed to import LLM provider '{provider_name}': {str(e)}")
132132

133133
for provider_name in chat_provider_names:
134134
try:
135135
provider_cls = _chat_providers[provider_name]
136-
assert provider_cls is not None, (
137-
f"Provider class for '{provider_name}' is None"
138-
)
136+
assert (
137+
provider_cls is not None
138+
), f"Provider class for '{provider_name}' is None"
139139
except Exception as e:
140140
warnings.warn(f"Failed to import chat provider '{provider_name}': {str(e)}")
141141

0 commit comments

Comments
 (0)