Compare commits

..

1 Commits

Author SHA1 Message Date
skyrover
db83f7ae2d
Merge e5f5c9a4c7 into 8df4a2670b 2025-04-22 06:52:26 +00: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_config"`
ChannelConfig ChannelConfig `json:"channel_confi"`
}
type ChannelConfig struct {
@ -162,7 +162,8 @@ func (channel *Channel) Get(client *OneClient) error {
if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
return err
}
*channel = *(data.Data.(*Channel))
channel = data.Data.(*Channel)
return nil
}
// test channel