Skip to content

Commit 4159926

Browse files
committed
feat: 完全自定义baseUrl
1 parent 5f4ff3e commit 4159926

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ func (c *Client) fullURL(suffix string) string {
108108
if strings.Contains(suffix, "/models") {
109109
return fmt.Sprintf("%s/%s%s?api-version=%s", baseURL, azureAPIPrefix, suffix, c.config.APIVersion)
110110
}
111-
return fmt.Sprintf("%s/%s/%s/%s%s?api-version=%s",
112-
baseURL, azureAPIPrefix, azureDeploymentsPrefix, c.config.Engine, suffix, c.config.APIVersion)
111+
return fmt.Sprintf("%s/%s%s?api-version=%s",
112+
baseURL, c.config.Engine, suffix, c.config.APIVersion)
113113
}
114114

115115
// c.config.APIType == APITypeOpenAI || c.config.APIType == ""

0 commit comments

Comments
 (0)