chore: remove /v1/inference/completion and implementations (#3622)

# What does this PR do?

the /inference/completion route is gone. this removes the
implementations.

## Test Plan

ci
This commit is contained in:
Matthew Farrellee 2025-10-01 11:36:53 -04:00 committed by GitHub
parent ea15f2a270
commit f7c5ef4ec0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
75 changed files with 16141 additions and 17056 deletions

View file

@ -0,0 +1,806 @@
{
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "nomic-embed-text:137m-v1.5-fp16",
"input": [
"What inspires neural networks?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "nomic-embed-text:137m-v1.5-fp16"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.0050316164,
0.07984447,
-0.15915774,
-0.015208397,
0.06857012,
-0.025208611,
0.013689548,
0.01110039,
-0.021925347,
-0.014392589,
-0.0557497,
0.048096333,
0.124248095,
0.05381016,
-0.032023083,
0.03293363,
-0.07727248,
-0.01613264,
-0.0012452743,
-0.015702942,
-0.067251004,
-0.028757395,
0.034863908,
-0.0017118178,
0.0616299,
0.021848574,
-0.022553956,
-0.033664376,
0.01553894,
0.009967761,
0.08114387,
-0.066336334,
-0.025725907,
0.0058821645,
-0.072110265,
-0.015364161,
0.031697143,
-0.015320406,
0.011826234,
0.05202543,
-0.008305483,
-0.013734584,
-0.06918373,
-0.016431326,
0.0070836195,
0.026307657,
0.021504063,
-0.053779546,
0.072037436,
-0.036065537,
0.016765,
-0.015237846,
-0.023797043,
-0.017345365,
0.081010945,
0.017555244,
0.00849005,
-0.011041562,
0.021113921,
0.0012852269,
0.05733302,
0.04459211,
-0.006820112,
0.049741834,
0.032682,
-0.018714704,
-0.047921024,
0.05474767,
0.010007742,
0.027578747,
0.01696662,
-0.0005828434,
0.02848909,
0.049656194,
0.029906206,
0.04397822,
-0.04246628,
0.01594018,
-0.029281856,
0.052589595,
0.086577676,
0.0042159576,
-0.029517883,
-0.009740598,
0.043349918,
0.044087544,
-0.02930377,
0.0024098633,
-0.030418152,
0.08221704,
0.046374217,
0.008004957,
0.017713528,
-0.034519937,
-0.034394786,
-0.019209871,
0.01361772,
-0.0012474392,
-0.06304891,
-0.03015956,
-0.026744615,
-0.04382269,
0.009914152,
-0.050125472,
0.030627307,
-0.010395332,
0.0067255315,
-0.025443034,
0.015175414,
0.011367137,
-0.004649633,
0.0003723871,
-0.010448302,
-0.0021068275,
-0.046118032,
-0.022402227,
0.01804005,
-0.025681397,
0.036584888,
0.080027714,
0.025778025,
-0.017021077,
0.00734547,
-0.007449189,
0.013060171,
0.07254409,
-0.015623211,
-0.019112717,
-0.010143475,
-0.048559416,
0.038491815,
-0.0065740654,
-0.0521703,
-0.059264045,
0.032110944,
0.061506197,
-0.048721578,
-0.03464822,
0.013747572,
0.007892225,
0.03265148,
-0.037367918,
0.024855481,
-0.01627199,
-0.01771346,
-0.035029493,
0.0013889165,
0.0036677802,
-0.029530859,
0.03162031,
-0.024760932,
0.028933072,
0.017674228,
-0.03722869,
0.063645,
-0.04195384,
-0.034291398,
-0.042508453,
-0.0026806353,
0.008954077,
0.06860229,
-0.0043270513,
0.031392172,
-0.0052816705,
-0.042464685,
-0.03767891,
0.037023526,
0.009309706,
0.03279453,
0.06322216,
-0.04550696,
0.022164896,
-0.03588774,
0.028416842,
0.050470043,
-0.0034147543,
0.0069440254,
-0.016464153,
0.03128234,
-0.046282057,
0.017499384,
-0.044354558,
0.041510575,
0.044442233,
-0.005217252,
0.011210587,
-0.01738494,
-0.0050604055,
-0.04739853,
-0.006758368,
0.010371208,
0.0031476691,
-0.047869083,
-0.031100815,
-0.049210694,
-0.026688233,
0.0077580754,
-0.022510948,
0.054258704,
0.011458622,
-0.02378493,
-0.012583161,
-0.056452923,
-0.007816392,
-0.038032427,
0.04502559,
-0.01308419,
0.043747045,
0.016204404,
-0.0041383137,
0.049442504,
0.0076792636,
-0.0021476683,
-0.021795,
-0.031687617,
0.025953416,
0.0012399888,
-0.01656653,
-0.005198368,
0.023106242,
0.026499178,
-0.007669003,
0.04550536,
-0.019885251,
-0.006509397,
-0.028927304,
-0.03770212,
-0.015793309,
0.009043467,
0.020382207,
-0.02132457,
-0.04350365,
0.030105298,
0.013326256,
0.05148862,
0.013384519,
0.08420081,
0.012137208,
0.01429465,
-0.021215776,
0.019751377,
0.010666951,
-0.0028496862,
-0.0044943816,
-0.046843883,
-0.0145780165,
0.0044858507,
-0.052179694,
-0.010133602,
0.038626175,
0.018442878,
-0.0016659115,
-0.003639202,
0.018665677,
0.053869862,
0.006519413,
-0.0063330783,
0.03512428,
-0.0033435219,
-0.050845515,
0.059054703,
-0.018078795,
0.012237686,
-0.032968126,
0.015100413,
-0.054588336,
0.015835619,
-0.03670951,
-0.012846813,
-0.01836416,
-0.024260957,
0.059409123,
0.015367348,
-0.028107207,
0.009289864,
0.037938606,
0.024906129,
0.02536807,
0.005617444,
-0.02020537,
-0.067401595,
-0.009159591,
-0.049427476,
-0.04140775,
-0.028121712,
-0.0012032806,
0.065760456,
-0.009735368,
0.024084985,
0.022508778,
0.017129708,
-0.054647677,
0.015578886,
0.017550059,
0.004188966,
-0.021639245,
0.08918487,
-0.010681521,
-0.0013267483,
-0.04089318,
0.004022531,
0.009869387,
0.03852075,
0.012265251,
-0.021414107,
-0.035589736,
-0.041858815,
0.0010829576,
-0.0052885553,
0.027289463,
-0.090056516,
0.013117442,
0.015796974,
-0.006428205,
-0.010485043,
0.03804702,
0.0019676236,
0.030326132,
0.06926383,
-0.04581391,
-0.026230657,
-0.05017411,
-0.069891036,
-0.020800032,
-0.0021375767,
0.03964166,
0.022971395,
0.009086531,
-0.0025304465,
-0.015464918,
0.042726092,
-0.006683121,
-0.008244169,
-0.016234832,
-0.0031603999,
-0.044795815,
-0.035910357,
0.053608935,
-0.006930592,
0.04424536,
-0.012017321,
0.0155857755,
-0.008697974,
-0.067098126,
-0.032931764,
0.026898768,
0.0010457109,
-0.041276965,
0.017719025,
-0.009889669,
-0.048280854,
0.009008355,
-0.008872175,
-0.01640687,
-0.0051646377,
-0.022281006,
0.041271873,
0.06915707,
0.029213337,
0.0133835655,
0.044670742,
0.0017441317,
0.013911358,
-0.03592245,
-0.060621563,
0.018041532,
0.017789826,
-0.00043342085,
0.019603321,
0.012585408,
0.034794804,
-0.0023819709,
-0.013787601,
0.05080919,
-0.044285674,
0.055536143,
-0.08918706,
-0.03900586,
-0.037006263,
0.003928892,
-0.015029967,
-0.02021197,
0.033677697,
-0.013563023,
0.037201263,
0.019805612,
-0.02354718,
-0.037705727,
0.025382977,
0.0061666463,
-0.020041076,
0.04034747,
-0.07936578,
-0.031228192,
0.035324488,
-0.054238997,
0.047006484,
0.00159503,
0.07012299,
0.007637998,
-0.018800775,
-0.053914547,
-0.050283875,
-0.034318645,
0.008452663,
0.01237047,
0.00035791937,
-0.046610557,
0.042989474,
-0.019692015,
-0.00061614456,
0.062187936,
0.04266471,
-0.050016437,
0.021421405,
-0.024854518,
0.068603024,
0.060942996,
-0.014557106,
0.03239151,
0.010247157,
0.015091995,
0.009245114,
0.02277781,
0.027239017,
0.043091062,
-0.00082639145,
0.00031364473,
-0.058441285,
-0.018276462,
0.030178891,
-0.023433916,
-0.013687651,
-0.012881733,
-0.030734714,
0.03498326,
-0.013399916,
0.04820285,
0.013932867,
0.05571984,
0.04240612,
-0.0060554333,
0.0032024565,
-0.042510703,
0.048483945,
0.08732585,
0.0027016816,
0.0011064744,
-0.09377502,
0.067491576,
0.018435383,
0.012728095,
0.029038312,
0.0040321746,
0.07395845,
0.0031073147,
0.028865123,
0.006154529,
0.03711985,
0.03329579,
-0.0040069376,
-0.011551551,
-0.053671077,
0.010432108,
-0.038892966,
-0.0003408905,
0.0007365908,
-0.047822062,
0.053264767,
0.02096518,
0.004777782,
0.0432757,
0.021553257,
-0.0026501648,
-0.0072480487,
-0.002123129,
0.061610248,
-0.01611616,
0.035909727,
0.058587678,
0.0145304715,
-0.020112783,
-0.05207282,
-0.08221201,
0.009016992,
-0.00064655097,
0.01956686,
0.018373564,
-0.013966411,
-0.022123411,
-0.0071573188,
0.033414096,
-0.04946249,
-0.0034403466,
-0.01580445,
-0.026580384,
-0.07122861,
0.04952695,
0.036092717,
-0.002789775,
0.026477033,
0.03799533,
-0.0452679,
-0.003930312,
0.018536521,
-0.01201987,
0.025422221,
-0.066111766,
-0.029471582,
0.009364392,
-0.04817774,
-0.0008147315,
-0.0148154665,
0.00984774,
-0.00092833134,
-0.03763107,
-0.020189954,
-0.024074532,
-0.023612108,
0.015350284,
0.030945191,
-0.03588645,
-0.021719966,
-0.020571873,
-0.012741516,
0.039295603,
-0.033746354,
0.0028816632,
0.048078135,
-0.0034790456,
0.04186476,
-0.016505575,
-0.056669652,
-0.0026806216,
0.04009492,
-0.016062018,
0.016597595,
-0.015369735,
0.01423482,
-0.01612097,
0.05822151,
-0.0043877237,
0.009242956,
-0.0037488444,
-0.0044891555,
-0.027579125,
-0.025424628,
0.028450571,
-0.01797597,
-0.06810425,
0.0168767,
0.0026893963,
-0.008469021,
0.012569571,
0.004442434,
-0.041943144,
-0.019236285,
-0.028779197,
0.0046836706,
-0.0365118,
0.018350676,
0.021902338,
0.03604989,
-0.006049927,
-0.037667684,
0.043027684,
-0.01943701,
0.010076409,
0.038713254,
0.07812194,
0.06597296,
-0.045489065,
0.0070664356,
0.0044989125,
-0.011527495,
-0.046050567,
0.067999,
-0.008593809,
-0.086977795,
-0.052920334,
-0.016987754,
-0.0752132,
0.029077167,
-0.024781171,
-0.00960023,
0.0056692883,
-0.039548755,
-0.013300934,
0.054275468,
-0.03491646,
-0.035587896,
-0.007802609,
-0.028378379,
-0.05615233,
-0.011850314,
-0.017397001,
-0.0525217,
-0.0003308184,
-0.040857855,
-0.021513592,
0.025556894,
0.01627368,
0.055545956,
-0.004418218,
-0.051336065,
0.0488211,
0.012719186,
0.007410796,
-0.0034307821,
0.0516907,
-0.01817577,
-0.004452086,
-0.0056198505,
-0.015632447,
0.075757094,
-0.018579062,
0.035753764,
-0.015519769,
-0.054327093,
0.01306886,
-0.019790396,
-0.036639318,
0.07008371,
0.0061804685,
0.046798132,
-0.005218823,
-0.064510226,
-0.0127003165,
0.0017728137,
0.040912032,
-0.058067385,
0.059538517,
-0.10029672,
0.002820211,
-0.07771457,
0.008914206,
0.00806939,
0.03881859,
0.017941529,
0.007458678,
0.0011317434,
-0.050489407,
-0.039054077,
0.028261676,
0.04449006,
0.010117796,
0.057966575,
0.08405063,
0.037630063,
0.0017458433,
0.07786049,
0.012527607,
0.05369065,
-0.004282323,
-0.044055793,
0.003343061,
0.02884031,
-0.057139236,
-0.030217687,
-0.0159622,
-0.04396499,
-0.00034443758,
-0.019190768,
0.0051302793,
0.005976632,
-0.05645029,
-0.0011924162,
-0.020180402,
-0.037948944,
-0.008716054,
0.035000052,
-0.041332114,
0.0021782147,
-0.0439729,
-0.032859106,
0.027919779,
0.008747301,
0.05736891,
0.013317791,
0.0012040264,
-0.0033161226,
0.018489197,
-0.0026256584,
-0.05727805,
0.023803348,
-0.012519388,
0.02669887,
0.0062565706,
-0.017575208,
-0.04754666,
-0.02628541,
-0.07511388,
0.008495705,
-0.04325911,
-0.05147621,
0.05350302,
-0.047565665,
0.029716888,
-0.017600134,
0.06251193,
-0.06014906,
0.06652642,
-0.016948748,
0.047118686,
-0.022581328,
0.008118961,
0.023824824,
-0.028134644,
-0.013040867,
-0.036118224,
-0.043649647,
0.024044087,
0.043980736,
0.09335813,
0.0065352735,
0.048652958,
0.02291362,
-0.031512454,
-0.026838718,
0.072112754,
0.029041806,
0.009871398,
-0.076643795,
0.017986268,
-0.036420677,
-0.030303614,
0.02293626,
-0.028474882,
-0.02937154,
0.01083049,
0.0067934864,
-0.031213833,
-0.04556768,
-0.0046230564,
-0.0074542915,
-0.021028588,
-0.058362946,
0.0034970073,
0.04495744,
-0.008255564,
-0.011092999,
0.026076281,
0.016826289,
-0.026028905,
-0.0025076317,
0.017507493,
0.015523931,
0.04691712,
0.011547796,
-0.038370498,
0.029770205,
-0.017786123,
-0.006200203,
0.013117157,
0.027439341,
0.017241932,
-0.063327014,
0.075111434,
0.10742071,
-0.00892997,
0.042728376,
-0.0031351764,
0.06845063,
-0.009078234,
-0.030184548,
0.04281056,
-0.037315223,
0.012807935
],
"index": 0,
"object": "embedding"
}
],
"model": "nomic-embed-text:137m-v1.5-fp16",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
}
}