@@ -66,9 +66,9 @@ author_profile: https://github.com/I321506
6666
6767• SAP Cloud SDK for AI: Uses the ` dotenv ` library to load environment variables. If you encounter issues with the dotenv library, ensure it is installed correctly by running:
6868
69- ``` CODE
70- npm install dotenv
71- ```
69+ ```CODE
70+ npm install dotenv
71+ ```
7272
7373``` CODE
7474import dotenv from 'dotenv';
@@ -114,98 +114,6 @@ console.log(process.env.AICORE_SERVICE_KEY);
114114
115115- Click on "No Environment" and then select "Configure".
116116
117- ![ img] ( img/no_env.png )
118- - Populate the following environment variables with values from the service key:
119- - ai_auth_url → url from the service key.
120- - ai_api_url → serviceurls.AI_API_URL from the service key.
121- - client_id → clientid from the service key.
122- - client_secret → clientsecret from the service key.
123- - resource_group → Specify a resource group name.
124-
125- ![ img] ( img/img009.png )
126- - Save the environment configuration.
127-
128- - Click on "No Environment" in the top-right corner and select "Grounding-test".
129- ![ img] ( img/env_set.png )
130- #### Generate the Token
131- - Select the get_token request from the root folder of the imported collection.
132-
133- - Execute the request to generate the token.
134- ![ img] ( img/get_token.png )
135-
136- ** NOTE** : If the token expires at any point during execution, repeat this step to regenerate it.
137-
138- [ OPTION END]
139-
140-
141- ### Create Configuration for Orchestration deployment
142-
143- [ OPTION BEGIN [ AI Launchpad]]
144-
145- Go to the Configuration section within your chosen Resource Group.
146-
147- ![ img] ( img/image008.png )
148-
149- • Fill in Deployment Details, Under configuration, input the following details:
150-
151- Name: "orchestration"
152-
153- Executable: "orchestration"
154-
155- Scenario: "orchestration"
156-
157- Version: "0.0.1"
158-
159- • Click Next after entering each detail.
160-
161- ![ img] ( img/image009.png )
162-
163- [ OPTION END]
164-
165- [ OPTION BEGIN [ Python SDK]]
166-
167- • Create a folder named orchestration, then navigate to this folder using VS Code.
168-
169- • Inside the folder, create a new file with any name but ensure it has the .ipynb extension.
170-
171- ![ img] ( img/image010.png )
172-
173- You'll create a configuration that defines the orchestration setup. Use the following code to initialize your configuration.
174-
175- ``` CODE
176-
177- # Define scenario ID, executable ID, and configuration suffix
178- scenario_id = "orchestration"
179- executable_id = "orchestration"
180- config_suffix = "config-new" # Enter your configuration name
181- config_name = f"{config_suffix}-orchestration"
182-
183- # Create a new configuration
184- config = ai_core_client.configuration.create(
185- scenario_id=scenario_id,
186- executable_id=executable_id,
187- name=config_name
188- )
189- print(f"Configuration created successfully with ID: {config.id} and Name: {config_name}")
190- ```
191-
192- [ OPTION END]
193-
194- [ OPTION BEGIN [ Bruno]]
195- #### Download and Import the Bruno Collection
196- - Download the [ bruno_collections] ( img/Bruno_Collection.json ) file
197-
198- - Navigate to the Bruno Collections section
199-
200- - Upload the .json file to import the collection. Follow the screenshot attached for reference
201- ![ img] ( img/img001.png )
202- ![ img] ( img/img003.png )
203- ![ img] ( img/img005.png )
204- #### Set Environment Variables
205- - From the imported collection, select the get_token query.
206-
207- - Click on "No Environment" and then select "Configure".
208-
209117![ img] ( img/no_env.png )
210118- Populate the following environment variables with values from the service key:
211119 - ai_auth_url → url from the service key.
0 commit comments