Commit 1a12ea9
committed
Fix disabled instance check in text generation and empty registry fallback
- TextGenerationLive: Add enabled check in resolveInstance so disabled
provider instances surface a TextGenerationError instead of silently
executing text generation, matching the documented behavior.
- ProviderInstanceRegistryHydration: Fall back to DEFAULT_SERVER_SETTINGS
instead of an empty ProviderInstanceConfigMap when the initial settings
read fails, ensuring built-in driver default instances are materialized
even on transient I/O errors during boot.1 parent b1bb7a2 commit 1a12ea9
2 files changed
Lines changed: 12 additions & 7 deletions
File tree
- apps/server/src
- git/Layers
- provider/Layers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
161 | | - | |
162 | | - | |
| 162 | + | |
| 163 | + | |
163 | 164 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 165 | + | |
168 | 166 | | |
169 | 167 | | |
170 | 168 | | |
| |||
0 commit comments