You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f.write('# This script is written for Windows, update the commands accordingly\n')
154
154
f.write('# Each command comes with a description, please read it and the documentation before running anything\n\n')
155
155
f.write('# First a Custom Group is created called LLM Consumers - if you do not want use this group, skip this step and replace the name in subsequent commands\n')
156
-
f.write('./sas-viya.exe identities create-group --id LLMConsumers --name "LLM Consumers" --description "This group enables a general access to the LLM repository. This group is meant for anybody that requires access to it."\n')
156
+
f.write('sas-viya identities create-group --id LLMConsumers --name "LLM Consumers" --description "This group enables a general access to the LLM repository. This group is meant for anybody that requires access to it."\n')
157
157
f.write('# Add members to the LLM Consumers group\n')
f.write('# Second a Custom Group is created called Prompt Engineers - if you do not want use this group, skip this step and replace the name in subsequent commands\n')
160
-
f.write('./sas-viya.exe identities create-group --id PromptEngineers --name "Prompt Engineers" --description "This group enables its members to create, update and delete Prompt Engineering projects in the LLM repository"\n')
160
+
f.write('sas-viya identities create-group --id PromptEngineers --name "Prompt Engineers" --description "This group enables its members to create, update and delete Prompt Engineering projects in the LLM repository"\n')
161
161
f.write('# Add members to the Prompt Engineers group\n')
f.write('# Create two rules that open up access to the LLM Repository for the LLM Consumers\n')
164
-
f.write(f'./sas-viya.exe authorization create-rule -o /folders/folders/{llm_repository_folder} -g LLMConsumers -p Read,Add,Remove -d "Enables the LLM Consumers to interact with the LLM repository" --reason "You are not part of the LLM Consumers group"\n')
165
-
f.write(f'./sas-viya.exe authorization create-rule --container-uri /folders/folders/{llm_repository_folder} -g LLMConsumers -p Read,Add,Update,Remove,Delete -d "Enables the LLM Consumers to interact with the LLM repository" --reason "You are not part of the LLM Consumers group"\n\n')
164
+
f.write(f'sas-viya authorization create-rule -o /folders/folders/{llm_repository_folder} -g LLMConsumers -p Read,Add,Remove -d "Enables the LLM Consumers to interact with the LLM repository" --reason "You are not part of the LLM Consumers group"\n')
165
+
f.write(f'sas-viya authorization create-rule --container-uri /folders/folders/{llm_repository_folder} -g LLMConsumers -p Read,Add,Update,Remove,Delete -d "Enables the LLM Consumers to interact with the LLM repository" --reason "You are not part of the LLM Consumers group"\n\n')
166
166
f.write('# Create a rule to enable the Prompt Engineers to create new projects in the LLM repository\n')
167
-
f.write(f'./sas-viya.exe authorization create-rule -o /modelRepository/repositories/{llm_repository} -g PromptEngineers -p Read,Add,Create,Update,Remove,Delete -d "Enables the group to create prompt engineering projects in the LLM repository" --reason "You are not part of the prompt engineering group"\n')
167
+
f.write(f'sas-viya authorization create-rule -o /modelRepository/repositories/{llm_repository} -g PromptEngineers -p Read,Add,Create,Update,Remove,Delete -d "Enables the group to create prompt engineering projects in the LLM repository" --reason "You are not part of the prompt engineering group"\n')
168
168
print('The llm-promp-builder.json is a quick start for the Prompt Builder UI.')
169
169
print('The sas-viya-cli-commands.txt is a quick start to setup up the groups and authorization for the framework.')
0 commit comments