mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 04:37:31 +08:00
set include_usage by default for all model providers (#1818)
This commit is contained in:
@@ -292,6 +292,10 @@ func (c *ProviderConfig) GetProtocol() string {
|
||||
return c.protocol
|
||||
}
|
||||
|
||||
func (c *ProviderConfig) IsOpenAIProtocol() bool {
|
||||
return c.protocol == protocolOpenAI
|
||||
}
|
||||
|
||||
func (c *ProviderConfig) FromJson(json gjson.Result) {
|
||||
c.id = json.Get("id").String()
|
||||
c.typ = json.Get("type").String()
|
||||
|
||||
Reference in New Issue
Block a user