Tutorial - Accessing LLM provider APIs
You can view all available LLM provider APIs from the Asset gallery page.
- Expand the menu options and click Asset gallery.
The Asset gallery page lists all published assets in the Developer Portal.
- In the Add slicer filter, choose Type, and select
LLM.
The Asset gallery page lists only LLM provider assets.
- Select the OpenAI LLM provider asset that you published.
- Subscribe to the API product.
- Click API products from the left navigation pane and select the product.
- In the Plans section, click Subscribe.
- Specify the Subscription name for the application and click
Save.
The application is created and a confirmation message indicates that the subscription request is created successfully.
- Retrieve application credentials.
- Expand the menu options, click Manage > Applications.
- Select the application you created.
- Copy the Client ID, Client secret values.
These credentials authenticate requests sent to the IBM DataPower Interact Gateway.
- Test the OpenAI API operation.
- Expand the menu options and click Asset gallery.
- Click API resources.
- Expand the API and select an operation.
- Click Try to test the API operation.
- Select the Headers tab.
- Add the following HTTP headers and click Send.
If the credentials are valid, IBM DataPower Interact Gateway returns a successful response.
Table 1. HTTP headers KEY VALUE X-IBM-Client-Id <your_client_id> X-IBM-Client-Secret <your_client_secret>