Skip to content

Commit

Permalink
disallow users from configuring the useGlobalApiToken parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cr7258 committed Nov 26, 2024
1 parent 13dae0b commit d1f534d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/wasm-go/extensions/ai-proxy/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ func (c *ProviderConfig) FromJson(json gjson.Result) {
if c.baiduApiTokenServicePort == 0 {
c.baiduApiTokenServicePort = baiduApiTokenPort
}

c.useGlobalApiToken = json.Get("useGlobalApiToken").Bool()
}

func (c *ProviderConfig) Validate() error {
Expand Down

0 comments on commit d1f534d

Please sign in to comment.