fix: plugin-agentkit #2855
Annotations
10 errors
__tests__/embedding.test.ts:
packages/core/src/localembeddingManager.ts#L3
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/localembeddingManager.ts:3:31
Caused by: Caused by: Error: Module not found
❯ __tests__/embedding.test.ts:152:23
❯ src/localembeddingManager.ts:3:31
|
__tests__/models.test.ts > Model Provider Configuration > Livepeer Provider > should have correct endpoint configuration:
packages/core/__tests__/models.test.ts#L132
AssertionError: expected undefined to be 'http://gateway.test-gateway' // Object.is equality
- Expected:
"http://gateway.test-gateway"
+ Received:
undefined
❯ __tests__/models.test.ts:132:65
|
__tests__/models.test.ts > Model Provider Configuration > Livepeer Provider > should have correct model mappings:
packages/core/__tests__/models.test.ts#L137
AssertionError: expected { …(5) } to be 'meta-llama/Meta-Llama-3.1-8B-Instruct' // Object.is equality
- Expected:
"meta-llama/Meta-Llama-3.1-8B-Instruct"
+ Received:
{
"maxInputTokens": 8000,
"maxOutputTokens": 8192,
"name": "meta-llama/Meta-Llama-3.1-8B-Instruct",
"stop": [],
"temperature": 0,
}
❯ __tests__/models.test.ts:137:54
|
__tests__/models.test.ts > Model Provider Configuration > Livepeer Provider > should have correct settings configuration:
packages/core/__tests__/models.test.ts#L145
TypeError: Cannot read properties of undefined (reading 'maxInputTokens')
❯ __tests__/models.test.ts:145:29
|
__tests__/models.test.ts > Generation with Livepeer > should have correct image generation settings:
packages/core/__tests__/models.test.ts#L253
AssertionError: expected { name: 'ByteDance/SDXL-Lightning' } to be 'ByteDance/SDXL-Lightning' // Object.is equality
- Expected:
"ByteDance/SDXL-Lightning"
+ Received:
{
"name": "ByteDance/SDXL-Lightning",
}
❯ __tests__/models.test.ts:253:56
|
__tests__/models.test.ts > Generation with Livepeer > should use default image model:
packages/core/__tests__/models.test.ts#L259
AssertionError: expected { name: 'ByteDance/SDXL-Lightning' } to be 'ByteDance/SDXL-Lightning' // Object.is equality
- Expected:
"ByteDance/SDXL-Lightning"
+ Received:
{
"name": "ByteDance/SDXL-Lightning",
}
❯ __tests__/models.test.ts:259:76
|
__tests__/parsing.test.ts > Parsing Module > parseJSONObjectFromText > should parse JSON object from code block:
packages/core/__tests__/parsing.test.ts#L114
AssertionError: expected { key: 'value', number: '42' } to deeply equal { key: 'value', number: 42 }
- Expected
+ Received
{
"key": "value",
- "number": 42,
+ "number": "42",
}
❯ __tests__/parsing.test.ts:114:52
|
__tests__/parsing.test.ts > Parsing Module > parseJSONObjectFromText > should parse JSON object without code block:
packages/core/__tests__/parsing.test.ts#L122
AssertionError: expected { key: 'value', number: '42' } to deeply equal { key: 'value', number: 42 }
- Expected
+ Received
{
"key": "value",
- "number": 42,
+ "number": "42",
}
❯ __tests__/parsing.test.ts:122:52
|
__tests__/parsing.test.ts > Parsing Module > parseJSONObjectFromText > should return null for invalid JSON:
packages/core/__tests__/parsing.test.ts#L142
AssertionError: expected {} to be null // Object.is equality
- Expected:
null
+ Received:
{}
❯ __tests__/parsing.test.ts:142:58
|
check
Process completed with exit code 1.
|