Pega GenAI configuration for Case Type Creation Model ID error
I am trying to configure Pega GenAI for case creation in my pega cloud trial version. I have already set the configuration in the app studio and using a valid API Key. I have also created custom GenAI Connect rule for my application. But when trying to create a case type i am getting following exception in the tracer.
I am trying to configure Pega GenAI for case creation in my pega cloud trial version. I have already set the configuration in the app studio and using a valid API Key. I have also created custom GenAI Connect rule for my application. But when trying to create a case type i am getting following exception in the tracer.
com.pega.pegarules.pub.clipboard.InvalidReferenceException: The reference .pxResults(-1) is not valid. Reason: unexpected character '-' at position 11, expected subscript |
I am trying to analyse the rc of the issue and found out that while setting the value of Param.ModelIndex it is setting value as "-1", Because it is not able to match the modelID - "GPT-35-Turbo" in the D_pxGenAIModels Data page. Param.ModelIndex = @IndexInPageList(Param.ModelID,"pyModelId",D_pxGenAIModels.pxResults) While running the data page D_pxGenAIModels i am getting the results for model details but the value pyModelId is not matching with the value of param.modelId which is being set in the page. Hence the index is setting to "-1". Can someone please help why the pyModelId is coming as "azure/openai/GPT-35-Turbo/1106"?? Please highlight if any configuration is missed.