fix streamSupportedChannels
This commit is contained in:
@@ -103,3 +103,9 @@ Use `bun` as the preferred package manager and script runner for the frontend (`
|
||||
- `bun run dev` for development server
|
||||
- `bun run build` for production build
|
||||
- `bun run i18n:*` for i18n tooling
|
||||
|
||||
### Rule 4: New Channel StreamOptions Support
|
||||
|
||||
When implementing a new channel:
|
||||
- Confirm whether the provider supports `StreamOptions`.
|
||||
- If supported, add the channel to `streamSupportedChannels`.
|
||||
|
||||
@@ -98,3 +98,9 @@ Use `bun` as the preferred package manager and script runner for the frontend (`
|
||||
- `bun run dev` for development server
|
||||
- `bun run build` for production build
|
||||
- `bun run i18n:*` for i18n tooling
|
||||
|
||||
### Rule 4: New Channel StreamOptions Support
|
||||
|
||||
When implementing a new channel:
|
||||
- Confirm whether the provider supports `StreamOptions`.
|
||||
- If supported, add the channel to `streamSupportedChannels`.
|
||||
|
||||
@@ -98,3 +98,9 @@ Use `bun` as the preferred package manager and script runner for the frontend (`
|
||||
- `bun run dev` for development server
|
||||
- `bun run build` for production build
|
||||
- `bun run i18n:*` for i18n tooling
|
||||
|
||||
### Rule 4: New Channel StreamOptions Support
|
||||
|
||||
When implementing a new channel:
|
||||
- Confirm whether the provider supports `StreamOptions`.
|
||||
- If supported, add the channel to `streamSupportedChannels`.
|
||||
|
||||
@@ -305,6 +305,9 @@ var streamSupportedChannels = map[int]bool{
|
||||
constant.ChannelTypeAli: true,
|
||||
constant.ChannelTypeSubmodel: true,
|
||||
constant.ChannelTypeCodex: true,
|
||||
constant.ChannelTypeMoonshot: true,
|
||||
constant.ChannelTypeMiniMax: true,
|
||||
constant.ChannelTypeSiliconFlow: true,
|
||||
}
|
||||
|
||||
func GenRelayInfoWs(c *gin.Context, ws *websocket.Conn) *RelayInfo {
|
||||
|
||||
Reference in New Issue
Block a user