Skip to content

Commit

Permalink
fix: fix query api version
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Jan 31, 2024
1 parent 25eeabe commit da6678e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/azure/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func ModelProxy(c *gin.Context) {
for _, deployment := range ModelConfig {
go func(deployment define.ModelConfig) {
// Create the request
req, err := http.NewRequest(http.MethodGet, deployment.Endpoint+"/openai/deployments?api-version=2022-12-01", nil)
req, err := http.NewRequest(http.MethodGet, fmt.Sprintf("%s/openai/deployments?api-version=%s", deployment.Endpoint, deployment.Version), nil)
if err != nil {
log.Printf("error parsing response body for deployment %s: %v", deployment.Name, err)
results <- nil
Expand Down

0 comments on commit da6678e

Please sign in to comment.