fix(training): 恢复培训接口 Debug 日志打印

This commit is contained in:
2026-10-19 14:10:48 +08:00
parent 6d5e273d8c
commit 19e29a6970
@@ -121,11 +121,11 @@ final class TrainingAPI: TrainingDataServing {
}
private func read<Response: Decodable>(_ path: String, query: [URLQueryItem] = []) async throws -> Response {
try await perform(APIRequest<Response>(method: .get, path: prefix + path, queryItems: query, logsPayload: false))
try await perform(APIRequest<Response>(method: .get, path: prefix + path, queryItems: query))
}
private func write<Response: Decodable, Body: Encodable>(_ method: HTTPMethod, _ path: String, body: Body) async throws -> Response {
try await perform(APIRequest<Response>(method: method, path: prefix + path, body: body, logsPayload: false))
try await perform(APIRequest<Response>(method: method, path: prefix + path, body: body))
}
private func perform<Response: Decodable>(_ request: APIRequest<Response>) async throws -> Response {