Commit 8ade97f
committed
fix: revert BaseOpenAiCompatibleProvider and hide max tokens slider for OpenAI compatible providers
- Reverted BaseOpenAiCompatibleProvider to use maxTokens directly from model info
- OpenAI compatible providers have their own server-side max output configuration
- Hidden the generic MaxTokensSlider for OpenAI compatible provider in the UI
- This ensures OpenAI compatible providers use their own max tokens configuration1 parent 7623d21 commit 8ade97f
File tree
2 files changed
+12
-13
lines changed- src/api/providers
- webview-ui/src/components/settings
2 files changed
+12
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
80 | 77 | | |
81 | | - | |
| 78 | + | |
82 | 79 | | |
83 | 80 | | |
84 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
583 | 585 | | |
584 | 586 | | |
585 | 587 | | |
| |||
0 commit comments