Skip to content

Commit

Permalink
Merge pull request #1230 from CrowleyRajapakse/newmaster2
Browse files Browse the repository at this point in the history
Fixing issue in normal api creation in dp to cp
  • Loading branch information
CrowleyRajapakse authored Oct 22, 2024
2 parents dece3c5 + f432e71 commit f538a95
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 f538a95

Please sign in to comment.