Langroid

Latest version: v0.2.2

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

Scan your dependencies

Page 7 of 41

0.1.231

Task.run(), run_batch_tasks(), run_batch_task_gen() now take a `max_cost` param, when set to non-zero,
causes task to exit (i.e. done=True) when total token cost across all LLMs exceeds this limit.
This param is passed to the `run` calls to any subtasks as well, so in effect the limit applies across nested tasks.
Note that the task.done() becomes True when the limit is exceeded, and no special treatment is done
to ensure the result returned from the task is reasonable, so it's the responsibility of
the user to handle possibly incomplete or problematic results.

0.1.230

OpenAIGPT.{chat, achat} and {generate, agenerate} calls now re-raise error instead of returning DO-NOT-KNOW.
This is preferable and helps avoid some infinite-loop scenarios.

0.1.229

Minor bug-fix: remove `to` field in LLMFunctionCall class, as it causes an OpenAI API error when present.
It is not actually used anywhere in the code.

0.1.228

Point OpenAIChatModel.GPT4_TURBO to gpt-4-turbo (used to be gpt-4-turbo-preview)

0.1.227

Minor updates:
* update to openai 1.23.2, which affects OpenAI Assistant API slightly
* allow DocChatAgentConfig to have vecdb = None, in case users want to set it later

0.1.226

DocumentParser: Improve plain text detection by taking into account continuation bytes.
This handles scenarios where multiple bytes can represent a character, e.g. non-Latin scripts such as Chinese, Arabic, etc.

Page 7 of 41

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.