@gravitee/ui-policy-studio-angular 16.2.1-apim-11674-edit-ps-flows-for-llm-proxy-4d485ec → 16.2.1-apim-11674-edit-ps-flows-for-llm-proxy-778b797
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -828,6 +828,30 @@ class GioPolicyStudioFlowLlmFormDialogComponent {
|
|
|
828
828
|
}
|
|
829
829
|
this.flowFormGroup?.get('methods')?.setValue([]);
|
|
830
830
|
});
|
|
831
|
+
const selectedPath = this.flowFormGroup.get('path')?.value;
|
|
832
|
+
switch (selectedPath) {
|
|
833
|
+
case '/chat/completions':
|
|
834
|
+
if (this.methods.includes('POST'))
|
|
835
|
+
this.availableMethods = [];
|
|
836
|
+
else
|
|
837
|
+
this.availableMethods = ['POST'];
|
|
838
|
+
break;
|
|
839
|
+
case '/embeddings':
|
|
840
|
+
if (this.methods.includes('POST'))
|
|
841
|
+
this.availableMethods = [];
|
|
842
|
+
else
|
|
843
|
+
this.availableMethods = ['POST'];
|
|
844
|
+
break;
|
|
845
|
+
case '/models':
|
|
846
|
+
if (this.methods.includes('GET'))
|
|
847
|
+
this.availableMethods = [];
|
|
848
|
+
else
|
|
849
|
+
this.availableMethods = ['GET'];
|
|
850
|
+
break;
|
|
851
|
+
default:
|
|
852
|
+
this.availableMethods = [];
|
|
853
|
+
break;
|
|
854
|
+
}
|
|
831
855
|
}
|
|
832
856
|
onSubmit() {
|
|
833
857
|
const httpSelectorToSave = {
|