AI DevKit
Glitch9 Inc.Glitch9 DocsDiscordIssues
  • Introduction
    • AI DevKit 3.0
    • Update Logs
    • Troubleshooting
      • ❗Issues After Updating AIDevKit?
      • ❗The type or namespace name 'Newtonsoft' could not be found
      • ❗Build Error: The name 'UnityMenu' does not exist in the current context
      • ❗Model 'modelName' not found
      • ❗The model `model name` does not exist or you do not have access to it
      • ❗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
      • ⚠️ Timeout Issues
      • ⚠️ Receiving a “HTTP/1.1 400 Bad Request” Error?
    • FAQ
      • My OpenAI API free trial has ended or is inactive.
  • Quick Start
    • Get API Keys
      • OpenAI API Key Guide
      • Google API Key Guide
      • ElevenLabs API Key Guide
    • Text Generation
    • C# Object Generation
    • Image Generation
    • Sound Effect Generation
    • Text to Speech (TTS)
    • Speech to Text (STT)
    • Voice Changer
    • Audio Isolation
  • Pro Features
    • Generation Menu
      • Code Generators
        • C# Script Generator
        • Unity Component Generator
    • 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
  • Assistants API (OpenAI)
    • How it works
    • Creating custom functions
    • Creating assistants API
  • Advanced API Supports
    • OpenAI API
      • 💬Chat completions
      • 🖼️Image operations
      • 🗣️Text to speech
      • 🎙️Speech to text
        • Recording real-time in Unity
      • 💾Files
      • 🔎Embeddings
      • 🛡️Moderations
      • ⚙️Fine-tuning
    • Google API
      • 📝System instructions
      • 💬Text generation
      • ⚙️Fine-tuning
      • ▶️Fucntion calling
      • 🔎Embeddings
      • 🛡️Safety
      • 💻Code execution
    • ElevenLabs API
  • Legacy Documents
    • AI DevKit 1.0 - 2.0
      • AI DevKit 2.0
      • AI DevKit 1.0
      • Preperation
      • Event Handlers
      • Scriptable Toolkits
        • Chat Streamer
        • Image Generator
        • Voice Transcriber
        • Voice Generator
      • Editor Tools
Powered by GitBook
On this page
  • Accessing the Log Manager
  • Key Features
  • Using the Log Manager
  1. Pro Features
  2. 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.