Skip to content

Commit

Permalink
fixing issue in normal api creation in dp to cp
Browse files Browse the repository at this point in the history
  • Loading branch information
CrowleyRajapakse committed Oct 22, 2024
1 parent dece3c5 commit f432e71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apim-apk-agent/pkg/managementserver/rest_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ func createAPIYaml(apiCPEvent *APICPEvent) (string, string) {
}

var subTypeConfiguration = make(map[string]interface{})
if apiCPEvent.API.APISubType != "" || apiCPEvent.API.AIConfiguration.LLMProviderID != "" ||
apiCPEvent.API.AIConfiguration.LLMProviderName != "" ||
if apiCPEvent.API.APISubType != "" && apiCPEvent.API.AIConfiguration.LLMProviderID != "" &&
apiCPEvent.API.AIConfiguration.LLMProviderName != "" &&
apiCPEvent.API.AIConfiguration.LLMProviderAPIVersion != "" {
logger.LoggerMgtServer.Debugf("AI Configuration: %+v", apiCPEvent.API.AIConfiguration)
subTypeConfiguration["subtype"] = apiCPEvent.API.APISubType
Expand Down

0 comments on commit f432e71

Please sign in to comment.