Compare two texts and see exactly what changed.
uvicorn diffgate.app:app --port 8006
curl -s -X POST http://localhost:8006/v1/diff \
-H "Content-Type: application/json" \
-d '{"text_a": "hello\nworld", "text_b": "hello\nearth"}' | jq
Returns similarity (1.0 = identical, 0.0 = completely different), additions, deletions, and changes (each with type add/delete and content).
共 1 个版本