Commit 040f829
committed
Add DeepSeek, Grok, Mistral providers; expand model dropdowns
note_generation.py:
- Add _provider() detection for deepseek, grok, mistral/codestral
- Add _make_client() for all three (all use OpenAI-compat API):
DeepSeek → https://api.deepseek.com (deepseek_key.txt)
xAI Grok → https://api.x.ai/v1 (grok_key.txt)
Mistral → https://api.mistral.ai/v1 (mistral_key.txt)
- Refactor _make_client() to use shared _read_key() helper
main.js / app.js:
- Read/write deepseek_key.txt, grok_key.txt, mistral_key.txt
- Add DeepSeek, xAI Grok, Mistral credential fields in Settings
Model dropdowns (NOTE_MODEL & VERIFY_MODEL):
- OpenAI: GPT-5.1/5.2, GPT-4.1/mini/nano, o3/o4-mini/o3-mini
- Anthropic: Opus 4.6, Sonnet 4.6/4.5/3.5, Haiku 4.5/3.5
- Gemini: 2.5 Pro, 2.5 Flash, 2.5 Flash Lite, 2.0 Flash
- DeepSeek: deepseek-chat (V3), deepseek-reasoner (R1)
- Grok: grok-3, grok-3-mini
- Mistral: mistral-large/medium/small, codestral1 parent 4f7dfe8 commit 040f829
4 files changed
Lines changed: 84 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| |||
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
821 | 822 | | |
822 | | - | |
823 | | - | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
824 | 835 | | |
825 | 836 | | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
830 | 850 | | |
831 | 851 | | |
832 | 852 | | |
| |||
952 | 972 | | |
953 | 973 | | |
954 | 974 | | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
955 | 983 | | |
956 | 984 | | |
957 | 985 | | |
| |||
1020 | 1048 | | |
1021 | 1049 | | |
1022 | 1050 | | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
1023 | 1054 | | |
1024 | 1055 | | |
1025 | 1056 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
508 | 514 | | |
509 | 515 | | |
510 | 516 | | |
| |||
513 | 519 | | |
514 | 520 | | |
515 | 521 | | |
516 | | - | |
517 | | - | |
518 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
519 | 526 | | |
520 | | - | |
| 527 | + | |
521 | 528 | | |
522 | 529 | | |
523 | 530 | | |
524 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
525 | 538 | | |
526 | | - | |
| 539 | + | |
527 | 540 | | |
528 | 541 | | |
529 | 542 | | |
530 | 543 | | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
539 | 560 | | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
| 561 | + | |
549 | 562 | | |
550 | 563 | | |
551 | 564 | | |
| |||
0 commit comments