Skip to content

v1.2.0-file-input-support

Compare
Choose a tag to compare
@0xJord4n 0xJord4n released this 24 Dec 12:27
· 3 commits to main since this release

πŸš€ aixion v1.2.0: File Input Support

✨ New Features

  • Added file-based input support with prompt_file and system_file
  • Added content_file support in messages array

πŸ“ Details

This release introduces comprehensive file input support, allowing users to read prompts, system messages, and message content directly from files. This enables better organization of prompts and easier management of large-scale AI interactions.

πŸ” Technical Changes

{
  "provider": "openai",
  "provider_options": {
    "api_key": "your-api-key",
    "timeout": 30000,      // <- New timeout option
    "max_retries": 3       // <- New retry option
  },
  "prompt_file": ".github/prompts/analysis.txt",    // <- New file input
  "system_file": ".github/prompts/system.txt",      // <- New file input
  "messages": [
    {
      "role": "user",
      "content_file": ".github/prompts/query.txt"   // <- New file input in messages
    }
  ],
  "model": "gpt-4",
}

πŸ“¦ Files Modified

  • README.md
  • src/action.ts
  • src/input.ts
  • src/provider.ts
  • src/types.ts

🎯 Impact

This update enables:

  • βœ… File-based input management
  • βœ… Mixed content support (direct + file-based)

πŸ’‘ Notes

  • No breaking changes introduced
  • Backwards compatible with existing configurations
  • File paths are relative to repository root
  • UTF-8 encoding used for all file operations
  • Files must exist and be readable
  • Can mix direct content and file-based content in messages array

πŸ“š Documentation

For more information, visit our GitHub repository