Skip to content

Commit

Permalink
feat: 完全自定义baseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
Leizhenpeng committed May 9, 2023
1 parent 5f4ff3e commit 4159926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ func (c *Client) fullURL(suffix string) string {
if strings.Contains(suffix, "/models") {
return fmt.Sprintf("%s/%s%s?api-version=%s", baseURL, azureAPIPrefix, suffix, c.config.APIVersion)
}
return fmt.Sprintf("%s/%s/%s/%s%s?api-version=%s",
baseURL, azureAPIPrefix, azureDeploymentsPrefix, c.config.Engine, suffix, c.config.APIVersion)
return fmt.Sprintf("%s/%s%s?api-version=%s",
baseURL, c.config.Engine, suffix, c.config.APIVersion)
}

// c.config.APIType == APITypeOpenAI || c.config.APIType == ""
Expand Down

0 comments on commit 4159926

Please sign in to comment.