Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ IONETAPIKEY='<add_your_ionet_api_key_here>'
# If you want to use Chutes.ai, add your key here
CHUTESAI_API_KEY='<add_your_chutesai_api_key_here>'

# If you want to use Pearl, add your key here
PEARL_API_KEY='<add_your_pearl_api_key_here>'

########################################
# API Rate Limiting Configuration
RATE_LIMIT_ENABLED='false' # Enable/disable API key rate limiting
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"provider": "pearl",
"plugin": "openai-compatible",
"model": "deepseek-ai/DeepSeek-V4-Pro-0813",
"config": {},
"plugin_config": {
"api_key_env_var": "PEARL_API_KEY",
"api_url": "https://inference.pearlresearch.ai"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"provider": "pearl",
"plugin": "openai-compatible",
"model": "deepseek-ai/DeepSeek-V4.1-Flash-1017",
"config": {},
"plugin_config": {
"api_key_env_var": "PEARL_API_KEY",
"api_url": "https://inference.pearlresearch.ai"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"provider": "pearl",
"plugin": "openai-compatible",
"model": "zai-org/GLM-5.3-Flash",
"config": {},
"plugin_config": {
"api_key_env_var": "PEARL_API_KEY",
"api_url": "https://inference.pearlresearch.ai"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"provider": "pearl",
"plugin": "openai-compatible",
"model": "zai-org/GLM-5.3",
"config": {},
"plugin_config": {
"api_key_env_var": "PEARL_API_KEY",
"api_url": "https://inference.pearlresearch.ai"
}
}
17 changes: 17 additions & 0 deletions backend/node/create_nodes/providers_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"ollama",
"heuristai",
"chutesai",
"pearl",
"openai",
"anthropic",
"xai",
Expand Down Expand Up @@ -118,6 +119,22 @@
}
}
},
{
"if": {
"properties": {
"provider": {
"const": "pearl"
}
}
},
"then": {
"properties": {
"plugin": {
"const": "openai-compatible"
}
}
}
},
{
"if": {
"properties": {
Expand Down
17 changes: 17 additions & 0 deletions frontend/src/assets/schemas/providers_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"ollama",
"heuristai",
"chutesai",
"pearl",
"openai",
"anthropic",
"xai",
Expand Down Expand Up @@ -111,6 +112,22 @@
}
}
},
{
"if": {
"properties": {
"provider": {
"const": "pearl"
}
}
},
"then": {
"properties": {
"plugin": {
"const": "openai-compatible"
}
}
}
},
{
"if": {
"properties": {
Expand Down
15 changes: 15 additions & 0 deletions frontend/test/unit/providersSchemaSync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,19 @@ describe('providers schema sync', () => {
frontendRule?.then?.properties?.model?.enum,
);
});

it('keeps the pearl provider definition aligned between backend and frontend', () => {
expect(backendSchema.properties.provider.examples).toContain('pearl');
expect(frontendSchema.properties.provider.examples).toContain('pearl');

const backendRule = getProviderRule(backendSchema, 'pearl');
const frontendRule = getProviderRule(frontendSchema, 'pearl');

expect(backendRule?.then?.properties?.plugin?.const).toBe(
'openai-compatible',
);
expect(frontendRule?.then?.properties?.plugin?.const).toBe(
'openai-compatible',
);
});
});