v1.1.15
Changelog
(2024-01-23) Python Version 1.1.15, NPM Version 1.1.7
Last PR included in this release: #995
Features
- sdk: Updated input attachments with
AttachmentDataWithStringValue
type to distinguish the data representation ‘kind’ (file_uri
orbase64
) (#929). Please note that this can break existing SDK calls for model parsers that use non-text inputs - editor: Added telemetry data to log editor usage. Users can opt-out of telemetry by setting
allow_usage_data_sharing: False
in the.aiconfigrc
runtime configuration file (#869, #899, #946) - editor: Added CLI
rage
command so users can submit bug reports (#870) - editor: Changed streaming format to be output chunks for the running prompt instead of entire AIConfig (#896)
- editor: Disabled run button on other prompts if a prompt is currently running (#907)
- editor: Made callback handler props optional and no-op if not included (#941)
- editor: Added
mode
prop to customize UI themes on client, as well as match user dark/light mode system preferences (#950, #966) - editor: Added read-only mode where editing of AIConfig is disabled (#916, #935, #936, #939, #967, #961, #962)
- eval: Generalized params to take in arbitrary dict instead of list of arguments (#951)
- eval: Created
@metric
decorator to make defining metrics and adding tests easier by only needing to define the evaluation metric implementation inside the inner function (#988) - python-sdk: Refactored
delete_output
to setoutputs
attribute ofPrompt
toNone
rather than an empty list (#811)
Bug Fixes / Tasks
- editor: Refactored run prompt server implementation to use
stop_streaming
,output_chunk
,aiconfig_chunk
, andaiconfig
so server can more explicitly pass data to client (#914, #911) - editor: Split
RUN_PROMPT
event on client intoRUN_PROMPT_START
,RUN_PROMPT_CANCEL
,RUN_PROMPT_SUCCESS
, andRUN_PROMPT_ERROR
(#925, #922, #924) - editor: Rearranged default model ordering to be more user-friendly (#994)
- editor: Centered the Add Prompt button and fixed styling (#912, #953)
- editor: Fixed an issue where changing the model for a prompt resulted in the model settings being cleared; now they will persist (#964)
- editor: Cleared outputs when first clicking the run button in order to make it clearer that new outputs are created (#969)
- editor: Fixed bug to display array objects in model input settings properly (#902)
- python-sdk: Fixed issue where we were referencing
PIL.Image
as a type instead of a module in the HuggingFaceimage_2_text.py
model parser (#970) - editor: Connected HuggingFace model parser tasks names to schema input renderers (#900)
- editor: Fixed
float
model settings schema renderer tonumber
(#989)