mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-08 17:53:41 +08:00
fix
This commit is contained in:
@@ -149,6 +149,10 @@ func init() {
|
|||||||
channelId2Models = make(map[int][]string)
|
channelId2Models = make(map[int][]string)
|
||||||
for i := 1; i < common.ChannelTypeDummy; i++ {
|
for i := 1; i < common.ChannelTypeDummy; i++ {
|
||||||
adaptor := helper.GetAdaptor(constant.ChannelType2APIType(i))
|
adaptor := helper.GetAdaptor(constant.ChannelType2APIType(i))
|
||||||
|
if adaptor == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
meta := &util.RelayMeta{
|
meta := &util.RelayMeta{
|
||||||
ChannelType: i,
|
ChannelType: i,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user