Disable slow tests where appropriate, + nits

This commit is contained in:
ochafik 2025-01-28 09:47:41 +00:00
parent d274ffcc95
commit 62d45a552f
3 changed files with 3 additions and 4 deletions

View file

@ -205,7 +205,7 @@ jobs:
run: |
cd examples/server/tests
$env:PYTHONIOENCODING = ":replace"
pytest -v -x
pytest -v -x -m "not slow"
- name: Slow tests
id: server_integration_tests_slow

View file

@ -623,7 +623,7 @@ static common_chat_data common_chat_init_functionary_v3_2_tool_call(const common
return data;
}
static common_chat_data common_chat_init_functionary_v3_llama_3_1_tool_call(const common_chat_template & tmpl, const struct common_chat_params & params) {
static common_chat_data common_chat_init_functionary_v3_1_llama_3_1_tool_call(const common_chat_template & tmpl, const struct common_chat_params & params) {
// ./tests/chat/templates/meetkai-functionary-medium-v3.1.jinja
// https://github.com/MeetKai/functionary/blob/main/tests/prompt_test_v3-llama3.1.txt
common_chat_data data;
@ -818,7 +818,7 @@ common_chat_data common_chat_init(const common_chat_template & tmpl, const struc
}
if (src.find("<|start_header_id|>") != std::string::npos
&& src.find("<function=") != std::string::npos) {
return common_chat_init_functionary_v3_llama_3_1_tool_call(tmpl, params);
return common_chat_init_functionary_v3_1_llama_3_1_tool_call(tmpl, params);
}
if (src.find("<|start_header_id|>ipython<|end_header_id|>") != std::string::npos) {
auto uses_python_tag = src.find("<|python_tag|>") != std::string::npos;

View file

@ -1,5 +1,4 @@
import pytest
from openai import OpenAI
from utils import *
server: ServerProcess