Commit 2fb8761
committed
fix: add context validation to llm_chat_create function
Added checks to ensure a valid context exists before proceeding in llm_chat_check_context and llm_chat_create. This prevents misuse by requiring llm_context_create to be called prior to llm_chat_create, improving error handling and robustness.1 parent ec505d7 commit 2fb8761
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1476 | 1476 | | |
1477 | 1477 | | |
1478 | 1478 | | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
1479 | 1484 | | |
1480 | 1485 | | |
1481 | 1486 | | |
| |||
1862 | 1867 | | |
1863 | 1868 | | |
1864 | 1869 | | |
| 1870 | + | |
| 1871 | + | |
1865 | 1872 | | |
1866 | 1873 | | |
1867 | 1874 | | |
| |||
0 commit comments