Add completion functions #24
Annotations
3 errors
src/completions/completion-with-functions.ts#L67
Error: 400 you must provide a model parameter
❯ Function.generate node_modules/openai/src/error.ts:70:14
❯ OpenAI.makeStatusError node_modules/openai/src/core.ts:397:21
❯ OpenAI.makeRequest node_modules/openai/src/core.ts:460:24
❯ Module.completionWithFunctions src/completions/completion-with-functions.ts:67:19
❯ src/completions/completion-with-functions.spec.ts:13:16
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 400, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a96b6193ee83afa-IAD', connection: 'keep-alive', 'content-length': '167', 'content-type': 'application/json; charset=utf-8', date: 'Fri, 26 Jul 2024 19:14:12 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=TCNcAXXDGaA5CZhk35zyNeMyuipsyHkL73pQwwinseo-1722021252-1.0.1.1-r07bpr.V6jfZkP_nYuae7kZjjUzhghGT_Or9TgMQCfDNjo5KUGJq4M7ZeQi2Xh0LATEQD2tnoMdzDUqu3kspCg; path=/; expires=Fri, 26-Jul-24 19:44:12 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=WOJuj80DK.zG9p_OfOwK7uF_2JSfEBQvcIgans_Rhr0-1722021252228-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=15552000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-request-id': 'req_f51305561ae98e73a09f853ff5cba6b2' }, request_id: 'req_f51305561ae98e73a09f853ff5cba6b2', error: { message: 'you must provide a model parameter', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
|
src/completions/completion-with-functions.ts#L67
Error: 400 you must provide a model parameter
❯ Function.generate node_modules/openai/src/error.ts:70:14
❯ OpenAI.makeStatusError node_modules/openai/src/core.ts:397:21
❯ OpenAI.makeRequest node_modules/openai/src/core.ts:460:24
❯ Module.completionWithFunctions src/completions/completion-with-functions.ts:67:19
❯ Module.completionWithJsonResponse src/completions/completion-with-json.ts:40:14
❯ src/completions/completion-with-json.spec.ts:13:16
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 400, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '8a96b6162a1220b2-IAD', connection: 'keep-alive', 'content-length': '167', 'content-type': 'application/json; charset=utf-8', date: 'Fri, 26 Jul 2024 19:14:11 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=2VyJ56blcY3gBYZ8PyNwAkgRHvyseMGK_XXyzXMvtz4-1722021251-1.0.1.1-MP8P4dQPysig.jqN2cB.F7KcKUh6wYvL8SV1Q7DD0r61MYEqXCTFeE3.XpH9b_pTZp_cxeGpr0WP_qc9wX.W0A; path=/; expires=Fri, 26-Jul-24 19:44:11 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=XdYUoM1f3tMU3wBwCxMCIIwU7zKUBeX59NuBqKnu3Bc-1722021251740-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=15552000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-request-id': 'req_5b1745001cf82b593734e3a8c52d3d58' }, request_id: 'req_5b1745001cf82b593734e3a8c52d3d58', error: { message: 'you must provide a model parameter', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
|
|
This job failed
Loading