llama-stack-mirror/tests/integration/common/recordings/48dd89d77a4037f212263d6a92f0a1e66732c76df5816ec59caca96e2113ccf1.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": [
"precomputed embedding test"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
0.018028654,
-0.012809699,
0.031236293,
-0.023765916,
0.025391443,
0.060524806,
-0.02021129,
-0.012998811,
-0.043262906,
-0.02457441,
0.024864476,
-0.03498206,
0.027732838,
0.03259526,
-0.07889667,
0.009486857,
0.10838813,
0.07934079,
-0.058535714,
-0.017988257,
-0.066730656,
-0.003303451,
0.013297177,
-0.030867582,
0.044619933,
-0.064448416,
-0.04156302,
0.05774738,
0.11160175,
-0.051375058,
0.1242071,
-0.01810127,
-0.002112344,
0.08216886,
-0.015315923,
0.047978178,
0.020136585,
-0.048352767,
-0.018297242,
0.059441578,
0.0004810502,
-0.0129834395,
0.028861092,
0.04012127,
0.029778276,
-0.015386682,
0.008893761,
0.008527668,
-0.101560704,
-0.039107118,
-0.00219929,
0.0013412037,
-0.050971545,
-0.05588329,
-0.057825375,
-0.062680334,
0.021698005,
-0.05011937,
0.0403251,
0.033563063,
-0.009977842,
-0.086822525,
0.073723786,
0.008028875,
0.022204494,
0.023199162,
0.027907066,
0.035214607,
0.017993199,
0.098552026,
-0.020663997,
0.027003827,
-0.0500774,
0.04686782,
0.00917108,
0.07882336,
-0.018557398,
-0.077729434,
0.10943155,
-0.11207308,
0.010439173,
-0.07340931,
-0.0066290516,
-0.042460304,
0.12506229,
0.09801683,
0.0660869,
-0.003981612,
-0.08177393,
-0.009402311,
0.04328112,
-0.01717944,
-0.07916157,
0.0873264,
-0.005553213,
-0.024283845,
-0.026255112,
-0.021208413,
0.02769755,
0.11184319,
0.00814788,
0.009298051,
0.06087815,
0.031728,
-0.027759751,
-0.06756223,
0.083241135,
-0.010728824,
-0.0035912073,
-0.037301995,
0.0005677059,
-0.06368156,
0.008759182,
0.03228621,
-0.03566285,
-0.07348217,
0.041781336,
0.028546328,
-0.024625478,
-0.02344546,
0.028893117,
0.04187537,
0.04327681,
0.007868683,
0.02204154,
-0.05596309,
0.016420309,
2.7086095e-33,
0.006498072,
-0.05102914,
0.021128993,
0.079696916,
-0.04368096,
0.014891595,
-0.03284718,
0.13597973,
-0.05611768,
0.065166466,
-0.020231556,
0.053045265,
-0.044832457,
0.0828567,
-0.018177088,
0.03377287,
-0.016103493,
-0.039715588,
-0.050904434,
-0.0038329896,
0.015498999,
-0.030282972,
-0.050938744,
-0.115957625,
-0.076649554,
-0.06565169,
0.019764075,
-0.06825472,
-0.07423054,
0.025802143,
-0.14319569,
-0.07893587,
-0.021244677,
0.039639056,
-0.016771762,
-0.044094212,
0.006607121,
0.0058665574,
-0.079957776,
0.0024178843,
-0.026912177,
-0.001314472,
0.0020497818,
-0.03380618,
0.0059291054,
-0.046081297,
-0.034725416,
0.02528868,
0.019049278,
-0.024219116,
0.019568719,
0.03941725,
-0.033345263,
-0.07684812,
0.0054315818,
-0.0031623829,
0.0005356066,
0.018244456,
0.07461002,
0.025117932,
-0.10991429,
0.01122152,
-0.050930005,
0.07580464,
-0.12484931,
-0.0591179,
-0.0036239042,
-0.08543652,
0.039191302,
0.072754264,
0.011465748,
0.027549291,
-0.08110097,
-0.030435283,
-0.03465816,
0.032245405,
-0.03507338,
0.010230925,
-0.021762168,
0.0010682199,
0.013822321,
-0.028904948,
0.017150717,
-0.05295273,
-0.012557206,
-0.16905425,
0.030619822,
-0.10054792,
0.026634272,
-0.07122915,
0.0092741735,
0.017939111,
-0.03531683,
-0.038101353,
0.11609597,
-2.2711247e-33,
0.041248765,
0.083693914,
0.0089820735,
0.13582829,
-0.009228323,
0.0038762907,
0.061341565,
0.01469015,
-0.08240378,
0.05107197,
0.052173425,
-0.09126192,
0.018780502,
-0.050300993,
-0.0038688742,
0.008737851,
-0.08193838,
-0.060001966,
0.016477142,
0.043078806,
-0.04115415,
0.045952313,
0.037546176,
0.03270977,
-0.007376975,
0.08626973,
0.03767993,
-0.00026940287,
-0.035631977,
0.020278217,
-0.0061969752,
-0.019155525,
-0.055412345,
0.034521118,
-0.028578442,
0.004530765,
0.07261302,
0.042001948,
0.011119676,
0.018817117,
0.09709029,
0.09413343,
-0.12912744,
0.035019256,
-0.0044004405,
-0.012197643,
-0.0016767152,
-0.050653454,
0.15880086,
-0.012520415,
-0.021363545,
0.032528505,
0.046278242,
0.05432749,
0.0068259244,
-0.027164718,
-0.061874453,
-0.045347977,
-0.008326152,
0.040174823,
-0.016723135,
-0.040927786,
0.039524958,
-0.021477904,
0.005540513,
-0.08496149,
-0.03831685,
0.10397451,
-0.020332867,
0.029680394,
-0.039777882,
0.035099667,
-0.0034420816,
-0.0068078735,
0.053187653,
0.011835961,
0.046571333,
0.024157742,
0.06848898,
-0.009515957,
-0.0065540504,
-0.03787176,
-0.013776801,
0.021354824,
0.030594762,
0.1030499,
0.02779013,
0.007137683,
0.0043066535,
0.009143458,
0.06913005,
0.087646194,
-0.04637201,
0.018210901,
0.065364964,
-1.7641524e-08,
-0.06085661,
-0.07560718,
0.044324413,
-0.024757527,
-0.0613841,
-0.045388643,
0.020636274,
-0.034330957,
-0.035204973,
-0.023755621,
0.027765684,
-0.0021510508,
-0.053484533,
-0.01961888,
-0.041783966,
-0.0009724822,
-0.043084696,
-0.0115936445,
-0.0051043336,
0.06577775,
-0.05711708,
0.095585465,
0.08890878,
-0.022215102,
-0.067304604,
-0.022770444,
0.018797465,
0.03001117,
0.055300087,
0.05072916,
0.02093567,
0.06547353,
-0.0373716,
-0.078019574,
-0.03963001,
0.095844686,
0.06597364,
-0.010788323,
-0.047525086,
0.034165245,
-0.05954935,
-0.02092253,
0.00427131,
-0.097080074,
0.06944156,
-0.046935465,
0.0026667016,
0.014033051,
0.0018345766,
-0.014996133,
0.018471623,
-0.026374022,
-0.06662875,
0.036712583,
-0.0066104354,
0.015776748,
0.024043838,
0.03837956,
-0.06429473,
0.013731244,
0.00576132,
-0.025671437,
0.077528514,
-0.014770322
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 7,
"total_tokens": 7
}
}
},
"is_streaming": false
}
}