mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-28 03:30:06 +00:00
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Pre-commit / pre-commit (push) Waiting to run
Test / Run Python Tests (push) Waiting to run
177 lines
4.4 KiB
TypeScript
177 lines
4.4 KiB
TypeScript
// ========= Copyright 2025-2026 @ Eigent.ai All Rights Reserved. =========
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
// ========= Copyright 2025-2026 @ Eigent.ai All Rights Reserved. =========
|
|
|
|
import { Provider } from '@/types';
|
|
|
|
export const INIT_PROVODERS: Provider[] = [
|
|
{
|
|
id: 'gemini',
|
|
name: 'Gemini',
|
|
apiKey: '',
|
|
apiHost: 'https://generativelanguage.googleapis.com/v1beta/openai/',
|
|
description: 'Google Gemini model configuration.',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'openai',
|
|
name: 'OpenAI',
|
|
apiKey: '',
|
|
apiHost: 'https://api.openai.com/v1',
|
|
description: 'OpenAI model configuration.',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'anthropic',
|
|
name: 'Anthropic',
|
|
apiKey: '',
|
|
apiHost: 'https://api.anthropic.com',
|
|
description: 'Anthropic Claude API configuration',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'openrouter',
|
|
name: 'OpenRouter',
|
|
apiKey: '',
|
|
apiHost: 'https://openrouter.ai/api/v1',
|
|
description: 'OpenRouter model configuration.',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'tongyi-qianwen',
|
|
name: 'Qwen',
|
|
apiKey: '',
|
|
apiHost: 'https://dashscope.aliyuncs.com/compatible-mode/v1',
|
|
description: 'Qwen model configuration.',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'deepseek',
|
|
name: 'Deepseek',
|
|
apiKey: '',
|
|
apiHost: 'https://api.deepseek.com',
|
|
description: 'DeepSeek model configuration.',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'minimax',
|
|
name: 'Minimax',
|
|
apiKey: '',
|
|
apiHost: 'https://api.minimax.io/v1',
|
|
description: 'Minimax model configuration.',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'z.ai',
|
|
name: 'Z.ai',
|
|
apiKey: '',
|
|
apiHost: 'https://api.z.ai/api/coding/paas/v4/',
|
|
description: 'Z.ai model configuration.',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'moonshot',
|
|
name: 'Moonshot',
|
|
apiKey: '',
|
|
apiHost: 'https://api.moonshot.ai/v1',
|
|
description: 'Kimi model configuration.',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'ModelArk',
|
|
name: 'ModelArk',
|
|
apiKey: '',
|
|
apiHost: 'https://ark.ap-southeast.bytepluses.com/api/v3',
|
|
description: 'ModelArk model configuration.',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'samba-nova',
|
|
name: 'SambaNova',
|
|
apiKey: '',
|
|
apiHost: 'https://api.sambanova.ai/v1',
|
|
description: 'SambaNova model configuration.',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'grok',
|
|
name: 'Grok',
|
|
apiKey: '',
|
|
apiHost: 'https://api.x.ai/v1',
|
|
description: 'Grok model configuration.',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'mistral',
|
|
name: 'Mistral',
|
|
apiKey: '',
|
|
apiHost: 'https://api.mistral.ai',
|
|
description: 'Mistral model configuration.',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'aws-bedrock',
|
|
name: 'AWS Bedrock',
|
|
apiKey: '',
|
|
apiHost: '',
|
|
description: 'AWS Bedrock model configuration.',
|
|
hostPlaceHolder: 'e.g. https://bedrock-runtime.{{region}}.amazonaws.com',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'azure',
|
|
name: 'Azure',
|
|
apiKey: '',
|
|
apiHost: '',
|
|
description: 'Azure OpenAI model configuration.',
|
|
hostPlaceHolder: 'e.g.https://{{your-resource-name}}.openai.azure.com',
|
|
externalConfig: [
|
|
{
|
|
key: 'api_version',
|
|
name: 'API Version',
|
|
value: '',
|
|
},
|
|
{
|
|
key: 'azure_deployment_name',
|
|
name: 'Deployment Name',
|
|
value: '',
|
|
},
|
|
],
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
{
|
|
id: 'openai-compatible-model',
|
|
name: 'OpenAI Compatible',
|
|
apiKey: '',
|
|
apiHost: '',
|
|
description: 'OpenAI-compatible API endpoint configuration.',
|
|
hostPlaceHolder: 'e.g. https://api.x.ai/v1',
|
|
is_valid: false,
|
|
model_type: '',
|
|
},
|
|
];
|