Fix: go restful api tests (#17247)

This commit is contained in:
Lynn
2026-07-22 19:06:08 +08:00
committed by GitHub
parent 4d772a9365
commit 32ddf59ac6
5 changed files with 17 additions and 15 deletions

View File

@@ -65,14 +65,14 @@ GO_ONLY_SKIPS = {
"test_dataset_create_parser_config_defaults_and_extra_fields_contract",
"test_dataset_list_query_contract_matrix",
"test_dataset_delete_contract_matrix",
"test_memory_update_invalid_name",
"test_memory_crud_cycle",
"test_messages_add_list_recent_content_update_forget",
"test_message_status_validation_requires_boolean",
"test_message_search_route_contract",
"test_memory_crud_and_config",
"test_messages_list_and_search_validation_contracts",
"test_message_update_forget_and_content_error_contracts",
# "test_memory_update_invalid_name",
# "test_memory_crud_cycle",
# "test_messages_add_list_recent_content_update_forget",
# "test_message_status_validation_requires_boolean",
# "test_message_search_route_contract",
# "test_memory_crud_and_config",
# "test_messages_list_and_search_validation_contracts",
# "test_message_update_forget_and_content_error_contracts",
"test_session_create_validation_and_deleted_chat_contract",
"test_session_delete_basic_scenarios",
"test_session_list_filter_and_deleted_chat_contract",

View File

@@ -48,8 +48,8 @@ def create_memory_resource(rest_client, memory_cleanup):
payload = {
"name": f"{name_prefix}_{uuid.uuid4().hex[:8]}",
"memory_type": ["raw"],
"embd_id": "BAAI/bge-small-en-v1.5@Builtin",
"llm_id": "glm-4-flash@ZHIPU-AI",
"embd_id": "BAAI/bge-small-en-v1.5@Local@Builtin",
"llm_id": "glm-4-flash@CI@ZHIPU-AI",
}
res = rest_client.post("/memories", json=payload)
assert res.status_code == 200

View File

@@ -23,8 +23,8 @@ def _memory_payload(name: str) -> dict:
return {
"name": name,
"memory_type": ["raw"],
"embd_id": "BAAI/bge-small-en-v1.5@Builtin",
"llm_id": "glm-4-flash@ZHIPU-AI",
"embd_id": "BAAI/bge-small-en-v1.5@Local@Builtin",
"llm_id": "glm-4-flash@CI@ZHIPU-AI",
}