llama-stack-mirror/tests/integration/common/recordings/a9e485a6df4580a83397faaf868328e397c9a9e4bac5ebe4d126430405d4e95d.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 makes Python different from C++ and Java?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.10114214,
0.03907222,
-0.0136641655,
-0.0072733867,
-0.029630955,
-0.08419825,
-0.09115893,
0.045271404,
-0.014401329,
-0.03197073,
-0.056301404,
0.007848106,
0.045092124,
0.016427228,
0.03918103,
-0.11779858,
-0.038849887,
-0.0020038206,
0.024111351,
-0.06552662,
-0.017039359,
-0.019270914,
-0.021036105,
-0.05220699,
0.09144319,
0.015262649,
-0.0018117974,
-0.040091433,
0.009259739,
0.0020523896,
-0.010952759,
0.044184238,
0.021551771,
-0.01303849,
-0.06874452,
0.021739954,
-0.0032466175,
-0.085020766,
-0.05317665,
-0.015456109,
-0.08548471,
0.07158118,
-0.054785267,
0.0016628855,
-0.077042535,
0.034955945,
-0.013297581,
0.004827764,
-0.017441196,
-0.023658844,
-0.06933736,
0.039610106,
-0.06341067,
-0.0848227,
-0.008904518,
-0.009383634,
0.021251267,
0.028612463,
-0.007153803,
-0.1005249,
-0.084017456,
0.0006758074,
0.049526986,
0.09174785,
-0.040068343,
-0.083671585,
0.011383463,
0.027855974,
0.08031947,
-0.08157933,
-0.13828354,
0.0020071496,
-0.013313974,
0.06468236,
0.011694861,
-0.06847593,
-0.00809834,
-0.0073247305,
-0.04928498,
-0.016807823,
-0.0023689861,
0.046255514,
-0.09154476,
0.07043282,
0.047471054,
-0.03399052,
0.030891502,
0.06225142,
-0.07528323,
0.022166278,
0.072581686,
-0.059428774,
-0.016640864,
0.027896203,
-0.030342449,
0.026414659,
-0.024078583,
0.027981212,
0.0018131789,
0.005452342,
0.017845215,
-0.055024315,
0.10013643,
0.06022327,
0.09585158,
0.0045811245,
0.022359503,
-0.073088154,
0.071565166,
-0.0057549966,
-0.02758434,
-0.07228957,
0.0022432443,
-0.056439098,
0.056760304,
0.049624503,
-0.035935506,
0.07388852,
0.018553086,
-0.02012753,
0.025371902,
-0.038569324,
0.00046126024,
-0.019829638,
-0.052187666,
0.083509386,
-0.08311344,
-3.450042e-33,
-9.5951305e-05,
-0.10703808,
0.0005907826,
0.022349609,
0.06789932,
-0.009231551,
0.01043412,
0.06903771,
0.008283294,
-0.027107019,
-0.020996496,
0.05135145,
0.021256963,
0.10377047,
0.0516977,
-0.016388537,
-0.0054499,
0.018042242,
-0.012412981,
-0.01670625,
0.02888575,
0.030310739,
0.05225688,
0.07002477,
0.038847093,
-0.012829767,
0.010876501,
0.009466387,
-0.031189095,
0.012374546,
-0.043738823,
-0.06606086,
-0.048342932,
0.061392996,
0.04780769,
0.03705927,
-0.0107321385,
-0.111132264,
0.010811268,
-0.05612893,
-0.06987752,
-0.0075500263,
0.017742567,
-0.05037409,
-0.0013054982,
0.014647113,
-0.028618252,
-0.037010238,
-0.1298283,
0.0113550965,
0.016460437,
0.024126524,
0.06691595,
0.11010248,
0.0024214247,
0.029295715,
0.064561754,
0.025433032,
-0.065200716,
-0.0030545525,
-0.014491044,
0.17163919,
0.095030405,
0.0045891963,
0.034705147,
0.08072168,
0.028373849,
0.07841086,
0.005205931,
0.10743857,
0.0007014695,
0.048996735,
-0.026168453,
0.024847178,
0.019963117,
0.0025105758,
-0.008854137,
-0.12396376,
0.013480892,
0.012555528,
-0.06528301,
0.0025346398,
0.01240918,
-0.052885078,
-0.060320165,
-0.066110075,
0.022565817,
0.034772247,
0.07140949,
-0.042248387,
-0.046747327,
-0.013105569,
0.050651688,
0.009715156,
-0.06581985,
-7.635395e-34,
-0.04897506,
0.0010128694,
-0.027718432,
-0.0041697295,
-0.07848968,
-0.014492874,
-0.0031687638,
-0.0036255568,
0.0064202263,
-0.004983974,
-0.02579909,
-0.057978548,
0.08951978,
0.032288257,
0.09727884,
0.014959338,
-0.09056506,
0.048781175,
0.017300608,
0.001862639,
-0.018078858,
0.076162815,
-0.038080547,
-0.03363362,
0.024905922,
-0.021433176,
-0.08961812,
-0.017817033,
-0.005293553,
0.039034076,
0.039332952,
0.09031179,
-0.08850806,
0.018940613,
0.04462756,
-0.022598635,
-0.032514982,
-0.025538381,
0.025907593,
-0.0015969023,
0.122049265,
0.007121432,
0.091294795,
0.08834903,
0.029018097,
0.053964727,
-0.025502406,
0.07880072,
0.021113113,
-0.10103803,
0.017860822,
0.036331084,
0.05827095,
-0.03918518,
-0.0099170245,
-0.03438984,
0.049824018,
0.05366972,
-0.06543297,
-0.009113741,
-0.045461684,
-0.07628902,
0.04937,
0.004117691,
-0.04964563,
0.036199104,
-0.049797464,
-0.014319117,
-0.048715435,
-0.13180226,
0.092643484,
0.02324219,
-0.015897153,
0.012075257,
-0.06727492,
0.024846908,
-0.000951305,
0.0052683842,
-0.034409966,
0.04838344,
0.01549755,
0.03753494,
-0.029204983,
0.035670146,
-0.089233644,
0.034226168,
-0.07903887,
-0.02996078,
-0.004548613,
-0.005951666,
0.029300887,
0.09811565,
-0.03359726,
0.015628323,
-0.018502824,
-1.6826924e-08,
0.055624004,
0.009106331,
0.006510649,
0.012460225,
0.044167887,
0.038391363,
-0.040823948,
-0.010433062,
-0.007968836,
0.017141042,
-0.036474515,
-0.0002891457,
-0.07383876,
-0.059356246,
0.01263675,
0.08645746,
-0.061042227,
-0.0598006,
0.009283659,
0.070248455,
0.050018266,
-0.018549316,
-0.07250673,
0.116423815,
-0.094454624,
-0.044917557,
0.053439382,
0.016372094,
0.036027066,
-0.037508164,
0.0030754239,
0.0030424313,
-0.050895445,
0.030551752,
-0.0034856314,
-0.0062451097,
0.029863443,
-0.039702807,
-0.04185474,
0.022604853,
-0.037152383,
-0.009120953,
-0.008043679,
0.006496744,
0.041414227,
0.037997484,
-0.044111177,
-0.017690517,
-0.070938915,
-0.021036588,
-0.012320768,
0.011402398,
0.07050368,
-0.058289114,
0.03478118,
0.018043809,
-0.12436488,
-0.050911676,
0.006109093,
0.050273232,
-0.0049426276,
-0.015945744,
0.18111129,
0.023929134
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 11,
"total_tokens": 11
}
}
},
"is_streaming": false
}
}