mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-06 10:42:39 +00:00
bug fix
This commit is contained in:
parent
7dc946196d
commit
1ee0790b12
2 changed files with 5 additions and 14 deletions
|
@ -22,9 +22,9 @@
|
|||
| Model | API | Capability | Test | Status |
|
||||
|:----- |:-----|:-----|:-----|:-----|
|
||||
| Text | /chat_completion | streaming | test_text_chat_completion_streaming | ✅ |
|
||||
| Vision | /chat_completion | streaming | test_image_chat_completion_streaming | Passed |
|
||||
| Vision | /chat_completion | streaming | test_image_chat_completion_streaming | ✅ |
|
||||
| Vision | /chat_completion | non_streaming | test_image_chat_completion_non_streaming | ✅ |
|
||||
| Text | /chat_completion | non_streaming | test_text_chat_completion_non_streaming | ✅ |
|
||||
| Vision | /chat_completion | non_streaming | test_image_chat_completion_non_streaming | Passed |
|
||||
| Text | /chat_completion | tool_calling | test_text_chat_completion_with_tool_calling_and_streaming | ✅ |
|
||||
| Text | /chat_completion | tool_calling | test_text_chat_completion_with_tool_calling_and_non_streaming | ✅ |
|
||||
| Text | /completion | streaming | test_text_completion_streaming | ✅ |
|
||||
|
|
|
@ -135,24 +135,15 @@ class Report:
|
|||
]
|
||||
for api, capa_map in API_MAPS["inference"].items():
|
||||
for capa, tests in capa_map.items():
|
||||
vision_tests = filter(lambda test_name: "image" in test_name, tests)
|
||||
text_tests = filter(lambda test_name: "text" in test_name, tests)
|
||||
|
||||
for test_name in text_tests:
|
||||
for test_name in tests:
|
||||
model_type = "Text" if "text" in test_name else "Vision"
|
||||
test_nodeids = self.test_name_to_nodeid[test_name]
|
||||
assert len(test_nodeids) > 0
|
||||
# There might be more than one parametrizations for the same test function. We take
|
||||
# the result of the first one for now. Ideally we should mark the test as failed if
|
||||
# any of the parametrizations failed.
|
||||
test_table.append(
|
||||
f"| Text | /{api} | {capa} | {test_name} | {self._print_result_icon(self.test_data[test_nodeids[0]])} |"
|
||||
)
|
||||
|
||||
for test_name in vision_tests:
|
||||
test_nodeids = self.test_name_to_nodeid[test_name]
|
||||
assert len(test_nodeids) > 0
|
||||
test_table.append(
|
||||
f"| Vision | /{api} | {capa} | {test_name} | {self.test_data[test_nodeids[0]]} |"
|
||||
f"| {model_type} | /{api} | {capa} | {test_name} | {self._print_result_icon(self.test_data[test_nodeids[0]])} |"
|
||||
)
|
||||
|
||||
report.extend(test_table)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue