llama-stack-mirror/tests/integration/common/recordings/d858d338f661f472242103493b8a13cd0da7f4760394075f4d2d04c1ba51ab71.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": [
"What is the capital of France?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
0.082037136,
0.03605009,
-0.003858349,
-0.0048745335,
0.025680654,
-0.05718634,
0.012181495,
0.0046627503,
0.03504826,
-0.022433529,
-0.008051872,
-0.10929119,
0.022724133,
-0.029288922,
-0.043489166,
-0.120253265,
-0.00086341135,
-0.018151222,
0.0561967,
0.00309959,
0.0022962212,
-0.016878856,
0.06362854,
-0.02366614,
0.031488717,
-0.034919456,
-0.020573795,
-0.002815633,
-0.011089214,
-0.036135226,
0.054130327,
-0.036599707,
-0.025023036,
-0.038259722,
-0.049688417,
-0.015200446,
0.021407988,
-0.0127598485,
0.07668212,
0.044370703,
-0.0108555285,
-0.02972891,
-0.016925987,
-0.024663594,
0.008030216,
0.043554515,
0.0071516195,
0.07550263,
0.032855336,
-0.062009048,
0.066706404,
0.027028719,
-0.04570193,
-0.03146736,
-0.031145794,
0.091601126,
-0.0017914127,
-0.011287448,
0.03652323,
0.05692562,
0.0023244114,
-0.037794005,
-0.015485576,
0.05239373,
0.060352743,
-0.01656626,
0.008852838,
-0.0066740657,
-0.10624023,
0.0016855119,
-0.04846779,
-0.029726079,
0.004318477,
-0.08570177,
0.066239014,
-0.055177763,
-0.113279216,
0.050822813,
-0.0093511855,
0.0059375227,
0.020984603,
-0.022525566,
0.00049133686,
0.056391854,
0.045508638,
-0.005227753,
0.09361666,
0.027507791,
0.02937236,
-0.045665868,
-0.048981518,
0.0014411878,
-0.012885078,
0.079774186,
-0.119063824,
0.06878127,
-0.022768173,
0.044935144,
-0.081365064,
0.0439928,
0.002936521,
0.01760215,
0.08313044,
-0.018089816,
-0.04793947,
0.058759455,
0.0062854686,
-0.014705522,
-0.0072833668,
-0.078145795,
-0.10076618,
-0.03352427,
-0.0008879286,
-0.05110566,
0.027157873,
0.07079609,
0.04741029,
-0.10456867,
0.0044786637,
-0.028797852,
-0.018375952,
-0.050554108,
-0.031530026,
-0.009527807,
-0.060606185,
0.021066627,
-0.046673466,
-7.760674e-33,
-0.03134469,
0.056437604,
0.07740162,
0.063869186,
-0.04665667,
-0.0076621915,
-0.055314656,
0.040249433,
-0.03159584,
-0.0070865196,
0.0394448,
-0.13172099,
-0.06611813,
0.021771116,
0.09699056,
0.011762843,
0.08904323,
0.034680966,
-0.043843478,
-0.00029840716,
0.014667039,
-0.0027011412,
-0.0033179414,
0.017366407,
0.060072616,
0.039403416,
-0.0017028108,
0.07735126,
0.01458652,
-0.0022484495,
-0.0018689616,
0.015051134,
0.021683147,
0.00743522,
0.018044684,
0.049780875,
0.012682762,
-0.0025319885,
0.04345311,
0.062966056,
0.06655509,
-0.036332715,
-0.03873148,
0.04407342,
0.005618046,
0.005606404,
-0.03491582,
-0.071468666,
0.100827605,
-0.02480599,
0.014779361,
-0.025853567,
-0.07272276,
-0.017332677,
0.026024899,
0.1141519,
-0.0709077,
0.017926728,
-0.0033771452,
0.008450764,
-0.0031734016,
0.0058758706,
-0.022959052,
0.07754777,
0.034691088,
0.087492526,
0.04631641,
0.018653069,
0.011075838,
-0.045833264,
-0.04647619,
0.026525397,
0.073937215,
0.0656064,
0.0626801,
0.07236128,
-0.008934351,
-0.035436727,
-0.0053167064,
-0.0031780244,
-0.03794062,
-0.04136672,
-0.096589684,
0.044174723,
-0.03346829,
-0.0714272,
-0.011707928,
-0.0071373517,
0.00062674406,
-0.08837231,
-0.11327292,
-0.121232145,
-0.0013483085,
-0.044267938,
-0.0866299,
3.9974636e-33,
0.025347712,
-0.0026484786,
-0.081128426,
0.025477463,
0.0013318929,
0.016020615,
0.09553763,
0.03323222,
-0.012020247,
0.01704576,
-0.08304897,
-0.12452585,
0.043876667,
0.012038639,
0.065846756,
0.10058584,
0.07289197,
-0.02691023,
-0.032209095,
-0.05359179,
-0.12634858,
0.0054822033,
-0.035338957,
-0.0042626564,
-0.02503011,
0.041566424,
-0.09993105,
-0.047632236,
-0.023974935,
0.0026521643,
-0.05512872,
0.013588852,
0.048989374,
0.08497172,
-0.04203127,
0.07672574,
0.033201486,
0.0012890669,
0.039995532,
0.06453696,
-0.043386992,
-0.04967135,
0.05796046,
0.11259055,
0.07072716,
0.008217265,
0.043992482,
-0.022529528,
-0.007255873,
0.049954277,
0.03863772,
0.067863524,
-0.040989004,
0.0057252604,
0.01790208,
0.049277905,
-0.051399034,
0.051036645,
-0.09386299,
-0.06816727,
0.06536689,
0.075451665,
-0.016844928,
0.066079356,
-0.002883201,
-0.02066376,
-0.12701727,
0.061581187,
-0.009843711,
-0.014696306,
0.13543285,
0.034152385,
-0.064830035,
0.050995078,
-0.06642675,
0.02918273,
0.0794261,
0.014402853,
-0.0273022,
0.0053402875,
-0.067574784,
-0.020469556,
-0.027134288,
-0.026119156,
-0.07057518,
0.034702294,
0.0075764027,
-0.102168776,
0.058453083,
-0.074793324,
-0.022044567,
-0.006830346,
-0.051225647,
-0.03697986,
0.025650427,
-1.7504691e-08,
0.06810578,
0.04502295,
-0.04405543,
0.012894445,
-0.05787301,
-0.09544731,
0.062167827,
-0.00424131,
-0.008617457,
0.00019244938,
-0.07362401,
0.056028713,
-0.06966302,
-0.051120024,
-0.04107452,
-0.0047826064,
-0.032448206,
0.043075,
0.008685862,
0.022739133,
-0.004866129,
0.023324043,
-0.045655783,
-0.058080837,
0.012551997,
-0.09902558,
0.040637206,
0.045673274,
0.0027036674,
-0.005293385,
0.06631416,
-0.027342914,
-0.05006773,
-0.09028891,
-0.036147803,
0.012678981,
-0.005860591,
-0.0049548894,
0.009455272,
-0.029030358,
0.09503264,
0.061976723,
0.012456961,
-0.011967612,
0.024475172,
0.045389146,
0.05380351,
-0.035200197,
0.11459815,
-0.08903123,
-0.111395806,
0.09941666,
0.0039118743,
0.004477415,
0.0033548488,
0.07087783,
-0.051348306,
-0.012647007,
0.021842662,
-0.02008024,
-0.0149204545,
0.049170345,
0.08937761,
-0.011069278
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 7,
"total_tokens": 7
}
}
},
"is_streaming": false
}
}