Compare commits

...

2 Commits

Author SHA1 Message Date
skyrover
534ea7529c
Update sdk/api/channel.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-22 18:11:12 +08:00
skyrover
5c952ae86d
Update sdk/api/channel.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-22 18:11:00 +08:00

View File

@ -27,7 +27,7 @@ type Channel struct {
Priority int `json:"priority"`
Config string `json:"config"`
SystemPrompt string `json:"system_prompt"`
ChannelConfig ChannelConfig `json:"channel_confi"`
ChannelConfig ChannelConfig `json:"channel_config"`
}
type ChannelConfig struct {
@ -162,8 +162,7 @@ func (channel *Channel) Get(client *OneClient) error {
if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
return err
}
channel = data.Data.(*Channel)
return nil
*channel = *(data.Data.(*Channel))
}
// test channel