Commit eae3853
Add error handling when @aimodel not found in @AIConfigTable
When users specify an @aimodel that doesn't exist in their
@AIConfigTable, the procedures now raise an informational message
naming the requested model, the config table searched, and the
fallback model being used instead (either the table's DefaultModel
or the hard-coded gpt-5-nano).
Also widens the config table INSERT to always load the DefaultModel
row, so the fallback can use it, and filters the ELSE branch to
prefer the exact model match.
Fixes #3839
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2dea66a commit eae3853
2 files changed
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
920 | | - | |
| 920 | + | |
921 | 921 | | |
922 | 922 | | |
923 | 923 | | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
924 | 936 | | |
925 | 937 | | |
926 | 938 | | |
| |||
974 | 986 | | |
975 | 987 | | |
976 | 988 | | |
| 989 | + | |
977 | 990 | | |
978 | 991 | | |
979 | 992 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1031 | 1031 | | |
1032 | 1032 | | |
1033 | 1033 | | |
1034 | | - | |
| 1034 | + | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1038 | 1050 | | |
1039 | 1051 | | |
1040 | 1052 | | |
| |||
1083 | 1095 | | |
1084 | 1096 | | |
1085 | 1097 | | |
| 1098 | + | |
1086 | 1099 | | |
1087 | 1100 | | |
1088 | 1101 | | |
| |||
0 commit comments