wuodarr
02/19/2024, 1:23 PMpython:provider.py and then set id separatelyian
02/20/2024, 6:08 AMyaml
providers:
- python:provider.py:
id: custom-provider-1
config:
temperature: 0
- python:provider.py
id: custom-provider-2
config:
temperature: 1wuodarr
02/20/2024, 1:05 PMnode:internal/modules/cjs/loader:1077
const err = new Error(message);
^
Error: Cannot find module '/home/sagemaker-user/promptfoo/custom-provider-1'
Require stack:
- /home/sagemaker-user/.npm/_npx/81bbc6515d992ace/node_modules/promptfoo/dist/src/providers.js
- /home/sagemaker-user/.npm/_npx/81bbc6515d992ace/node_modules/promptfoo/dist/src/matchers.js
- /home/sagemaker-user/.npm/_npx/81bbc6515d992ace/node_modules/promptfoo/dist/src/assertions.js
- /home/sagemaker-user/.npm/_npx/81bbc6515d992ace/node_modules/promptfoo/dist/src/main.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:121:18)
at /home/sagemaker-user/.npm/_npx/81bbc6515d992ace/node_modules/promptfoo/dist/src/providers.js:295:132
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async loadApiProvider (/home/sagemaker-user/.npm/_npx/81bbc6515d992ace/node_modules/promptfoo/dist/src/providers.js:295:32)
at async Promise.all (index 0) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/sagemaker-user/.npm/_npx/81bbc6515d992ace/node_modules/promptfoo/dist/src/providers.js',
'/home/sagemaker-user/.npm/_npx/81bbc6515d992ace/node_modules/promptfoo/dist/src/matchers.js',
'/home/sagemaker-user/.npm/_npx/81bbc6515d992ace/node_modules/promptfoo/dist/src/assertions.js',
'/home/sagemaker-user/.npm/_npx/81bbc6515d992ace/node_modules/promptfoo/dist/src/main.js'
]
}wuodarr
02/20/2024, 1:10 PMyaml
providers:
- custom-provider-1:
id: python:provider.py
config:
temperature: 0
- custom-provider-2:
id: python:provider.py
config:
temperature: 1wuodarr
02/20/2024, 1:17 PMwuodarr
02/20/2024, 1:17 PM