llama-stack-mirror/tests/integration/common/recordings/fd1b077ce460e8f74c3d0524f178033195647b4692da1d23ccacf91c3543531d.json
Ashwin Bharambe 045a0c1d57
feat(tests): implement test isolation for inference recordings (#3681)
Uses test_id in request hashes and test-scoped subdirectories to prevent
cross-test contamination. Model list endpoints exclude test_id to enable
merging recordings from different servers.

Additionally, this PR adds a `record-if-missing` mode (which we will use
instead of `record` which records everything) which is very useful.

🤖 Co-authored with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-04 11:34:18 -07:00

423 lines
11 KiB
JSON

{
"test_id": null,
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"test query"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
0.06829306,
0.061738,
-0.0064223274,
0.08267553,
-0.07827752,
0.026546001,
0.13129343,
0.041391023,
-0.01950488,
-0.027131394,
0.08875853,
-0.10276945,
0.05070562,
-0.07138499,
-0.0092889285,
-0.039247777,
0.028884362,
-0.010484688,
-0.02469515,
-0.0354649,
-0.04093021,
-0.009903105,
-0.026185337,
0.057967436,
-0.00060980336,
0.007659294,
0.013928803,
-0.0016587646,
0.044655163,
-0.058990903,
-0.037958965,
0.037799176,
-0.033270117,
0.071682036,
0.09722083,
-0.08261939,
0.027622383,
-0.014190519,
0.01816939,
-0.002717151,
-0.02426505,
-0.11493204,
0.0851599,
-0.016752614,
-0.006310121,
0.065255314,
-0.058001935,
0.096675195,
-0.01419834,
-0.0068260576,
-0.09889976,
-0.015109596,
-0.07833432,
-0.035589334,
-0.008278154,
-0.013655421,
-0.07625151,
-0.030405698,
-0.013589333,
0.050117858,
-0.010591754,
-0.038398717,
0.067407176,
0.03565695,
0.010748793,
-0.0782303,
-0.006898065,
-0.03009224,
0.05595709,
-0.076849714,
-0.009063107,
-0.0028242348,
-0.02941444,
0.06881705,
0.013745148,
0.03078439,
-0.036471423,
-0.07147355,
0.054742936,
-0.028959772,
-0.06466119,
-0.05974295,
-0.06766193,
0.022777116,
0.079530336,
0.051767077,
0.14789894,
-0.0024908637,
-0.05542459,
-0.027760198,
0.019384151,
0.06692773,
-0.07952434,
0.019047031,
-0.00097613735,
0.013479467,
0.038207904,
-0.040212464,
0.06499357,
0.13929029,
0.0592868,
0.018087199,
-0.04910378,
-0.057469312,
-0.17034933,
0.009854021,
0.04478709,
-0.08707103,
0.046889827,
-0.020303966,
-0.062274974,
0.030287566,
0.04991786,
-0.030625034,
-0.007196787,
-0.060630832,
-0.0057445914,
0.028697284,
-0.055902485,
-0.0060850815,
0.075516894,
0.07304865,
-0.03200336,
-0.027994294,
-0.0013179975,
0.02373418,
0.082337655,
-2.0787389e-33,
0.014712573,
-0.084956154,
0.059368864,
-0.00785449,
-0.015981624,
0.02598549,
0.037614744,
0.12561654,
-0.04002324,
0.02472032,
0.014450717,
-0.06304021,
0.034111217,
-0.00766782,
0.008186535,
0.10461876,
0.018852819,
-0.021535609,
-0.04381762,
0.05679568,
0.01621111,
-0.0734938,
0.020150887,
0.05246773,
0.015011716,
-0.06588331,
-0.03257114,
0.025002314,
0.018430108,
-0.00030111038,
-0.06266604,
-0.006196726,
-0.16044672,
0.028114004,
0.032982383,
0.037261836,
0.0540566,
-0.0079226745,
-0.008597091,
0.054075282,
-0.046998158,
-0.03870267,
0.08493371,
-0.005938313,
0.021924777,
-0.05206361,
-0.047436308,
-0.054906387,
0.03400277,
-0.028335828,
-0.032045983,
-0.0013805287,
-0.04042137,
-0.017744336,
0.052251115,
0.0038320236,
0.008692022,
0.03270182,
0.010805367,
0.11194987,
-0.019722551,
-0.04577441,
-0.002028829,
0.020897591,
-0.006168528,
-0.0017238662,
-0.006808375,
-0.08133367,
0.091827765,
0.048646383,
0.07771223,
-0.05870435,
0.006373254,
0.0036029797,
-0.071249805,
0.022061123,
0.019477166,
0.10132688,
0.006618212,
-0.044631813,
0.06139753,
-0.09197761,
-0.013284173,
0.014608393,
-0.01761416,
0.0073858253,
0.0062043094,
-0.048021033,
0.013127433,
-0.077592075,
0.014133566,
0.035386372,
-0.02616333,
0.0027075391,
0.08635036,
9.132231e-34,
-0.022040669,
0.05085595,
-0.027267562,
0.02862394,
0.0137278,
-0.07108621,
0.09040417,
-0.09064723,
-0.0656353,
0.06688156,
0.06701843,
-0.05015593,
0.01906404,
-0.04147956,
0.012601856,
0.06909683,
0.028203059,
-0.0709644,
-0.061153468,
0.031663477,
-0.09626921,
0.13134153,
-0.003593543,
-0.027185699,
-0.06297406,
-0.00092433795,
-0.008680087,
-0.031325806,
-0.018586429,
0.011512126,
0.071864344,
-0.071975954,
-0.005884031,
0.09355209,
0.046686243,
-0.031970512,
0.06956754,
-0.045880646,
0.010095539,
0.064092614,
0.07247815,
0.04723167,
0.048781574,
0.06763336,
0.0054456857,
0.035764687,
0.018254038,
-0.03819517,
0.050082564,
0.04140595,
-0.025459196,
0.021584416,
0.014274055,
-0.007126868,
-0.014268015,
-0.010105026,
-0.09164537,
0.009354007,
0.004333732,
-0.009582354,
-0.029860867,
0.17471065,
-0.0045884773,
0.05782756,
-0.044819925,
-0.051430847,
-0.045887176,
0.0074449414,
0.0054387357,
0.039599653,
-0.056232683,
-0.002221041,
0.047835752,
-0.039582185,
0.027316216,
0.039718047,
-0.07969795,
0.03511298,
0.029242206,
0.010144028,
-0.03904501,
-0.027879883,
-0.040858228,
0.04611512,
-0.06931006,
0.061977647,
0.03922111,
0.025860278,
0.0064425017,
0.053613506,
0.069628745,
-0.007990142,
-0.038263973,
-0.10954397,
0.018542184,
-1.33346125e-08,
-0.025668526,
-0.07473254,
-0.019855365,
0.0384919,
0.027314084,
-0.010875396,
-0.035207637,
0.036075134,
-0.063237526,
0.011492366,
0.03342596,
-0.012063488,
0.0039839908,
0.016522188,
-0.008002217,
-0.04168924,
-0.07092195,
0.008746656,
0.004452133,
-0.03877822,
-0.051253635,
0.01774984,
-0.018253444,
0.04394154,
-0.042883426,
0.08245372,
0.015452854,
0.022076968,
0.04442366,
0.022832815,
0.08296971,
-0.01261236,
0.013092747,
-0.06689178,
0.0478462,
-0.04507667,
0.006519156,
0.0055980994,
-0.019575223,
-0.01730519,
-0.03837497,
-0.00043787624,
-0.008650636,
-0.026787039,
-0.06598753,
-0.14336495,
0.041543495,
-0.048590284,
0.012749011,
-0.08499328,
-0.010950221,
-0.038154602,
0.030090204,
-0.03886871,
-0.03670644,
0.046492297,
0.03623469,
0.052362714,
-0.09623828,
-0.04149126,
0.050219554,
-2.084757e-05,
0.0019338154,
0.019553935
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 2,
"total_tokens": 2
}
}
},
"is_streaming": false
}
}