llama-stack-mirror/llama_stack/models/llama/llama4
Ihar Hrachyshka 9e6561a1ec
chore: enable pyupgrade fixes (#1806)
# What does this PR do?

The goal of this PR is code base modernization.

Schema reflection code needed a minor adjustment to handle UnionTypes
and collections.abc.AsyncIterator. (Both are preferred for latest Python
releases.)

Note to reviewers: almost all changes here are automatically generated
by pyupgrade. Some additional unused imports were cleaned up. The only
change worth of note can be found under `docs/openapi_generator` and
`llama_stack/strong_typing/schema.py` where reflection code was updated
to deal with "newer" types.

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-05-01 14:23:50 -07:00
..
prompt_templates chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
quantization chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
vision chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
__init__.py feat: introduce llama4 support (#1877) 2025-04-05 11:53:35 -07:00
args.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
chat_format.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
datatypes.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
ffn.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
generation.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
model.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
moe.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
preprocess.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
prompt_format.md docs: update prompt_format.md for llama4 (#2035) 2025-04-25 15:52:15 -07:00
prompts.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
tokenizer.model feat(pre-commit): enhance pre-commit hooks with additional checks (#2014) 2025-04-30 11:35:49 -07:00
tokenizer.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00