llama-stack-mirror/tests/integration/common/recordings/309bb9f73dff144472637d28dd055eb24482eba3431d860f13f245cdbe4fab18.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": [
"artificial intelligence"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.024330618,
0.016706783,
0.037677176,
-0.00915746,
-0.030534461,
-0.017140884,
0.074272,
0.0456916,
-0.009377196,
0.009883053,
-0.0056895507,
0.007668296,
0.039537333,
0.015226257,
-0.083189555,
0.019439526,
-0.022046678,
-0.033254813,
-0.18105465,
-0.13025087,
-0.0022671346,
0.013451522,
-0.024325468,
-0.0370128,
0.0020083552,
0.08566712,
0.0047639925,
-0.0033431018,
-0.006082307,
-0.11575565,
0.06682902,
-0.018777572,
0.08786827,
-0.0074177794,
-0.093573004,
0.06146399,
-0.08110609,
0.012222862,
0.03971064,
-0.0026197461,
-0.04657111,
-0.08183902,
0.03959615,
0.015451151,
0.04370617,
0.103643835,
-0.058421485,
0.036699355,
-0.052699573,
0.040590122,
-0.12578927,
0.006500531,
-0.03583627,
-0.010050973,
-0.023851713,
0.045972254,
0.014605586,
0.019414552,
0.028465148,
-0.055030964,
0.024210233,
-0.052867457,
0.015230711,
-0.0043921247,
0.092372045,
0.033849865,
-0.04737281,
0.03204496,
0.001322036,
-0.051211488,
0.025862284,
0.08155327,
0.04092595,
0.019154705,
0.056453932,
-0.052758913,
0.030533386,
-0.01663434,
0.07877244,
-0.054262977,
-0.042149354,
-0.045443602,
-0.052689902,
0.11225497,
0.01989102,
-0.042375352,
-0.01168115,
0.024315914,
0.01915792,
-0.016550383,
-0.01030883,
-0.08545277,
0.023834355,
-0.042181373,
-0.02503509,
0.062114798,
-0.0045557353,
-0.15369569,
0.001106691,
0.19423288,
-0.0338511,
0.026152972,
-0.02032091,
0.0012884078,
-0.0010269672,
-0.02411262,
0.017495485,
-0.009808713,
0.07037937,
-0.13769862,
-0.11118059,
-0.01736481,
0.06603106,
-0.05188892,
0.0019610007,
0.014606686,
0.060775463,
0.096280165,
0.013551965,
0.019343173,
-0.00010512453,
-0.026652312,
-0.009341819,
0.07083247,
-0.0034617546,
-0.062412772,
-0.044611085,
-8.796679e-34,
-0.111884,
-0.04256611,
0.027425196,
0.06574074,
0.002830377,
-0.044104468,
0.005238822,
-0.036899913,
-0.015583552,
0.0206543,
-0.059225976,
0.007236511,
-0.028716031,
0.040467348,
0.13387093,
0.006795838,
-0.01636956,
0.082198486,
-0.02261007,
-0.03641293,
0.06524453,
0.021011814,
-0.005472363,
-0.038433436,
0.001462021,
0.0073671984,
0.016773427,
-0.062663026,
0.035388503,
-0.014395795,
0.027888605,
0.0837546,
-0.027772024,
-0.0036210797,
0.03903557,
-0.026879627,
-0.018737236,
0.019059159,
0.06522148,
0.0070414003,
0.004749159,
-0.0030224407,
0.040062208,
0.028016094,
-0.004660955,
0.012264517,
0.08708117,
-0.0070171114,
-0.03749808,
0.011326775,
0.015419708,
0.013775354,
0.017958472,
-0.009817919,
0.09011542,
0.05170552,
-0.034259036,
0.0043903207,
-0.01884889,
-0.031481344,
0.08216297,
0.016875258,
-0.022163702,
0.06844141,
0.01581623,
0.020322658,
0.0063856863,
0.016461994,
0.12718283,
0.014996434,
-0.010813858,
0.0017669421,
0.03166716,
-0.044353984,
-0.05225622,
0.022843942,
0.050988898,
-0.018916955,
0.0027930918,
-0.033645593,
-0.13571611,
-0.027015164,
-0.035672266,
-0.033537813,
0.047864296,
-0.0054381513,
0.021346755,
-0.040034927,
0.019374551,
0.012011466,
-0.04336231,
0.00054701004,
0.034879614,
0.017960642,
-0.062501945,
8.224154e-34,
-0.09450138,
0.013776636,
-0.025351105,
0.098992504,
0.045503527,
-0.02053458,
-0.029694881,
-0.059200566,
0.042453792,
0.0844487,
-0.043211546,
-0.0077362363,
0.049354795,
0.04203366,
-0.036539596,
0.014424774,
0.040357023,
-0.058971472,
0.010022987,
0.059877146,
-0.02790864,
0.034927685,
-0.087597504,
-0.060616262,
-0.0048867166,
0.08776906,
-0.0053599468,
-0.021816833,
-0.048162397,
0.046919785,
0.0083988905,
-0.0517289,
-0.020422187,
0.08581073,
-0.022597926,
0.034425046,
-0.014506674,
0.0031332907,
-0.04651877,
0.030281488,
0.039713897,
0.02969227,
-0.09310218,
0.051527865,
0.007809,
-0.05700871,
-0.041792583,
0.08987064,
-0.00813404,
-0.04082285,
-0.053487595,
-0.034378976,
-0.045253906,
-0.09715307,
-0.058194414,
0.06093547,
-0.009079956,
0.006918499,
0.012345728,
0.062036473,
-0.0060238577,
-0.0864295,
0.05872831,
0.053304974,
-0.05352623,
0.039521407,
-0.04498403,
0.0727911,
-0.039616212,
-0.05134442,
0.10334881,
0.02176773,
0.00016648973,
0.009423309,
0.022016358,
-0.006902813,
-0.128883,
-0.009864072,
-0.036396757,
-0.042481646,
0.004420737,
-0.047660243,
0.0065179355,
0.102602735,
-0.053166825,
0.07328581,
0.015810944,
-0.029149039,
0.025130944,
-0.063055776,
-0.043462534,
0.06719971,
0.014921177,
-0.0010985207,
-0.09869465,
-1.4682753e-08,
0.004611013,
-0.06715223,
0.07644809,
-0.019802453,
0.06737909,
0.044783685,
-0.050963327,
-0.0077186874,
-0.029319718,
0.028867716,
0.018877175,
-0.024279349,
0.04412064,
0.04416273,
0.03432814,
0.046517964,
0.02158077,
-0.001748483,
-0.0029956794,
0.014355785,
0.12525895,
0.03431845,
-0.014617591,
0.039184693,
-0.0023036227,
-0.014352919,
0.01010173,
0.02430961,
-0.041730728,
0.08832413,
-0.031459343,
0.030073628,
-0.0029376182,
0.0049478672,
0.09588392,
0.09396655,
0.01412568,
-0.077148266,
-0.039246846,
-0.01064901,
-0.008556093,
0.06409403,
-0.033037152,
-0.03049978,
0.0945846,
-0.008954658,
-0.029921891,
-0.132985,
0.059934624,
-0.011668423,
0.0071737366,
0.035627652,
0.0041028745,
0.056198087,
0.07656151,
-0.010067092,
0.05678312,
0.023536043,
-0.063770495,
0.08934554,
0.043756966,
0.04337246,
0.046287052,
-0.07039028
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 2,
"total_tokens": 2
}
}
},
"is_streaming": false
}
}