(item: ProviderV2.MutableInfo | ModelV2.MutableInfo)
| 97 | } |
| 98 | |
| 99 | const normalizeApi = (item: ProviderV2.MutableInfo | ModelV2.MutableInfo) => { |
| 100 | if (typeof item.request.body.baseURL !== "string") return |
| 101 | item.api.url = item.request.body.baseURL |
| 102 | delete item.request.body.baseURL |
| 103 | } |
| 104 | |
| 105 | const state = State.create<Data, Draft>({ |
| 106 | initial: () => ({ providers: new Map() }), |