Compare commits

..

No commits in common. "534ea7529ce083598084f2c314740d5d54232da9" and "e5f5c9a4c70b3e574fd74a9d069ce59552a1c483" have entirely different histories.

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