Commit b2ddd27
Update Anthropic prompt driver with Claude 4.5/4.6 models (#71)
* feat: update Anthropic prompt driver with Claude 4.5/4.6 models
Add support for latest Claude models and deprecate older versions:
Models added to dropdown:
- claude-opus-4-6
- claude-sonnet-4-6 (new default)
- claude-haiku-4-5-20251001
Deprecated models (auto-migrated):
- claude-3-5-sonnet-20241022 → claude-sonnet-4-6
- claude-3-5-sonnet-20240620 → claude-sonnet-4-6
- claude-3-5-haiku-20241022 → claude-haiku-4-5-20251001
- claude-3-opus-20240229 → claude-opus-4-6
- claude-3-sonnet-20240229 → claude-sonnet-4-6
- claude-3-haiku-20240307 → claude-haiku-4-5-20251001
- claude-3-7-sonnet-latest → claude-sonnet-4-6
- claude-3-5-sonnet-latest → claude-sonnet-4-6
- claude-3-5-opus-latest → claude-opus-4-6
- claude-3-5-haiku-latest → claude-haiku-4-5-20251001
Implementation:
- Add deprecation notice UI with dismiss button
- Position notice below model parameter for visibility
- Implement before_value_set() for automatic model migration
- Fix top_p parameter handling to only set when not None
- Bump library version to 0.67.1
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* fix: add type guard for model value in before_value_set
Add isinstance check to ensure value is a string before checking against DEPRECATED_MODELS dictionary. Bump library version to 0.67.3.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 6854b21 commit b2ddd27
2 files changed
Lines changed: 70 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
| 13 | + | |
11 | 14 | | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
27 | 46 | | |
28 | 47 | | |
29 | 48 | | |
| |||
53 | 72 | | |
54 | 73 | | |
55 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
56 | 93 | | |
57 | 94 | | |
58 | 95 | | |
59 | 96 | | |
60 | 97 | | |
61 | | - | |
| 98 | + | |
62 | 99 | | |
63 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
64 | 120 | | |
65 | 121 | | |
66 | 122 | | |
| |||
92 | 148 | | |
93 | 149 | | |
94 | 150 | | |
95 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
96 | 155 | | |
97 | 156 | | |
98 | 157 | | |
| |||
0 commit comments