Commit 538a5b0
refactor: use _FINISH_REASON_MAPPING directly in tests
Import and use the actual _FINISH_REASON_MAPPING from lite_llm instead of
duplicating it in tests. This ensures tests stay in sync with implementation
changes automatically.
Benefits:
- Single source of truth for finish_reason mappings
- Tests automatically reflect any future mapping changes
- Reduced code duplication
- Better maintainability
Addresses review comment:
google#3114 (review)1 parent 692af95 commit 538a5b0
1 file changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
1969 | 1970 | | |
1970 | 1971 | | |
1971 | 1972 | | |
1972 | | - | |
1973 | | - | |
1974 | | - | |
1975 | | - | |
1976 | | - | |
1977 | | - | |
1978 | | - | |
1979 | | - | |
| 1973 | + | |
| 1974 | + | |
1980 | 1975 | | |
1981 | 1976 | | |
1982 | 1977 | | |
| |||
0 commit comments