Commit 14edd88
committed
你feat: implement unified AI extension service with gRPC interface
- Add AI extension protobuf definitions with GenerateSQLFromNaturalLanguage RPC
- Implement unified LLM service architecture with BaseLLMConnector interface
- Update field naming to camelCase for consistency with generated protobuf code
- Refactor OllamaConnector and OpenAIConnector to extend BaseLLMConnector
- Add comprehensive error handling and response formatting
- Integrate gRPC server with reflection support for better debugging
- Update protobuf generation to support Python 3.8+ compatibility
Breaking Changes:
- Field names in protobuf messages now use camelCase format
- LLM connector interface has been restructured for better extensibility
Tested with: Python 3.8+, gRPC 1.60+, protobuf 4.25+1 parent 1f4d036 commit 14edd88
File tree
3 files changed
+134
-12
lines changed- console/atest-ui/src/views
- extensions
- pkg/server
3 files changed
+134
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
191 | 203 | | |
192 | 204 | | |
193 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
20 | 81 | | |
21 | 82 | | |
22 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
336 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
337 | 346 | | |
338 | 347 | | |
339 | 348 | | |
| |||
724 | 733 | | |
725 | 734 | | |
726 | 735 | | |
727 | | - | |
| 736 | + | |
728 | 737 | | |
729 | | - | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
730 | 753 | | |
731 | 754 | | |
732 | 755 | | |
733 | 756 | | |
734 | 757 | | |
735 | | - | |
| 758 | + | |
736 | 759 | | |
737 | | - | |
| 760 | + | |
738 | 761 | | |
739 | 762 | | |
740 | 763 | | |
741 | 764 | | |
742 | 765 | | |
743 | | - | |
| 766 | + | |
744 | 767 | | |
745 | 768 | | |
746 | 769 | | |
747 | 770 | | |
748 | 771 | | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
749 | 783 | | |
750 | 784 | | |
751 | 785 | | |
| |||
757 | 791 | | |
758 | 792 | | |
759 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
760 | 809 | | |
761 | 810 | | |
762 | 811 | | |
763 | | - | |
| 812 | + | |
764 | 813 | | |
765 | 814 | | |
766 | 815 | | |
767 | 816 | | |
768 | | - | |
| 817 | + | |
769 | 818 | | |
770 | 819 | | |
771 | 820 | | |
| |||
0 commit comments