Commit 51c5e78
committed
feat(ai): configurable max_tokens for extraction via init and database
- Add --max-tokens flag to configure.py ai-provider
- Store max_tokens in ai_extraction_config table (column already existed)
- OpenRouterProvider reads max_tokens from config (default 16384)
- Init flow prompts for max tokens with press-enter-to-accept default
- Factory passes max_tokens from database config to provider1 parent d9c6e43 commit 51c5e78
3 files changed
Lines changed: 25 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
973 | 973 | | |
974 | 974 | | |
975 | 975 | | |
| 976 | + | |
976 | 977 | | |
977 | 978 | | |
978 | 979 | | |
| |||
982 | 983 | | |
983 | 984 | | |
984 | 985 | | |
| 986 | + | |
985 | 987 | | |
986 | 988 | | |
987 | 989 | | |
| |||
1012 | 1014 | | |
1013 | 1015 | | |
1014 | 1016 | | |
| 1017 | + | |
1015 | 1018 | | |
1016 | 1019 | | |
1017 | 1020 | | |
| |||
1028 | 1031 | | |
1029 | 1032 | | |
1030 | 1033 | | |
1031 | | - | |
| 1034 | + | |
1032 | 1035 | | |
1033 | 1036 | | |
1034 | 1037 | | |
| |||
1836 | 1839 | | |
1837 | 1840 | | |
1838 | 1841 | | |
| 1842 | + | |
1839 | 1843 | | |
1840 | 1844 | | |
1841 | 1845 | | |
1842 | 1846 | | |
1843 | | - | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
1844 | 1850 | | |
1845 | 1851 | | |
1846 | 1852 | | |
| |||
1859 | 1865 | | |
1860 | 1866 | | |
1861 | 1867 | | |
1862 | | - | |
| 1868 | + | |
| 1869 | + | |
1863 | 1870 | | |
1864 | 1871 | | |
1865 | 1872 | | |
| |||
1902 | 1909 | | |
1903 | 1910 | | |
1904 | 1911 | | |
| 1912 | + | |
1905 | 1913 | | |
1906 | 1914 | | |
1907 | 1915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
164 | | - | |
165 | | - | |
| 165 | + | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| 171 | + | |
170 | 172 | | |
171 | | - | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
| |||
653 | 655 | | |
654 | 656 | | |
655 | 657 | | |
| 658 | + | |
656 | 659 | | |
657 | 660 | | |
658 | 661 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
550 | 556 | | |
551 | 557 | | |
552 | 558 | | |
553 | 559 | | |
554 | | - | |
555 | | - | |
| 560 | + | |
| 561 | + | |
556 | 562 | | |
557 | 563 | | |
558 | 564 | | |
| |||
0 commit comments