Development
Changelog
0.0.606
Fixes
- json parse errors are now logged
0.0.605
Fixes
- The http calls are now following redirections
0.0.604
Improvements
- Enhance error handling
0.0.603
Fixes
- Default prompt version to
None
0.0.602
Fixes
- Flush doesn’t wait for the internal batch to be empty
- Add
repr
to classes - Error with participant identifier
0.0.601
Improvements
- Strip bytes from steps
New Features
- Add
get_steps
api
0.0.600
Improvements
- Change default batch size from 1 to 5
New Features
- Rename
literal_
toliteralai_
Fixes
- Make params optional
0.0.509
Deprecations
format()
is deprecated.format_messages()
should now be used.
New Features
- Add support for tags with OpenAI Instrumentation
0.0.508
Deprecations
create_prompt()
is deprecated.get_or_create_prompt()
should now be used.
New Features
-
get_or_create_prompt()
. For creating a new Prompt, useget_or_create_prompt()
.A `Prompt` is fully defined by its `name`, `template_messages`, `settings` and tools. If a prompt already exists for the given arguments, it is returned. Otherwise, a new prompt is created. Args: name (str): The name of the prompt to retrieve or create. template_messages (List[GenerationMessage]): A list of template messages for the prompt. settings (Optional[Dict]): Optional settings for the prompt. Returns: Prompt: The prompt that was retrieved or created.
Was this page helpful?