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:
-
Use the playground:
- For chat: Enter prompts and continue your conversation.
- For text embeddings: Add your phrases to the embedding model and run the model.
-
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.
- Add authentication to your code.
- Use the code in an application.