llama-stack-mirror/tests/integration/common/recordings/dc42c9eaaeabf3f28597636a9edcc245c45cbc58997958455e017ff4abfca69e.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": [
"Why are data structures important in computer science?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.012121224,
0.065283775,
-0.031828098,
-0.050533295,
-0.000559651,
-0.117278345,
-0.04308437,
0.02459189,
0.08322979,
0.03383215,
-0.023825474,
0.020455152,
0.03229476,
0.012191574,
0.028948747,
0.029945148,
-0.09962685,
0.014148029,
-0.02152299,
-0.07066101,
-0.028708395,
-0.029545417,
-0.06830065,
0.0032041979,
-0.022194624,
0.13839465,
-0.034375604,
-0.039909832,
-0.01617239,
-0.042050518,
-0.0016004258,
0.03264938,
0.1228666,
0.053511623,
-0.08693471,
0.04262473,
0.102871284,
-0.021908395,
-0.06451719,
0.025297882,
-0.09645283,
0.035439685,
0.021054002,
0.062086396,
0.03250647,
0.017929567,
-0.0064555136,
-0.062028162,
-0.0135677345,
0.024553994,
-0.1368929,
0.034426004,
-0.027600378,
0.034092665,
0.020453494,
0.077937506,
0.09397431,
0.0039949166,
-0.043160275,
0.0031234391,
-0.017559106,
-0.034251958,
-0.06832864,
0.005067006,
0.08827679,
-0.012396526,
-0.0016663567,
0.0076103527,
0.034685597,
0.010151312,
0.018427953,
-0.007857038,
-0.023415359,
0.07745625,
0.039891455,
-0.010898847,
-0.053617254,
-0.029968884,
0.033180792,
0.0051498017,
0.013946087,
0.017846711,
-0.029261263,
0.07983002,
0.041999985,
-0.0025236767,
0.027923688,
-0.03820506,
-0.08007613,
-0.030338509,
0.09233852,
-0.033840578,
-0.0003369184,
0.029203981,
-0.042779874,
-0.003000105,
0.036672253,
-0.056312278,
0.07480859,
0.0073021087,
0.04642536,
0.023815228,
0.06264434,
0.071836166,
-0.06051093,
-0.10114555,
0.0479608,
-0.01038347,
0.00086438353,
-0.060157005,
-0.0335157,
0.047713548,
-0.05504094,
-0.047708143,
-0.03806068,
-0.12864664,
-0.080740795,
0.00488005,
-0.021237006,
-0.027117945,
0.00213705,
-0.030985976,
-0.03925481,
0.014327561,
-0.0035586155,
-0.0718755,
-0.14748481,
-3.6236487e-33,
-0.017458837,
-0.029069569,
-0.025219694,
0.06710336,
0.022299273,
-0.030069383,
-0.004586519,
-0.044689007,
-0.0029118024,
0.04014835,
-0.026982304,
0.05259229,
0.041323557,
0.039832227,
0.12857063,
0.024862071,
-0.010504806,
0.071363546,
-0.034005973,
-0.033550162,
0.073365115,
-0.028020127,
0.07399476,
-0.029161343,
0.030931864,
0.026440877,
-0.012934563,
-0.0047553787,
-0.0066380627,
0.0010616226,
0.02439259,
-0.019311374,
-0.0010048562,
0.026725113,
0.12302919,
0.06689342,
-0.0046087033,
-0.111448176,
0.06522454,
-0.06937826,
0.031628348,
0.036527015,
0.027612917,
0.038115177,
-0.044219546,
-0.026808597,
0.022314643,
-0.030792674,
-0.007007144,
-0.09740119,
0.028271552,
0.015346559,
0.047170583,
0.040345363,
0.044190597,
0.0447409,
-0.02837017,
-0.09805617,
-0.03537659,
0.06582068,
-0.069465525,
0.052020393,
0.056193035,
0.033971597,
0.005210592,
0.078895815,
-0.019023085,
5.606078e-05,
0.11005375,
0.00561175,
-0.019272799,
0.026027812,
-0.06131601,
-0.011148418,
-0.032465253,
0.026716042,
-0.03886674,
-0.0759903,
-0.0061513656,
0.049423866,
-0.055821903,
-0.024968743,
0.037209604,
0.014002402,
-0.021358877,
-0.02458481,
0.05008321,
-0.031584553,
-0.048197404,
-0.022181684,
-0.02293868,
-0.012057256,
0.017739978,
-0.019266011,
-0.018707512,
5.874863e-34,
-0.027774926,
-0.01628369,
-0.030606823,
0.0030768446,
-0.013620647,
0.013607563,
0.012500588,
-0.12636122,
0.003114705,
0.020748,
0.0032593068,
0.00955475,
0.040658835,
-0.06274069,
0.043445643,
0.05112685,
-0.027120586,
-0.07154828,
-0.04856933,
-0.039851334,
-0.021135362,
0.08140574,
-0.08054097,
-0.0352517,
0.028707877,
-0.017911764,
-0.105602115,
-0.1456371,
0.05109306,
0.037721474,
-0.018393144,
-0.04670456,
-0.010012838,
0.0070661786,
0.01718129,
-0.0152612645,
0.06257437,
-0.010648009,
0.055472728,
0.0076398435,
-0.012911289,
0.11340586,
0.0062300097,
-0.023628544,
0.0451771,
0.040881336,
-0.012546607,
0.107069954,
-0.040827636,
-0.039625224,
0.086943075,
0.02463338,
0.029724725,
-0.07418139,
0.08615357,
0.012526386,
-0.048520107,
0.021346126,
0.015401712,
0.05206262,
-0.059071172,
-0.040299848,
0.045304313,
0.050905313,
-0.025824293,
-0.02050251,
-0.066599905,
-0.058739703,
-0.04681202,
-0.122372836,
0.03961065,
0.060646072,
-0.020943962,
0.05637889,
-0.121316396,
-0.029866785,
-0.025299111,
0.01346038,
-0.0035995352,
0.08078866,
-0.004042329,
0.004386873,
0.00642668,
0.03452551,
0.0026174714,
0.03649033,
0.06241774,
-0.06870471,
-0.021478085,
-0.08813823,
-0.066771664,
-0.025059622,
-0.04362152,
0.07309467,
-0.050303426,
-1.6242064e-08,
-0.04860963,
-0.056240723,
0.017135851,
-0.058168963,
0.02380126,
-0.01269811,
-0.010935133,
0.121548,
-0.008468518,
0.01312642,
0.056417845,
0.001745541,
-0.06339625,
0.0011892327,
0.07962892,
0.032180272,
0.09379525,
-0.08279229,
-0.038770583,
0.05602728,
0.050186045,
-0.0002204473,
-0.08992176,
0.0820179,
0.06597213,
-0.032315623,
0.049116198,
0.05539249,
-0.03212872,
0.019493975,
0.009433956,
-0.046522886,
0.048498902,
0.068869725,
0.103564635,
0.01809954,
0.06455212,
0.02978335,
-0.046306483,
-0.113863915,
-0.011921847,
0.020680778,
-0.03264169,
0.09134996,
0.09192247,
0.022789994,
-0.07053687,
0.08713363,
-0.032319076,
0.025547152,
-0.04827912,
0.03129379,
0.0023230815,
-0.0062460257,
-0.020319907,
0.012855849,
0.011000575,
-0.043819454,
-0.016704831,
0.041362077,
0.0058780382,
0.015617928,
0.038075592,
-0.0739032
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 9,
"total_tokens": 9
}
}
},
"is_streaming": false
}
}