From 03d89ca1882ff3b4235ff307c5590e8e747949e7 Mon Sep 17 00:00:00 2001 From: Konstantin S Date: Sun, 28 Apr 2024 02:11:14 +0400 Subject: [PATCH] Update src/Providers/DeepInfra/tools/LangChain.Providers.DeepInfra.CodeGenerator/Main/DeepInfraCodeGenerator.cs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .../Main/DeepInfraCodeGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Providers/DeepInfra/tools/LangChain.Providers.DeepInfra.CodeGenerator/Main/DeepInfraCodeGenerator.cs b/src/Providers/DeepInfra/tools/LangChain.Providers.DeepInfra.CodeGenerator/Main/DeepInfraCodeGenerator.cs index d7def3b5..162e9459 100644 --- a/src/Providers/DeepInfra/tools/LangChain.Providers.DeepInfra.CodeGenerator/Main/DeepInfraCodeGenerator.cs +++ b/src/Providers/DeepInfra/tools/LangChain.Providers.DeepInfra.CodeGenerator/Main/DeepInfraCodeGenerator.cs @@ -67,7 +67,7 @@ private static async Task> GetModelsAsync(GenerationOptions opti var links = lbb.FindNode("script", "type", "json", true); if (links == null) - throw new Exception("Model Info script node not found."); + throw new InvalidOperationException("Model Info script node not found in the HTML document."); var json = JObject.Parse(links.InnerText);