Accessing The Code

When you use the playground to chat, generate text, summarize text, or create embeddings, OCI Generative AI creates a code that includes your prompt or embeddings to use in applications. Here's how to get the code:

  1. Use the playground:
  2. After you run the model:
    • For chat, generation and summarization models: Click View code, select a programming Language, click Copy code, paste the code into a file, and save the file.
    • For embedding models: Click Export embeddings to JSON.
  3. Add authentication to your code.
  4. Use the code in your application.