Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 769 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 769 Bytes

Sample Code and E2E Test

e2e-test

Sample code to demonstrate the usage of the SAP Cloud SDK for AI. Also used as basis for running E2E tests.

Build, Run, Deploy Locally

Build the project with:

  1. pnpm install
  2. Download a service key for your AI Core service instance
  3. Create a .env file in the sample-code directory
  4. Add an entry AICORE_SERVICE_KEY='<content-of-service-key>'
  5. pnpm local

Call the test endpoints:

  • Hello World
  • Simple Chat Completion
  • Simple Embedding Call

Run the E2E Test

Trigger the GitHub Action.