Copying 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 models: Select View code, select a programming Language, select Copy code, paste the code into a file, and save the file.
    • For embedding models: Select Export embeddings to JSON.
  3. Add authentication to your code.
  4. Use the code in an application.