Closed sfahad1414 closed 2 months ago
The update introduces a new section in the metadata/llm_metadata.yml
file specifically for Anthropic AI models. This section defines a JSON schema that includes properties such as max_tokens
and model
, specifying their types, default values, and constraints. Additionally, the load_system_metadata
function in kairon/shared/utils.py
has been modified to enhance how metadata files are located and processed, while a test case in tests/integration_test/services_test.py
has been adjusted to reflect changes in expected output.
Files | Change Summary |
---|---|
metadata/llm_metadata.yml |
Added a new section for Anthropic AI models with properties max_tokens (integer) and model (string) including constraints and default values. |
kairon/shared/utils.py |
Modified load_system_metadata to use a glob pattern for locating YAML files and added a check to exclude a specific file from processing. |
tests/integration_test/services_test.py |
Updated assertion in a test case to expect the length of data to be 16 instead of 17. |
In fields of code, a rabbit hops,
With tokens maxed, the model pops!
From haikus sweet to sonnets bright,
Anthropic dreams take joyful flight.
A warren of choices, oh what a sight! 🐇✨
[!TIP] We have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the discussion post on our Discord.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
max_tokens
andmodel
, allowing users to customize response length and select different model IDs.