Releases: microsoft/genaiscript
v1.71.3
New Features and Enhancements
- Canary Word Leak Protection: Introduced a canary word system to monitor and protect against prompt leaks, ensuring higher security and trustworthiness. π‘οΈ
- Random Number Generator: Added a new tool to generate random numbers, enhancing the utility of GenAIScript. π²
- Content Safety Measures: Implemented additional content safety protocols, including a protected content safety type, to safeguard against harmful content. π
- Markdown Rendering: Improved markdown rendering with support for user and assistant roles, providing a richer user experience. β¨
Documentation and Refactoring
- Updated Transparency Note: Revised the transparency note and sample guidelines to better inform users about GenAIScript's functionalities. π
- Refactored Constants: Updated constant names for consistency, improving code readability and maintainability. β»οΈ
Bug Fixes
- Typo Corrections: Fixed various spelling errors across the documentation and scripts, ensuring clarity and professionalism. π
v1.71.2
What's New in GenAIScript 1.71.2
-
β¨ Hugging Face Model Support: We've added support for Hugging Face models, enabling new possibilities for AI-driven tasks. Easily integrate Hugging Face models like
microsoft/Phi-3-mini-4k-instruct
into your scripts to enhance your AI capabilities. -
π Enhanced Prompt Injection Detection: Strengthen your AI's security with improved prompt injection detection. This update includes a new method to automatically detect and handle prompt injection attempts, ensuring safer interactions with AI models.
-
π§ Improved Error Handling: We've refined our error handling processes, including better serialization and support for different error types. This ensures smoother operations and easier debugging for developers.
These updates aim to enhance the flexibility, security, and reliability of GenAIScript, empowering developers to build more robust AI-driven applications. Enjoy exploring the new features!
v1.71.1
π Exciting Enhancements in GenAIScript 1.71.1!
-
π OpenRouter Integration: We've added support for OpenRouter API! This integration allows seamless chat completions via the
OPENROUTER_API_CHAT_URL
. Headers forOPENROUTER_SITE_URL
andOPENROUTER_SITE_NAME
are now automatically set, enhancing connectivity and customization. -
π New Constants: Introducing
TOOL_URL
for easy access to the GenAIScript documentation and resources. This addition aids developers in quickly finding the necessary tools and information. -
π οΈ Improved Error Handling: Enhanced the chat completion handler to ensure a default
finishReason
of "stop" if not provided by some providers, making the system more robust against incomplete responses.
Upgrade to GenAIScript 1.71.1 to enjoy these new features and improvements!
v1.71.0
π New Features
- OLLAMA_HOST Support: Introducing support for the
OLLAMA_HOST
environment variable, allowing more flexibility in configuring your host settings. - System Assistant Setup: Added a new system assistant setup script to streamline your tasks.
- Content Safety Enhancements: Implemented Azure Content Safety services to detect harmful content and prompt injection, ensuring a safer scripting environment.
- Image Description Generation: A new script is available for generating image descriptions, enhancing accessibility and content management.
π Improvements
- Custom Azure Credentials: Added support for custom Azure credentials and workload identity, providing more options for authentication and authorization.
- Caching for Content Safety: Enhanced content safety detection with caching, improving performance and efficiency.
- Tree-Sitter Queries Update: Automated updates for Tree-Sitter queries, ensuring your environment is always up-to-date with the latest parsing capabilities.
π Bug Fixes
- Concurrency Handling: Fixed an issue with NaN concurrency in
PLimitPromiseQueue
, ensuring stable and predictable task execution. - File Existence Checks: Improved fork logic to verify file existence, preventing errors and enhancing reliability.
π Documentation
- README Overhaul: Updated the README to better reflect the capabilities and usage of GenAIScript, making it easier for new users to get started.
- Safety Script Descriptions: Clarified safety script descriptions and provided updated links for more detailed information.
These updates bring significant improvements to GenAIScript, enhancing both functionality and user experience. Enjoy the new features and improvements!
v1.70.1
What's New in GenAIScript 1.70.1 π
-
Enhanced Script Creation: The script creation process now forks prompts by default, ensuring a more robust and isolated environment for each script. This change improves script management and reduces potential conflicts. π οΈ
-
Improved File Handling: We've refined the file existence checks and reading processes. Now, functions return
undefined
when files are not found, enhancing error handling and performance. π -
Better Data Parsing: Added safeguards to our parsing functions for both XLSX and ZIP files. If data is missing, these functions will return empty arrays, preventing unnecessary errors. ππ¦
-
Testing Enhancements: Our test suite now includes additional coverage for script creation with new tests ensuring that scripts like "foobar" are created and logged correctly. This boosts confidence in our script management capabilities. β
Enjoy the new improvements and keep scripting with GenAIScript! π
v1.70.0
What's New in GenAIScript 1.70.0
π New Features & Enhancements
- Expanded Model Support: Added new OpenAI model types to the
ModelType
for more flexibility in your AI workflows. - Improved Model Handling: Enhanced the
PromptHost
interface with model resolution capabilities, allowing seamless integration and management of different models. - Streamlined Stream Options: Optimized stream handling logic to enhance performance and prevent crashes in specific scenarios.
π οΈ Fixes & Improvements
- Corrected a spelling error in the documentation to improve clarity and professionalism.
- Fixed an issue with the system message handling to ensure accurate message processing.
This release focuses on expanding model capabilities and improving the robustness of stream processing, making it easier and more efficient to work with diverse AI models. Enjoy the new enhancements and fixes!
v1.69.4
What's New in GenAIScript 1.69.4
π Enhanced Features and Performance
-
CSV Repair Option: We've added a new feature to automatically repair common CSV formatting errors, making data handling more robust and reliable.
-
Unfencing Functionality: A new
unfence
function is introduced to handle code blocks more efficiently, supporting nested and unbalanced cases. -
Improved Error Handling: Enhanced error logging and handling across the board ensures better troubleshooting and more informative logs.
π§ Refinements and Optimizations
-
Header Configuration Optimization: The header configuration function has been optimized for better performance and clarity.
-
Dependency Updates: We've updated dependencies to the latest versions, ensuring improved security and performance.
π Testing and Reliability
- Expanded Test Coverage: Added tests for unfencing and handling unbalanced cases, ensuring the robustness of new features.
This release focuses on making GenAIScript more reliable and efficient, with significant improvements in data handling and error management. Enjoy the enhanced experience!
v1.69.3
What's New in GenAIScript 1.69.3
π New Features
-
Filename Validation in
parsePromptScript
: Weβve added a new check for filenames in theparsePromptScript
function to improve script validation and error handling. -
Azure Serverless Pricing: Introduced pricing details for the new
azure_serverless:gpt-4o-2024-05-13
model. Now you can estimate costs more accurately with the latest model.
π Improvements
- Cost Estimation Enhancements: Refactored the cost estimation logic to provide better clarity when pricing information is missing. This includes a new
isCosteable
function to determine if a model is eligible for cost estimation and improved logging for missing pricing data.
Stay tuned for more updates and happy coding with GenAIScript!
v1.69.2
What's New in GenAIScript 1.69.2
π New Features
- Expanded Pricing Models: We've added new pricing models and improved cost logging to give you more accurate and detailed insights into your usage costs.
- CLI Enhancements: You can now specify
--model
and--small-model
options directly in the CLI, making it easier to customize your runs.
π οΈ Improvements
- Azure Serverless Models Support: We're excited to announce support for Azure serverless models. This includes both OpenAI and non-OpenAI models, providing more flexibility and options for your deployments.
- Refactoring for Clarity: The
MODEL_PROVIDER_AZURE
constant has been renamed toMODEL_PROVIDER_AZURE_OPENAI
to better reflect its purpose. Additionally, serverless models have been categorized underMODEL_PROVIDER_AZURE_SERVERLESS_MODELS
andMODEL_PROVIDER_AZURE_SERVERLESS_OPENAI
.
π§ Under the Hood
- Improved Token Handling: Enhanced token management for Azure services, ensuring smoother and more reliable operations.
- Configuration Updates: Streamlined configuration options for Azure AI services, making it easier to set up and manage your endpoints.
Enjoy the new features and improvements! π
v1.69.1
What's New in GenAIScript 1.69.1 π
Enhanced Logging π οΈ
- Custom Inspect Options: We've revamped our logging system to use
object-inspect
for better object representation. This change ensures that logs are more readable and informative, especially for complex objects.
Improved CSV Parsing π
- Quotes Handling: The
CSVParse
function now better handles values with quotes, making your CSV data parsing more robust and reliable. - Additional Options: We've added more flexibility to the CSV parser with options like
relaxQuotes
,relaxColumnCount
, andtrim
. This makes parsing CSV data more forgiving and accurate.
Robust Error Logging π¨
- Detailed Error Logs: Enhanced error logging to capture and display error stacks and detailed information, helping you to debug issues more efficiently.
Testing Enhancements β
- New Tests Added: We've added tests specifically for parsing CSV values with quotes, ensuring our parsing logic is solid and reliable.
Upgrade to GenAIScript 1.69.1 to take advantage of these improvements and make your development experience smoother and more efficient! π