AIDevKit - AI Suite for Unity
API ReferencesDiscordGlitch9
  • Introduction
    • AI Dev Kit 3.7.0
    • Troubleshooting
    • FAQ
    • Update Logs
  • Provider Setup
    • API Key Setup
    • OpenAI
    • Google Gemini
    • ElevenLabs
    • Ollama
    • OpenRouter
  • Editor Tools
    • Introduction
    • Editor Chat
    • Model Library
    • Voice Library
  • GEN Tasks
    • Overview
    • Prefixes
    • Response
    • Chat
    • Image
    • Video
    • SoundFX
    • Speech
    • Transcript
    • Voice Change
    • Audio Isolation
    • Sequence
  • Advanced API (Pro)
    • Assistants
      • How it works
      • Creating custom functions
      • Creating assistants API
    • Realtime
  • Legacy API
    • OpenAI
      • 💬Chat completions
      • 🖼️Image operations
      • 🗣️Text to speech
      • 🎙️Speech to text
        • Recording real-time in Unity
      • 💾Files
      • 🔎Embeddings
      • 🛡️Moderations
      • ⚙️Fine-tuning
    • Google Gemini
      • 📝System instructions
      • 💬Text generation
      • ⚙️Fine-tuning
      • ▶️Fucntion calling
      • 🔎Embeddings
      • 🛡️Safety
      • 💻Code execution
  • Legacy Documents
    • AI Dev Kit 1.0
      • Preperation
      • Scriptable Toolkits
        • Chat Streamer
        • Image Generator
        • Voice Transcriber
        • Voice Generator
      • Editor Tools
      • Troubleshooting (Legacy)
        • ❗Build Error: The name 'UnityMenu' does not exist in the current context
        • ❗The type or namespace name 'AndroidJavaObject' could not be found
        • ❗The type or namaspace name 'Plastic' does not exist
        • ❗Build Error: The name 'Asset Database' does not exist in the current context
        • ❗'ModelData.Create(Provider, string, UnixTime?, string)': not all code paths return a value
      • Code Generators
        • C# Script Generator
        • Unity Component Generator
    • AI Dev Kit 2.0
      • Event Handlers
      • Editor Chat
      • Editor Vision (TTI, ITI)
      • Editor Speech (TTS)
      • Management Tools
        • Prompt History Viewer
        • AI Model Manager
        • TTS Voice Manager
        • OpenAI File Manager
        • OpenAI Assistant Manager
        • ElevenLabs Voice Library
Powered by GitBook
On this page
  • Accessing the Log Manager
  • Key Features
  • Using the Log Manager
  1. Legacy Documents
  2. AI Dev Kit 2.0
  3. Management Tools

Prompt History Viewer

PreviousManagement ToolsNextAI Model Manager

Last updated 10 months ago

This feature is only available in the Pro version.

Log Manager is designed to offer developers comprehensive insights into their interactions with OpenAI services. This tool records every request and response, including the input provided, the output received, the model used, and the associated cost, facilitating thorough monitoring and analysis of OpenAI service usage within Unity projects.

Accessing the Log Manager

To open the Log Manager, navigate through Tools > Glitch9 > OpenAI > Log Manager in the Unity Editor. This will launch the Log Manager window, which provides a detailed view of all logs generated by interactions with OpenAI services.

Key Features

  • Detailed Log Records: View comprehensive details of each interaction, including date, type of request, model used, input and output data, and the cost of the operation.

  • Advanced Filtering and Searching: Utilize powerful filtering options to display logs by type, such as Chat Completions, Image Creations, Edits, and Variations, or use the search bar to quickly find specific logs based on keywords.

  • Usage and Cost Tracking: Easily monitor how frequently OpenAI services are used and understand the cost implications of your queries to manage your budget effectively.

  • Interactive Log View: The Log Manager uses a tree view to organize logs, allowing for an intuitive browsing experience. You can expand and collapse log entries to explore details further.

Using the Log Manager

Filtering Logs

  1. Filter by Type: Select the log types you wish to view using the dropdown menu. You can choose to display only certain types of interactions, such as image generations or chat completions.

  2. Search: Use the search bar to filter logs based on specific content, such as model names or input phrases.

Viewing Log Details

  1. Select a Log: Click on a log entry in the tree view to select it. The bottom panel will display detailed information about the selected log.

  2. Expand Log Details: For logs with extensive input or output data, use the expandable text areas to view all content without scrolling horizontally.

Managing Logs

  • Delete Logs: If needed, you can delete individual logs to clean up your log history. Right-click on a log entry and select "Delete" from the context menu. Confirm the deletion in the popup dialog.

  • Export and Backup Logs: The Log Manager allows you to export and backup your log history as a JSON file for external analysis or record-keeping. Use the "Backup Logs to Json File" option in the dropdown menu.

Analyzing Costs

  • The Log Manager displays the cost associated with each log entry, allowing you to assess the financial impact of your OpenAI service usage. Use this information to optimize your queries and manage your OpenAI API budget.