Demo: Generate text content

This demo shows you how to generate text content by passing a text prompt to a Gemini model, by using the Vertex AI SDK for ABAP.

Before you begin

Before you run this demo, make sure that you or your administrators have completed the following prerequisites:

Generate text content

To generate text content, perform the following steps:

  1. In SAP GUI, execute the transaction code /GOOG/SDK_IMG.

    Alternatively, execute the transaction code SPRO, and then click SAP Reference IMG.

  2. Go to ABAP SDK for Google Cloud > Demos.

  3. Open Vertex AI SDK: Demo: Invoke Text and Multimodal Gemini Models.

  4. Select Generate text content.

  5. In the Client key field, enter the client key for authentication.

  6. In the Model key field, enter the model key, which is configured in the model generation parameters.

  7. In the Enter system instructions field, provide system instructions.

  8. In the Enter prompt field, provide your input prompt.

  9. Run the program. The Response from LLM area shows the generated text.