Commit 7e3b8c1
authored
* 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 2e0e251 commit 7e3b8c1
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
| 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