Commit 1fb74b8
committed
fix: adapt intent recognition to upstream v1.6.0 API changes
- Remove message history round-limit for intent recognition context
- Add db_schema guard in choose_table_schema() to skip RAG when
guess_tables already set schema
- Delay init_messages() when intent recognition is enabled
- Fix init_messages() calls to pass required session parameter (v1.6.0)
- Add i18n labels for RECOGNIZE_INTENT and GENERATE_CLARIFICATION
in zh-CN, en, ko-KR1 parent 7f14b68 commit 1fb74b8
4 files changed
Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
| 332 | + | |
334 | 333 | | |
335 | | - | |
| 334 | + | |
336 | 335 | | |
337 | 336 | | |
338 | 337 | | |
| |||
678 | 677 | | |
679 | 678 | | |
680 | 679 | | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
681 | 683 | | |
682 | 684 | | |
683 | 685 | | |
| |||
1421 | 1423 | | |
1422 | 1424 | | |
1423 | 1425 | | |
1424 | | - | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
1425 | 1429 | | |
1426 | 1430 | | |
1427 | 1431 | | |
| |||
1456 | 1460 | | |
1457 | 1461 | | |
1458 | 1462 | | |
1459 | | - | |
| 1463 | + | |
1460 | 1464 | | |
1461 | 1465 | | |
1462 | 1466 | | |
1463 | 1467 | | |
1464 | 1468 | | |
1465 | 1469 | | |
1466 | 1470 | | |
1467 | | - | |
| 1471 | + | |
1468 | 1472 | | |
1469 | 1473 | | |
1470 | 1474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
744 | | - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
745 | 747 | | |
746 | 748 | | |
747 | 749 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
744 | | - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
745 | 747 | | |
746 | 748 | | |
747 | 749 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
744 | | - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
745 | 747 | | |
746 | 748 | | |
747 | 749 | | |
| |||
0 commit comments