Skip to content

Commit

Permalink
comment new-client-functions
Browse files Browse the repository at this point in the history
  • Loading branch information
devinyf committed Jul 30, 2024
1 parent c5a4a22 commit fc007fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tongyiclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ type TongyiClient struct {
baseUrl string

Check warning on line 23 in tongyiclient.go

View workflow job for this annotation

GitHub Actions / lint

var-naming: struct field baseUrl should be baseURL (revive)
}

// qwen client with default base url (CN).
func NewTongyiClient(model string, token string) *TongyiClient {
httpcli := httpclient.NewHTTPClient()
baseURL := qwen.DashScopeBaseURL
return newTongyiCLientWithHTTPCli(baseURL, model, token, httpcli)
}

// qwen client with international base url.
func NewTongyiClientIntl(model string, token string) *TongyiClient {
httpcli := httpclient.NewHTTPClient()
baseURL := qwen.DashScopeIntlBaseURL
Expand Down

0 comments on commit fc007fd

Please sign in to comment.