π aixion v1.2.0: File Input Support
β¨ New Features
- Added file-based input support with
prompt_file
andsystem_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