Text-machina

Latest version: v0.2.12

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.2.12

This release adds:

- Two new providers: [DeepInfra](https://deepinfra.com/) and [OpenRouter](https://openrouter.ai/).
- Examples to work with these two providers.
- Better default args for `hf_remote` and `inference_server`.

0.2.11

This update adds chat templates for `generate_completion` in `hf_local` models, and set a better default backoff factor for `hf_remote` models.

0.2.10

This release adds an `Example` extractor to fill the templates with examples from the dataset. Now, you can define prompts like the following one, without specifying examples by hand in the template:


Write a legal document in German. Here you have some examples:
- Example 1: {example_1}\n
- Example 2: {example_2}\n
Document:


or combine it with another extractors, e.g.:


Write a legal document in German. Here you have some examples:\n
- Example 1: {example_1}\n
- Example 2: {example_2}\n
You must use the following entities: {entities}.
Document:

0.2.9

This version adds chat templates to work with chat models in HuggingFace local and remote.

0.2.8

What's Changed
* Add mistral to bedrock and upgrade anthropic by asarvazyan in https://github.com/Genaios/TextMachina/pull/13


**Full Changelog**: https://github.com/Genaios/TextMachina/compare/0.2.7...0.2.8

0.2.7

Recent versions of datasets do not allow to use `PosixPath` arguments in `save_to_disk` and `load_from_disk`. This PR converts `PosixPath` to `str` in all these methods.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.