Skip to content

Commit

Permalink
Update src/Providers/DeepInfra/tools/LangChain.Providers.DeepInfra.Co…
Browse files Browse the repository at this point in the history
…deGenerator/Main/DeepInfraCodeGenerator.cs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
HavenDV and coderabbitai[bot] authored Apr 27, 2024
1 parent 687c0e2 commit 03d89ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private static async Task<List<ModelInfo>> 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);

Expand Down

0 comments on commit 03d89ca

Please sign in to comment.