Skip to content

Commit c018acc

Browse files
committed
Exit ollama code
1 parent 9abeb9f commit c018acc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/xmagics/xassist.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ namespace xcpp
326326
return "";
327327
}
328328

329+
if (url.empty())
330+
{
331+
std::cerr << "URL not found." << std::endl;
332+
return "";
333+
}
334+
329335
const std::string post_data = R"({
330336
"model": ")" + model
331337
+ R"(",

0 commit comments

Comments
 (0)