Talk-Bot开放接口

对外接口


Embeddings

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>向量模型接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>https://api.hellogptworld.com/v1/embeddings</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>请求头信息</h5> <ul> <li>Content-Type: application/json</li> <li>Authorization: Bearer 密钥信息 (你的密钥,在 [api对接](<a href="https://vip.hellogptworld.com/api">https://vip.hellogptworld.com/api</a> &quot;api对接&quot;) 中查看)</li> </ul> <h5>请求参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">model</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>支持的模型:text-embedding-ada-002、text-embedding-3-small、text-embedding-3-large</td> </tr> <tr> <td style="text-align: left;">input</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string或array</td> <td>要嵌入的输入文本,编码为字符串或标记数组。要在单个请求中嵌入多个输入,请传递字符串数组。输入不得超过模型的最大输入标记(为 8192 tokens),不能为空字符串,并且任何数组的维度都必须为 2048 或更少</td> </tr> <tr> <td style="text-align: left;">encoding_format</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>返回嵌入的格式。可以是float或base64,默认为float</td> </tr> <tr> <td style="text-align: left;">dimensions</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>生成的输出嵌入应具有的维数。仅在text-embedding-3及更高版本的模型中受支持</td> </tr> <tr> <td style="text-align: left;">user</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>当前请求用户标识,业务方自行生成,最大64个字符,可以帮助OpenAI监控和检测滥用行为</td> </tr> </tbody> </table> <h5>请求示例</h5> <pre><code>{     &amp;quot;model&amp;quot;:&amp;quot;text-embedding-ada-002&amp;quot;,     &amp;quot;user&amp;quot;:&amp;quot;d7e68cb9-f494-4d78-89ce-735eeab4b107&amp;quot;,     &amp;quot;input&amp;quot;: &amp;quot;你是谁&amp;quot;,     &amp;quot;encoding_format&amp;quot;:&amp;quot;float&amp;quot; }</code></pre> <h5>返回示例</h5> <pre><code>{ &amp;quot;data&amp;quot;: [{ &amp;quot;embedding&amp;quot;: [0.0038637246, -0.016456354, 0.028257292, -0.022343291, -0.031748854, 0.0034560375, -0.02651151, -0.008532674, -0.0062117325, -0.012349032, 0.006316615, 0.007856014, 0.0012416699, -0.0023260163, -0.007294387, -0.012619696, 0.035727613, -0.0035186284, 0.028663289, -0.018959993, -0.008167278, 0.014927104, -0.009337898, 0.0073079206, -0.0032192066, 0.012044536, 0.032939773, -0.012734728, -0.008613873, -0.028582089, 0.01817507, -0.020205047, -0.003525395, -0.022559822, -0.017606676, -7.392503E-4, -0.0058801696, -0.0041479217, 0.030422602, 0.00800488, 0.0075244512, 0.006401197, -0.011225778, 0.0061880494, -0.012031002, 0.00490578, -0.034672022, -0.011665606, -0.023764275, 0.03126166, 1.2222158E-4, 0.01261293, 0.0017440893, -0.009987491, -0.014859438, -0.010420553, -0.0118618375, 0.010535586, -0.030747399, -0.020651642, -0.003126166, 0.013709118, -0.034428425, -0.0066008116, 0.007781582, 0.004804281, 0.012897126, 2.3788803E-4, 0.009276999, -2.2097156E-4, 0.00798458, 0.02323648, 8.5597404E-4, 0.01072505, 0.041249152, -0.026322046, -0.026064916, 0.019812584, -0.011834771, -0.0013829224, 0.025821319, -0.03199245, -0.020245647, 0.0041140886, 0.007598884, 0.008525907, -0.017593142, 0.032669112, -0.043468595, -0.017647274, 0.014548175, 0.0072740875, 0.027431767, 0.032127783, 0.0059478353, 0.033481102, -0.020029115, 0.010136357, -0.016984148, -0.011787405, 0.010034857, -0.009926592, -0.026822776, -0.0071725887, 0.0029316265, 0.019162992, -0.0028199777, -0.00705079, 0.049206663, 0.009222866, -0.019162992, 0.010481453, 0.013309889, -0.044713646, -0.021639565, -0.014764706, -0.0029502346, -9.66777E-4, -0.0066008116, -0.015766162, -0.0025932968, -0.0045234673, -0.01779614, -0.025334124, 0.026470913, 0.013370788, -0.004743382, -0.005568906, 0.0020807274, 0.0013431687, 0.019609587, 0.0011968411, -0.0039313906, 0.010041624, -0.0125993965, 0.021098237, -0.01588796, -0.005217043, -0.014859438, -0.00949353, -0.0093784975, 0.013634685, 0.008194344, -0.015915027, 0.005951219, 0.020786975, -0.0041919043, -0.0029992925, -0.010352887, 0.01006869, 0.0065771285, -0.008701839, 0.015319566, 0.010001024, 0.013519653, 0.020191513, -0.013472287, 0.011557341, 0.005568906, -0.0024410484, -0.018283334, -0.0032344314, 0.025577722, -0.02077344, 0.0066380277, 0.037053864, 0.0011232544, 0.0058801696, 0.010494986, 0.010867149, -0.0012154493, -0.0150759695, -0.036377203, 0.013418154, -0.0057143876, 0.0010809633, 0.0077545154, -0.020408046, -0.013546719, -0.008052246, -0.029123416, 0.0051899767, 0.017200679, 9.397106E-4, -0.0011951495, 0.026457379, 0.0073079206, -0.006343681, 0.010434086, -0.018581064, 0.007084623, 0.020069715, 0.014575241, -0.023398878, -0.57467324, -0.0035220117, -0.013614385, -0.0028267442, 0.010420553, 0.023723675, 0.0027184787, -0.0016045284, -9.896142E-5, -0.06382251, 0.011584408, 0.038596645, -0.0010513593, -0.005650105, -0.026322046, -0.035917077, -0.01378355, 0.008627406, -0.0028064444, -0.006864709, 0.019162992, 0.032669112, 0.011611474, -0.010867149, 0.019758452, 0.026443845, 0.019826118, -0.020083249, -0.012031002, -0.015549631, -0.032560844, 0.02939408, 0.01350612, 0.0014277512, 0.049720924, -0.004882097, 0.016537553, 0.026267914, -0.013100124, 0.010197256, -0.018364534, -0.024440935, 0.026782176, -0.008999568, 0.029015152, 0.008972502, -0.010251389, -2.4613482E-4, 0.0153331, 0.01868933, -0.010440853, 0.0041479217, -0.002087494, 0.003434046, 3.5799507E-4, 0.0059376853, 0.004655416, -0.030747399, -7.1599014E-4, 0.00822141, 0.010731816, 0.03028727, -0.018594598, 0.013059525, 0.015251901, 0.0048719468, -0.044957243, -0.011293444, 0.0053591416, -0.012903893, -0.0023378578, 0.009818327, -0.012707662, 0.012146034, 0.02200496, 0.032181915, -0.006610961, -0.014385777, 0.013336955, -0.008532674, 0.0020908772, -1.7246883E-5, 0.009101068, -0.026646843, -0.0056162723, -0.028988084, 0.009540896, -0.008586806, 0.014412844, 1.6218677E-4, 0.007341753, 0.012673829, -0.00396184, -0.021328302, -0.009249933, 0.024237936, -0.037351593, -0.008052246, -0.0036201272, -0.016375154, 0.0035220117, -0.020827573, 0.023507144, 0.02264102, -0.0025713053, 0.015779695, -0.01656462, 0.014412844, 0.025469456, -0.027702432, 0.008823637, -0.006621111, 0.013323422, -0.012727962, 0.0026034466, -0.015536098, 0.017390145, 0.018824661, 0.03312924, -0.027093438, 0.0022397423, 0.01348582, 0.012125735, 0.0121934, 0.043062598, 0.024928128, -0.029231682, -0.003535545, -0.016510487, -0.0011866912, 0.0055858227, -0.020502778, 0.008796571, -0.026958106, 0.033968296, -0.007612417, 0.004794131, 0.004804281, 5.895394E-4, 0.023222947, -0.012389632, 0.0025222476, -0.00580912, 0.0046249665, -0.008417642, -0.015657896, -0.004303553, -0.008769505, -0.012017469, 4.8254267E-4, -0.010880682, 0.0073891194, -0.0076056505, 0.027743032, 0.015522565, -0.008309376, -0.0010902673, -0.0069425246, 0.0075921174, -0.016970616, 0.0107927155, 0.012200167, -0.014345177, -0.01626689, -0.0115099745, -0.0033934463, 0.006343681, -0.0035050951, -0.03210072, -0.01199717, 0.019406589, -0.0032784143, -0.034644958, -0.0136549845, 0.00732822, -0.021571899, -0.0012112202, 0.0053117755, 5.616272E-4, -0.011266378, 0.017146546, -0.013073058, -0.020110315, -0.014263978, 0.023087615, 0.0037283928, -0.013885049, 0.028744487, -0.017363077, 0.03713506, -0.012261067, 0.025036395, -0.0073958864, -0.0011689289, 0.008573273, -0.00705079, 0.005731304, 0.009148434, 0.018811129, 0.032317247, 0.0053253085, 0.016713485, -0.0020993354, -0.0033139389, 0.0027167872, -0.029367013, 0.0039855232, -0.008106379, 0.020841107, 0.009872459, -0.008776271, -0.01996145, -0.023466544, -0.022911685, -0.006698927, 0.03036847, -0.0045708334, 0.011929504, 0.011178412, -0.01036642, -0.002601755, 0.018202135, 0.005988435, -0.02025918, -0.017376611, 0.020326845, 0.0044794846, 0.027540034, 0.008512374, 0.016104491, -0.035240415, -0.026497979, -0.0045200842, 0.0011164879, -0.021423034, -0.013742951, 0.021869628, -0.025049927, 0.029881274, -0.00951383, 0.010657384, 0.016578153, 0.013925648, -0.024075538, 0.021477167, 0.007531218, 0.005338842, -0.0063267644, -0.01983965, 0.047772147, -0.017092414, 0.015617297, -0.020800507, -0.035998274, 0.020232113, -0.005680555, -0.0046621826, 0.03410363, -0.0012687362, 0.023818407, 0.0013956098, 0.02782423, -0.0077071493, -0.0018523548, 0.014250445, -0.0054098913, -0.0031989068, -0.021071171, 7.6843123E-4, -0.020191513, 0.005156144, -0.007693616, 0.018310402, 0.017254813, 0.01630749, -3.867531E-4, 0.0016172157, 0.0040193563, -0.01199717, 0.011016013, 0.00794398, -0.024779264, 0.0043407693, 0.0275265, 0.0038298916, -0.03245258, -0.027364103, 0.004635116, -0.0245086, 0.012991859, 0.0017779223, -0.0028538106, -0.0152925, -0.0016375155, 0.011232545, 0.022370357, 0.020123847, -0.0055316896, -0.046906024, -0.0016781151, 0.0042494205, -0.021598965, 0.013939181, -0.017133014, -0.021382434, 0.0062117325, 0.0035862944, 0.005568906, -0.008140211, -0.036566667, -0.016889416, -0.0016019909, -0.039219175, -0.013952714, -0.0014894963, 0.0056907046, -0.0047602984, -0.018797595, 0.031099262, -0.02025918, -0.0042731036, -0.016659353, -0.048205208, 0.0062624817, 0.05646045, 0.020353911, 6.5255334E-4, -0.010237855, 0.0027150954, -0.016767617, -0.045254976, -0.016781151, -0.005609506, -0.0046757157, -0.0051764436, -0.006976357, -0.007219955, 0.00614745, 0.002366616, 0.012078368, -0.016402222, 0.0027624615, -0.023859007, -9.1264426E-4, -0.029610611, 0.013262522, 0.020205047, 0.001183308, -0.047420286, -0.012003936, 0.005934302, 0.017281879, 0.011888904, -0.018675797, -0.0123152, -0.017769074, 0.007165822, -0.024670998, -0.015549631, 0.019365989, -0.040085297, -0.0066786273, 0.023886073, 0.0062252656, 0.042927265, 0.0090401685, -0.0016045284, -0.004540384, 0.010569419, -0.015955627, 0.015481965, 0.018337468, -0.006631261, -0.015820295, 0.011354343, 0.008397342, -0.045931634, -0.024792796, 0.009134901, -0.009358198, -0.017173612, -0.014074514, 0.010014557, 0.02081404, -0.005886936, -0.013966248, -0.01630749, -0.029637678, -0.0055046235, -0.035456948, -0.013533186, 0.0031870652, -0.00981156, -0.013343722, 0.024116138, -0.0065568285, -0.02417027, -0.024319135, -0.0048482637, 0.009412331, 0.028311426, 0.006411347, 0.02230269, 0.027174637, 6.7116146E-4, -0.04354979, 0.023899607, -0.002178843, -0.024305603, 0.0033020973, -0.0152925, -0.013715884, -0.0025171726, 0.009520597, 0.010231089, 0.017011214, 0.036945596, 0.0053557586, -0.026633311, -0.0055316896, 0.002554389, 0.014277511, -0.009777727, -0.009885993, 0.0045234673, -0.03843425, 0.013749717, -0.015360166, 0.0050174287, 0.035727613, 0.0052136597, 0.0125993965, -0.020326845, -0.007301154, 0.015251901, -0.036620803, 0.011212245, -0.015211301, 0.025821319, 0.029015152, -0.0031583074, 0.044578314, -0.012396398, -0.007950746, -0.010474686, -0.030557934, 0.02055691, 0.040112365, -0.0058564865, 0.005771904, -0.0153331, -0.005132461, 0.0040802555, -0.013120424, 0.01563083, 0.011807705, -4.3221613E-4, -0.002006295, -0.01626689, -0.012978326, 0.014480509, 0.023453012, 0.013073058, -0.015184235, -0.034076564, -0.02051631, -0.0069425246, -0.019041194, 0.007680083, -0.035700545, 0.0093852645, 0.029935408, -0.002682954, 0.033535235, -0.010508519, 0.010934814, -0.020029115, -0.01813447, 0.004767065, -0.0336435, -0.009858926, -0.009987491, 0.006587278, 0.015657896, 0.034672022, 0.020015582, 0.012518197, 0.022505688, -0.002635588, 0.0017948388, -0.02863622, 0.002408907, -0.025239391, 0.032344315, 0.016578153, 0.009222866, 0.0041039386, 0.008850704, 0.0013067983, -0.016875884, 0.013512886, 0.003400213, 0.00397199, -0.035456948, 0.008600339, -0.008864237, -0.008925136, 0.0021280935, 0.015563164, -0.016212758, 0.0020908772, -0.015996225, 0.010055157, -0.012078368, 0.023507144, -0.041979942, 0.016754085, 0.0037622256, 0.026064916, -0.0036979432, 7.1049226E-4, 0.005650105, 0.008424409, 0.021653097, 0.0039990563, 0.04354979, -0.0035287782, -0.005237343, 0.011970103, 0.032587912, -0.00580912, -0.022329757, 0.013005392, -0.0058801696, -0.01282946, -0.00643503, -0.021477167, -0.04493018, 0.009067235, 0.008647706, -0.033372838, 0.02569952, 0.0041817543, -0.014900038, -0.0013786934, 0.011381409, 0.03118046, -2.5565035E-4, 0.032290183, 0.040383026, -0.009141667, 0.009486764, -0.05470114, 0.013912115, 0.01195657, 0.012491131, 0.036052406, 0.0039077075, -0.0029976007, 0.025685987, -0.0040667225, -0.021490699, 0.025049927, 0.013621151, 0.0039686067, 0.010393487, 0.007247021, 0.009080768, 0.008796571, 0.023899607, 0.0033596135, -0.016699951, -0.035105083, -0.013215156, -0.011239311, -0.02115237, -0.023331212, 0.015238368, -0.006546679, -0.022451555, -0.010697983, -0.022167359, 0.0022329758, 0.004144538, -0.0059715183, 0.033318706, 0.005217043, 0.0030990995, -9.498605E-4, 0.022749286, -0.015062436, 0.006769976, -0.013113657, 0.04192581, 0.0019098709, 0.0075921174, -0.00199107, -0.0048719468, 0.020827573, 0.027661832, -0.0062489486, 0.0033122473, 0.01885173, -0.009906292, 0.020678708, -0.029962474, -0.020408046, 0.0018286718, -0.013925648, -0.024616865, -0.005782054, 0.013580552, 0.018702863, 0.009168734, -0.012369332, 4.8930926E-4, 0.017038282, 0.017836738, -0.016930016, -0.012606163, 0.0035423115, 0.012734728, -0.018107403, 0.0147105735, -0.0020502778, 0.0017043357, -0.022654554, 0.02021858, 0.03643134, -0.029664744, 0.03469909, -0.01749841, -0.0214501, -0.008431175, -0.0048008976, 0.0019267873, -0.010312288, -0.02887982, 0.028933952, 0.01716008, 4.4955552E-4, -8.6062605E-4, -0.014791773, 0.0013304814, -0.0054031247, 0.017024748, -0.0034594208, -0.021585431, 0.013979781, 0.0050817113, 0.022153826, 0.015495498, -0.0033697633, -0.028040761, -0.0049700625, 0.010434086, -0.012673829, -0.033372838, -0.0044794846, -0.016131558, 0.0019031042, 0.008525907, 0.0053016255, -0.017024748, 0.009134901, 0.025185259, -0.0070034238, 0.0183916, -0.004476101, -0.008999568, 0.0010911131, 0.0015588539, -0.04506551, -0.029556477, -0.020205047, 0.01996145, 0.015360166, -0.016348088, -0.01906826, 0.0030855665, -0.017620208, -0.030476736, -0.013952714, 0.007815415, -0.021720763, 0.018472798, 0.0030382003, 0.01920359, 9.2786906E-4, 0.0090604685, -0.007957513, -0.016293956, 0.014791773, -0.01499477, -0.017349545, -0.0021433183, -0.02425147, 0.007916914, 0.017999137, -0.0057786703, -0.007801882, 0.0052102767, -0.0063470644, -0.016767617, -0.019907316, -0.003914474, -0.010711517, 0.012639996, 0.009324365, -0.02544239, 0.0033139389, 0.0033274721, -0.005589206, -0.007849248, -0.0037216262, 0.012017469, -0.01596916, 0.020380978, 0.016456354, -0.003298714, 0.009554429, -0.0031633822, 0.0071725887, -0.016104491, -9.7354356E-4, 0.048015743, -0.021463633, 0.013715884, -0.030747399, -0.00614745, -0.022492155, 0.012842993, 0.013634685, -5.5824392E-5, 0.018283334, -0.010278455, 0.007463552, -0.034428425, -7.988809E-4, 0.013133957, 6.7031564E-4, -0.021098237, 0.03036847, 0.0071049226, -0.0044084354, -0.0025408557, -0.024995795, -0.018959993, -0.0039787567, 1.3374594E-5, 0.004746765, 0.0071252226, -0.024616865, 0.029583545, -0.011550575, -0.027621232, -0.0041513047, -0.010373187, 0.014291044, 0.011922737, 0.34644955, 0.009182267, -0.00395169, 0.01797207, 0.017850272, 0.018675797, 0.024346203, 0.012700895, -0.007098156, 0.008505607, 0.0010352888, -0.0023632327, -0.0122272335, 0.012497897, -0.010224322, -0.06019561, -0.053807948, -0.0016620444, -0.0034712623, -0.03478029, 0.013404621, -0.012098668, 0.012037769, -0.014805306, 0.022194425, 0.0029214765, -0.0100957565, -0.018784063, 0.0017102564, -0.017701408, -0.008289076, 0.01465644, 0.011570874, 0.006059484, 0.006093317, 0.004026123, -0.012301666, -0.01648342, 0.01805327, 0.011374643, -0.0032598062, -0.011334043, 0.008810104, -0.032587912, -0.0029062517, 0.014385777, -0.006458713, -0.040328894, 5.9376855E-4, 0.054863535, -0.008600339, -0.006621111, 0.027201705, 0.045769237, 0.006012118, 0.021571899, 0.02123357, -0.0090604685, -0.013343722, -0.008038713, 0.015779695, 0.026606243, -0.006610961, 0.0016129867, -0.030936863, 0.016131558, -0.030693267, 0.0111581115, -0.0041005556, -0.023940206, -0.026281448, -0.017390145, -2.5987945E-4, 0.010427319, -0.028555023, -0.029367013, 0.026362646, 0.0064553297, 0.029123416, 0.040031165, -0.013303122, 0.025537122, -0.0029705344, -0.019555453, -0.008992802, -0.009080768, 0.008958969, -0.009682994, -0.011604707, 0.011597941, -0.009628862, -0.024048472, 0.010190489, -0.010745349, 0.010163423, 0.016090957, 0.019582521, 0.020678708, -0.013100124, 0.024562733, -0.019582521, 0.0044219685, 0.02399434, 0.01100248, -0.016970616, 0.016023293, -8.331368E-4, -0.02544239, 0.021098237, -0.025198793, -0.033372838, -0.03724333, 0.004083639, 0.004377986, 0.0065906616, -0.010860382, 0.01439931, -0.0048448807, 0.00828231, -0.025916051, 0.031234594, -0.027580634, -0.01284976, 0.03819065, 0.0071522887, -9.337898E-4, -0.006854559, 0.0055858227, -0.007598884, -0.019893784, 0.0012619696, -0.021774895, 0.04284607, 0.0030568084, -0.004709549, 0.022113226, 0.00199107, 0.007199655, -0.007131989, 8.407492E-4, -0.013512886, -0.017593142, -0.011151345, -0.0024968728, 0.030557934, -0.0065568285, 0.028149027, -0.013790317, 0.017687874, -0.02828436, -0.05310422, -0.005524923, -0.011963337, -0.0010344429, 0.03261498, -0.0071387556, -0.022992883, -0.011198712, 0.010643851, 0.008958969, -0.020949371, 0.012761794, 0.03930037, -0.0035626113, -0.019352457, 0.015360166, -0.1734413, 0.028690355, 0.02637618, -0.03491562, 0.012132501, 0.017660808, 0.01282946, 0.0012932651, -0.0214501, 0.034753222, 0.012497897, -0.0129377255, -0.019501321, 0.0038298916, -0.0031413909, -0.011205478, 0.0039449236, 0.0026541962, 0.013600852, 0.023222947, 0.018756995, 0.008268776, 0.014548175, 0.01801267, -0.006912075, 0.0055046235, 0.0021906844, 0.007084623, -0.007659783, -0.004953146, -0.052102767, -0.004164838, -0.0017161772, -0.0018557381, 0.0061102337, -0.0054132743, -0.012376099, -0.009182267, -0.025916051, -5.079174E-4, 0.02029978, 0.055973258, -0.008383809, 0.0122949, -0.0025154809, 0.014791773, 0.011760339, 0.034590825, 0.015184235, -0.0073620533, -0.017322479, -0.01626689, 0.041871678, 0.010562652, 0.017092414, 0.03643134, 0.013309889, 0.030882731, -0.0026677293, 0.0053557586, -0.015698496, 0.0028098277, 0.018526932, -0.011902438, -0.023182347, -0.008661239, 0.0019132541, 3.8315833E-4, -0.021585431, 0.016875884, -0.017295413, -0.021869628, 0.010589718, -0.02029978, -0.0057685208, 0.023561276, -0.029502345, -0.0059038526, 0.0037385426, -0.0022769587, -0.027661832, 0.02051631, -0.017728474, 0.0125790965, 0.007598884, 0.0072267214, 0.016740551, -0.007402653, 0.010183723, -0.016754085, 0.002880877, -0.016145092, -0.018878795, -0.01410158, -0.0019132541, -0.010670917, -0.017363077, 0.015522565, -0.013560252, -0.020800507, -0.0021551598, -0.01136111, -0.018716397, 0.023886073, 0.0243868, -6.20412E-4, -0.0072605545, -4.1001325E-4, 0.039192107, -0.0025323974, -0.041384485, 0.013729418, 0.014236912, 0.040789023, 0.002885952, 0.017904405, -0.039571036, 0.005054645, 0.034753222, -0.00550124, 0.006015501, 0.017728474, -0.0032885643, -0.005815887, -0.01656462, -0.012863293, -0.040707823, -0.012707662, 0.027025772, 0.025415324, 0.02335828, 0.027485901, 0.01711948, -0.011198712, 0.0050275787, -0.004902397, -0.005974902, -0.026619777, -0.027512968, -0.013885049, 0.0046993988, -0.019514855, 0.0062692487, -0.036972664, -0.026836308, 0.033562303, 0.0075176847, -0.017511943, 0.017092414, 0.0048076645, 0.001899721, 0.012078368, -0.045417372, 0.022559822, 0.016375154, 0.0073349867, 7.4770855E-4, -0.0306662, -0.011753572, -0.020746375, -0.0022228258, -0.016131558, -0.040978488, -0.0046418826, 0.02863622, -0.02025918, 0.013553486, 6.8892376E-4, 0.013837683, -0.013715884, -0.024819864, -0.006695544, -0.010833316, -0.006550062, 0.003741926, -0.013790317, -0.027661832, 0.013113657, -0.022451555, 0.003603211, 0.048313472, -0.03410363, -0.009371731, 0.013688818, -0.013357255, -0.020042649, 0.013952714, -0.0027066371, -0.018120937, -0.013262522, 0.026795708, -0.0115302745, 2.3352675E-5, -0.0037283928, 0.021626031, -5.7981245E-4, -0.0057482207, 0.002726937, -0.016659353, -5.2018184E-4, -0.009026635, -0.019731386, -0.014466976, 0.008769505, -0.006709077, -0.056298055, 0.014426377, -0.018499866, 0.00705079, -0.0244274, 0.02718817, 0.0019775368, 0.0066887774, -0.0040464224, 0.013424921, -0.01414218, -0.004537001, 0.029664744, 0.03134286, -0.030855665, -0.0075921174, 0.016591687, -0.018824661, 0.011597941, 0.0068071927, 0.0011900746, 0.0079913465, -0.012700895, -0.07643543, 0.017308945, -0.017295413, 3.2273478E-5, 0.039571036, -0.0056433384, -0.0016721943, -0.028744487, 0.002385224, -0.0027404702, -0.008586806, 0.012971559, 0.0243868, 0.009263466, -0.012565563, -0.013742951, 0.04111382, 0.0031329326, 0.021328302, 0.011564108, -0.012802394, 0.013431687, -0.011577641, -0.004537001, -0.0015859202, 0.017593142, -0.0213689, 0.021355368, -0.0275671, -0.005000512, -5.2779424E-4, -0.031369925, 0.007815415, 0.01596916, -0.0020079864, -0.019636653, 0.007835715, 0.027512968, 0.009838627, 0.02077344, -0.0101228235, -0.028040761, 0.028094895, 0.0052339598, -0.0122746, 0.020042649, -0.015698496, 0.012450531, 0.044632446, -0.027458835, 0.0012966484, 0.031451125, -0.0042155874, -0.020367445, -0.0012365949, -0.04200701, 0.009838627, -0.005609506, -0.008363509, -0.031748854, 0.008904836, 0.034482557, 0.0025222476, -0.0034272794, -0.0023480079, 0.0051730606, -0.0017931472, -0.0076056505, 0.039192107, -0.02739117, -0.017092414, -0.014196312, 0.0051865936, 0.02526646, -0.008458241, 0.022207959, 0.032317247, -0.009087535, -0.03161352, 0.019095326, -0.0039787567, 0.002995909, -0.029745944, -0.0025290141, 0.009845393, 0.008255243, 0.0024173653, -8.508991E-4, -0.008038713, 0.023074083, -0.014751173, 0.0044930177, -0.009879226, -0.011191945, 0.0045573004, 0.01626689, -0.0021264018, 0.0071252226, 0.032263115, 0.03551108, 0.0022042177, -0.0070778565, -0.015062436, -0.0041716048, -0.022235025, 0.012856526, -0.007429719, -0.014250445, 0.016469887, 0.018824661, 0.020611042, 0.01102278, -0.014845905, 0.008620639, -0.006306465, -0.017593142, 0.00800488, -0.02879862, -0.029258749, 0.024819864, 0.013770017, 0.013729418, 0.011760339, 8.7721213E-7, 0.018784063, 0.017065348, 0.012930959, -0.029637678, -3.766032E-4, 0.0028825686, -0.002823361, 0.023886073, -0.011496441, -0.013330189, -0.0051426105, 0.0070913895, -0.011306977, 0.019041194, -0.020123847, 0.04111382, 0.015779695, -0.025875451, 0.024183804, 0.0028588856, -0.0055925893, 0.00855974, -0.0076056505, -0.04498431, 0.015955627, 0.028311426, -0.007301154, -0.014033914, -0.023466544, -0.023182347, -0.0031177078, -0.0077139162, -0.0070575564, -0.019176524, -0.010312288, 0.035023887, 0.012017469, -0.001813447, 0.016496954, -0.027052838, -0.00824171, 0.030990995, -0.004851647, -0.0055959723, -0.02242449, -6.745447E-4, -0.0066008116, -0.012815927, -0.025997251, 0.0115302745, -0.02387254, -0.015184235, -0.014602308, 0.025279991, -0.0026508127, 0.0036438103, 0.012423465, -0.019420123, -0.0101228235, 0.04022063, -0.02073284, 0.008458241, 0.005474174, -0.010772416], &amp;quot;index&amp;quot;: 0, &amp;quot;object&amp;quot;: &amp;quot;embedding&amp;quot; }], &amp;quot;model&amp;quot;: &amp;quot;text-embedding-ada-002&amp;quot;, &amp;quot;object&amp;quot;: &amp;quot;list&amp;quot;, &amp;quot;usage&amp;quot;: { &amp;quot;prompt_tokens&amp;quot;: 4, &amp;quot;total_tokens&amp;quot;: 4 } }</code></pre> <h5>异常返回示例</h5> <pre><code> // 密钥没传 { &amp;quot;error&amp;quot;: { &amp;quot;message&amp;quot;: &amp;quot;You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://vip.gptchatclub.com/api.&amp;quot;, &amp;quot;type&amp;quot;: &amp;quot;talk_api_error&amp;quot;, &amp;quot;param&amp;quot;: null, &amp;quot;code&amp;quot;: &amp;quot;invalid_api_key&amp;quot; } } // 密钥传的不对 { &amp;quot;error&amp;quot;: { &amp;quot;message&amp;quot;: &amp;quot;Incorrect API key provided: sk-1afsp*****************************************k5R2. You can find your API key at https://vip.gptchatclub.com/api.&amp;quot;, &amp;quot;type&amp;quot;: &amp;quot;invalid_request_error&amp;quot;, &amp;quot;param&amp;quot;: null, &amp;quot;code&amp;quot;: &amp;quot;invalid_api_key&amp;quot; } } // 模型不对 { &amp;quot;error&amp;quot;: { &amp;quot;message&amp;quot;: &amp;quot;Unsupported model.&amp;quot;, &amp;quot;type&amp;quot;: &amp;quot;talk_api_error&amp;quot;, &amp;quot;param&amp;quot;: null, &amp;quot;code&amp;quot;: &amp;quot;invalid_model&amp;quot; } } // 余额不足 { &amp;quot;error&amp;quot;: { &amp;quot;message&amp;quot;: &amp;quot;User quota is not enough.&amp;quot;, &amp;quot;type&amp;quot;: &amp;quot;talk_api_error&amp;quot;, &amp;quot;param&amp;quot;: null, &amp;quot;code&amp;quot;: &amp;quot;insufficient_user_quota&amp;quot; } } // 对话信息没传或者传null { &amp;quot;error&amp;quot;: { &amp;quot;message&amp;quot;: &amp;quot;Unsupported messages.&amp;quot;, &amp;quot;type&amp;quot;: &amp;quot;talk_api_error&amp;quot;, &amp;quot;param&amp;quot;: null, &amp;quot;code&amp;quot;: &amp;quot;invalid_messages&amp;quot; } } // 服务内部错误 { &amp;quot;error&amp;quot;: { &amp;quot;message&amp;quot;: &amp;quot;Internal server error.&amp;quot;, &amp;quot;type&amp;quot;: &amp;quot;talk_api_error&amp;quot;, &amp;quot;param&amp;quot;: null, &amp;quot;code&amp;quot;: &amp;quot;internal_error&amp;quot; } }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">string</td> <td>回复内容</td> </tr> <tr> <td style="text-align: left;">object</td> <td style="text-align: left;">string</td> <td>类名</td> </tr> <tr> <td style="text-align: left;">model</td> <td style="text-align: left;">string</td> <td>模型</td> </tr> <tr> <td style="text-align: left;">usage</td> <td style="text-align: left;">object</td> <td>官方本次对话统计的token信息</td> </tr> </tbody> </table> <p>usage字段说明</p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">prompt_tokens</td> <td style="text-align: left;">int</td> <td>用户输入问题的token数量</td> </tr> <tr> <td style="text-align: left;">total_tokens</td> <td style="text-align: left;">int</td> <td>总token数量</td> </tr> </tbody> </table> <p>data字段说明</p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">embedding</td> <td style="text-align: left;">array</td> <td>具体内容</td> </tr> <tr> <td style="text-align: left;">index</td> <td style="text-align: left;">int</td> <td>索引</td> </tr> <tr> <td style="text-align: left;">object</td> <td style="text-align: left;">string</td> <td>类名</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>暂无</li> </ul>

页面列表

ITEM_HTML