llama-stack-mirror/tests/integration/common/recordings/d22d7c2e60d39915b2aacb591419f8d8a860c1da814d3876bfd3de5c38dc9347.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": [
"How does machine learning improve over time?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.014445183,
-0.009654587,
0.10597255,
0.033844832,
0.08258401,
-0.016073994,
-0.10565998,
-0.041170366,
-0.037101638,
-0.042355694,
-0.092800476,
0.14738984,
0.02073352,
-0.04585085,
-0.018904693,
0.0057111536,
-0.00990371,
0.024870383,
-0.0643097,
-0.15703635,
-0.041487914,
-0.02551005,
0.0041570948,
0.002755327,
0.015192153,
0.004825202,
-0.008017003,
0.0135293985,
0.020625206,
-0.021382572,
-0.008219624,
0.016415505,
0.024082497,
0.04667946,
-0.12017151,
0.027111264,
0.009567663,
0.07104433,
-0.0075714453,
0.0075137764,
-0.046612848,
-0.06467026,
-0.01701626,
-0.033229064,
0.09738016,
0.023499198,
0.033301026,
-0.07453178,
-0.014937841,
-0.004009824,
-0.14380075,
-0.049340166,
0.031866375,
-0.037347607,
-0.014127062,
0.06710688,
0.032435875,
0.1073399,
0.0076118726,
-0.03449041,
-0.013211566,
-0.08043777,
-0.08540821,
0.020908045,
0.05838844,
-0.068850316,
-0.011408923,
0.033571277,
-0.003625804,
0.032300755,
-0.0031629566,
0.10450478,
-0.035273418,
-0.004964187,
0.030840868,
0.033008352,
0.0014793881,
-0.016016793,
0.095193624,
-0.012352839,
0.056897637,
0.0018629982,
-0.014621383,
0.05316159,
0.056566507,
-0.07527745,
0.0047514304,
-0.041596726,
-0.07345409,
-0.06410288,
0.08828315,
-0.038327314,
-0.04579678,
-0.053514626,
-0.009097837,
0.017636398,
-0.006708366,
-0.032169648,
0.037196606,
0.11070655,
-0.057413373,
0.080887154,
0.009774811,
-0.03158706,
0.05514812,
0.007367309,
0.087626286,
0.051408686,
0.053192124,
-0.04280333,
-0.002030632,
0.045979824,
-0.03926028,
-0.014041888,
0.0012870965,
-0.031039823,
-0.044484112,
0.027111668,
-0.036867935,
0.10270427,
-0.0017841645,
-0.0014521909,
-0.0060089766,
0.0044829105,
-0.033995174,
0.016447132,
-0.029764142,
-2.9425865e-33,
-0.03065355,
-0.06274892,
-0.02032552,
0.03412096,
-0.020956447,
-0.08833501,
-0.033842463,
-0.065666825,
0.051962674,
-0.024898706,
-0.0019572708,
0.037274398,
0.0057915524,
0.04256373,
0.06545092,
0.0021057355,
-0.07834314,
0.040396694,
0.048470274,
0.0068822177,
0.045191333,
-0.08204471,
0.015138025,
-0.032225505,
-0.0019436254,
0.026963014,
0.060294133,
0.05053382,
-0.038975775,
0.00902214,
0.04729025,
0.027264046,
-0.11625797,
0.036381606,
0.067938894,
0.044499546,
0.04823323,
-0.014156788,
0.071356796,
0.009203482,
-0.039818425,
-0.03104177,
0.043964274,
-0.055055745,
0.004184981,
0.011073149,
0.024190389,
-0.10402976,
-0.09454197,
-0.016023466,
-0.009589097,
-0.03539048,
-0.095120296,
-0.00015096071,
-0.026121946,
0.087671585,
-0.0120407585,
-0.05861364,
-0.013744345,
0.018921549,
0.10381874,
-0.002846765,
0.0058152117,
0.017561922,
0.041036002,
0.11671107,
0.09343372,
0.028540362,
0.043367308,
0.04912676,
0.024090521,
-0.010904253,
-0.06667193,
-0.08496636,
0.064724796,
-0.052805334,
0.045874722,
-0.044994406,
0.01500786,
0.010131178,
0.009799493,
-0.051085465,
0.0036220888,
-0.0619582,
0.03689417,
-0.0015550242,
0.01169604,
-0.08581751,
0.018775744,
-0.0075216824,
-0.09165994,
-0.038218703,
0.020158518,
0.01817606,
-0.040904928,
1.0062375e-33,
-0.08228865,
0.010017119,
-0.007500525,
0.13929924,
-0.06341449,
-0.022938201,
-0.12403692,
0.047394782,
-0.041631985,
-0.01396022,
0.0074987584,
-0.0072390046,
0.05974383,
0.03858655,
-0.0055575324,
0.051137295,
-0.017884245,
0.009295199,
-0.04390098,
-0.024609054,
2.0489018e-05,
0.09353212,
0.0047838883,
-0.0018646725,
0.008024371,
0.011243519,
-0.09137211,
0.06821869,
0.007185605,
-0.030868849,
-0.051907785,
-0.027684681,
-0.033134032,
0.055578813,
0.023546621,
0.037239935,
0.0047324942,
-0.08015001,
0.024990648,
0.067437105,
0.033119615,
0.00025944243,
-0.045365833,
-0.06475522,
0.023568489,
-0.007590751,
-0.04813607,
0.021937499,
0.0790771,
-0.038581446,
0.10290983,
0.03353223,
-0.016589917,
-0.07674691,
-0.039072223,
0.008310251,
0.014517375,
-0.027821902,
-0.02197131,
0.1155822,
-0.11817934,
-0.021705015,
0.010249724,
0.027092604,
0.017945405,
0.022173801,
0.004724721,
0.030023148,
-0.024871614,
-0.016075572,
0.051689487,
0.022260286,
-0.09371388,
0.027562123,
-0.089939594,
0.019261675,
0.011252926,
-0.019322991,
-0.10721179,
-0.0078069493,
-0.061135665,
-0.07851136,
-0.012761501,
0.015778756,
-0.023733826,
0.06478411,
0.05301324,
-0.04084499,
-0.009405145,
-0.015252308,
-0.03358466,
0.0035134314,
-0.106065415,
-0.0038029929,
-0.057663117,
-1.46568055e-08,
-0.013713633,
0.03869807,
0.0555249,
0.014298617,
0.10692336,
-0.02456042,
-0.052134693,
0.14770155,
-0.04481164,
-0.065593,
0.09026861,
0.0032450645,
0.021568127,
0.015429909,
0.068662986,
0.07788491,
0.01886548,
0.032911487,
-0.030448647,
0.028750565,
0.07331889,
-0.004694389,
0.09965557,
-0.029518835,
0.015779093,
-0.062407773,
-0.009757171,
0.057655945,
0.0081095835,
0.047550257,
-0.03482923,
0.06721373,
-0.0011755727,
0.009683897,
0.06402854,
-0.0030552682,
0.020944055,
-0.052277595,
-0.066048786,
0.025421483,
-0.037246153,
0.10404702,
-0.045361478,
0.010466402,
0.042747788,
0.006050319,
0.030922255,
0.008923772,
-0.046133805,
-0.012284033,
0.07955781,
0.098930314,
0.0439621,
0.033146787,
0.054618992,
0.01350129,
0.032790348,
-0.055694897,
-0.011699575,
0.07338134,
-0.019679813,
-0.03570012,
-0.03824875,
-0.025066558
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 8,
"total_tokens": 8
}
}
},
"is_streaming": false
}
}