Skip to content

Commit b74539f

Browse files
committed
Change to bash
Signed-off-by: David Weik <geekupyourlife@gmail.com>
1 parent aef23ff commit b74539f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ No changes are requires at this time.
1414

1515
### Changed
1616

17-
- None
17+
- The Model-Manager-Setup.py script now provides bash commands, instead of PowerShell
1818

1919
### Fixed
2020

Model-Manager-Setup.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,18 +153,18 @@ def get_project_variables(base_path):
153153
f.write('# This script is written for Windows, update the commands accordingly\n')
154154
f.write('# Each command comes with a description, please read it and the documentation before running anything\n\n')
155155
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')
157157
f.write('# Add members to the LLM Consumers group\n')
158-
f.write('./sas-viya.exe identities add-member --group-id LLMConsumers --group-member-id GroupYouWantToAdd\n\n')
158+
f.write('sas-viya identities add-member --group-id LLMConsumers --group-member-id GroupYouWantToAdd\n\n')
159159
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')
161161
f.write('# Add members to the Prompt Engineers group\n')
162-
f.write('./sas-viya.exe identities add-member --group-id PromptEngineers --group-member-id GroupYouWantToAdd\n\n')
162+
f.write('sas-viya identities add-member --group-id PromptEngineers --group-member-id GroupYouWantToAdd\n\n')
163163
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')
166166
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')
168168
print('The llm-promp-builder.json is a quick start for the Prompt Builder UI.')
169169
print('The sas-viya-cli-commands.txt is a quick start to setup up the groups and authorization for the framework.')
170170

0 commit comments

Comments
 (0)