[feat] [sdk] ptaas (prompt as a service), bump to 0.0.9 #32
Annotations
10 errors
__tests__/prompt/hub.test.ts > Test Prompt Hub > #1 getPrompt and formatPrompt:
packages/cozeloop-ai/src/api/api-client/client.ts#L35
Error: [ApiClient] token not provided, neither pass it or set it via process.env.COZELOOP_API_TOKEN
❯ ApiClient.getToken src/api/api-client/client.ts:35:13
❯ ApiClient.buildHttpOptions src/api/api-client/client.ts:52:30
❯ ApiClient._request src/api/api-client/client.ts:79:36
❯ ApiClient.post src/api/api-client/client.ts:122:17
❯ PromptApi.pullPrompt src/api/prompt/index.ts:20:25
❯ PromptHub._getPrompt src/prompt/hub.ts:54:34
❯ PromptHub.getPrompt src/prompt/hub.ts:106:17
❯ __tests__/prompt/hub.test.ts:46:30
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _detail: { tag: 'ApiClient', propName: 'token', envKey: 'COZELOOP_API_TOKEN' }, tag: 'ApiClient' }
|
__tests__/api/api-client.test.ts > Http Test > Basic DELETE:
packages/cozeloop-ai/src/api/api-client/client.ts#L35
Error: [ApiClient] token not provided, neither pass it or set it via process.env.COZELOOP_API_TOKEN
❯ ApiClient.getToken src/api/api-client/client.ts:35:13
❯ ApiClient.buildHttpOptions src/api/api-client/client.ts:52:30
❯ ApiClient._request src/api/api-client/client.ts:79:36
❯ ApiClient.delete src/api/api-client/client.ts:152:17
❯ __tests__/api/api-client.test.ts:81:34
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _detail: { tag: 'ApiClient', propName: 'token', envKey: 'COZELOOP_API_TOKEN' }, tag: 'ApiClient' }
|
__tests__/api/api-client.test.ts > Http Test > Basic PUT:
packages/cozeloop-ai/src/api/api-client/client.ts#L35
Error: [ApiClient] token not provided, neither pass it or set it via process.env.COZELOOP_API_TOKEN
❯ ApiClient.getToken src/api/api-client/client.ts:35:13
❯ ApiClient.buildHttpOptions src/api/api-client/client.ts:52:30
❯ ApiClient._request src/api/api-client/client.ts:79:36
❯ ApiClient.put src/api/api-client/client.ts:143:17
❯ __tests__/api/api-client.test.ts:75:34
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _detail: { tag: 'ApiClient', propName: 'token', envKey: 'COZELOOP_API_TOKEN' }, tag: 'ApiClient' }
|
__tests__/api/api-client.test.ts > Http Test > Basic POST streaming with event error:
packages/cozeloop-ai/src/api/api-client/client.ts#L35
Error: [ApiClient] token not provided, neither pass it or set it via process.env.COZELOOP_API_TOKEN
❯ ApiClient.getToken src/api/api-client/client.ts:35:13
❯ ApiClient.buildHttpOptions src/api/api-client/client.ts:52:30
❯ ApiClient._request src/api/api-client/client.ts:79:36
❯ ApiClient.post src/api/api-client/client.ts:122:17
❯ __tests__/api/api-client.test.ts:61:34
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _detail: { tag: 'ApiClient', propName: 'token', envKey: 'COZELOOP_API_TOKEN' }, tag: 'ApiClient' }
|
__tests__/api/api-client.test.ts > Http Test > Basic POST streaming with parse error:
packages/cozeloop-ai/src/api/api-client/client.ts#L35
Error: [ApiClient] token not provided, neither pass it or set it via process.env.COZELOOP_API_TOKEN
❯ ApiClient.getToken src/api/api-client/client.ts:35:13
❯ ApiClient.buildHttpOptions src/api/api-client/client.ts:52:30
❯ ApiClient._request src/api/api-client/client.ts:79:36
❯ ApiClient.post src/api/api-client/client.ts:122:17
❯ __tests__/api/api-client.test.ts:47:34
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _detail: { tag: 'ApiClient', propName: 'token', envKey: 'COZELOOP_API_TOKEN' }, tag: 'ApiClient' }
|
__tests__/api/api-client.test.ts > Http Test > Basic POST streaming:
packages/cozeloop-ai/src/api/api-client/client.ts#L35
Error: [ApiClient] token not provided, neither pass it or set it via process.env.COZELOOP_API_TOKEN
❯ ApiClient.getToken src/api/api-client/client.ts:35:13
❯ ApiClient.buildHttpOptions src/api/api-client/client.ts:52:30
❯ ApiClient._request src/api/api-client/client.ts:79:36
❯ ApiClient.post src/api/api-client/client.ts:122:17
❯ __tests__/api/api-client.test.ts:36:34
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _detail: { tag: 'ApiClient', propName: 'token', envKey: 'COZELOOP_API_TOKEN' }, tag: 'ApiClient' }
|
__tests__/api/api-client.test.ts > Http Test > Basic POST:
packages/cozeloop-ai/src/api/api-client/client.ts#L35
Error: [ApiClient] token not provided, neither pass it or set it via process.env.COZELOOP_API_TOKEN
❯ ApiClient.getToken src/api/api-client/client.ts:35:13
❯ ApiClient.buildHttpOptions src/api/api-client/client.ts:52:30
❯ ApiClient._request src/api/api-client/client.ts:79:36
❯ ApiClient.post src/api/api-client/client.ts:122:17
❯ __tests__/api/api-client.test.ts:30:34
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _detail: { tag: 'ApiClient', propName: 'token', envKey: 'COZELOOP_API_TOKEN' }, tag: 'ApiClient' }
|
__tests__/api/api-client.test.ts > Http Test > Basic GET:
packages/cozeloop-ai/src/api/api-client/client.ts#L35
Error: [ApiClient] token not provided, neither pass it or set it via process.env.COZELOOP_API_TOKEN
❯ ApiClient.getToken src/api/api-client/client.ts:35:13
❯ ApiClient.buildHttpOptions src/api/api-client/client.ts:52:30
❯ ApiClient._request src/api/api-client/client.ts:79:36
❯ ApiClient.get src/api/api-client/client.ts:131:17
❯ __tests__/api/api-client.test.ts:24:34
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _detail: { tag: 'ApiClient', propName: 'token', envKey: 'COZELOOP_API_TOKEN' }, tag: 'ApiClient' }
|
Unhandled error:
packages/cozeloop-ai/src/api/api-client/client.ts#L35
Error: [ApiClient] token not provided, neither pass it or set it via process.env.COZELOOP_API_TOKEN
❯ ApiClient.getToken src/api/api-client/client.ts:35:13
❯ ApiClient.buildHttpOptions src/api/api-client/client.ts:52:30
❯ ApiClient._request src/api/api-client/client.ts:79:36
❯ ApiClient.post src/api/api-client/client.ts:122:17
❯ TraceApi.reportTrace src/api/trace/index.ts:19:25
❯ CozeLoopTraceClient.endSpans src/tracer/client/loop/index.ts:43:17
❯ CozeLoopTraceExporter.export src/tracer/exporter/loop/index.ts:59:27
❯ doExport ../../common/temp/node_modules/.pnpm/@opentelemetry[email protected]_@[email protected]/node_modules/@opentelemetry/sdk-trace-base/src/export/BatchSpanProcessorBase.ts:193:32
❯ ../../common/temp/node_modules/.pnpm/@opentelemetry[email protected]_@[email protected]/node_modules/@opentelemetry/sdk-trace-base/src/export/BatchSpanProcessorBase.ts:219:11
❯ AsyncLocalStorage.run node:async_hooks:338:14
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _detail: { tag: 'ApiClient', propName: 'token', envKey: 'COZELOOP_API_TOKEN' }, tag: 'ApiClient' }
This error originated in "__tests__/tracer/traceable.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "Test Trace Report". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
packages/cozeloop-ai/src/api/api-client/client.ts#L35
Error: [ApiClient] token not provided, neither pass it or set it via process.env.COZELOOP_API_TOKEN
❯ ApiClient.getToken src/api/api-client/client.ts:35:13
❯ ApiClient.buildHttpOptions src/api/api-client/client.ts:52:30
❯ ApiClient._request src/api/api-client/client.ts:79:36
❯ ApiClient.post src/api/api-client/client.ts:122:17
❯ TraceApi.reportTrace src/api/trace/index.ts:19:25
❯ CozeLoopTraceClient.endSpans src/tracer/client/loop/index.ts:43:17
❯ CozeLoopTraceExporter.export src/tracer/exporter/loop/index.ts:59:27
❯ doExport ../../common/temp/node_modules/.pnpm/@opentelemetry[email protected]_@[email protected]/node_modules/@opentelemetry/sdk-trace-base/src/export/BatchSpanProcessorBase.ts:193:32
❯ ../../common/temp/node_modules/.pnpm/@opentelemetry[email protected]_@[email protected]/node_modules/@opentelemetry/sdk-trace-base/src/export/BatchSpanProcessorBase.ts:219:11
❯ AsyncLocalStorage.run node:async_hooks:338:14
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _detail: { tag: 'ApiClient', propName: 'token', envKey: 'COZELOOP_API_TOKEN' }, tag: 'ApiClient' }
This error originated in "__tests__/tracer/traceable.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "Test Trace Report". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|