Third-party Models¶
Third-party Models refer to external models integrated into DeepExtension — including services like OpenAI, Anthropic, ModelScope, or even locally deployed models accessible via API. These models are essential components of DeepExtension workflows and can be used for inference, evaluation, and embedding.
Why Third-party Models Matter¶
Third-party models are deeply integrated into the DeepExtension ecosystem:
- In DeepText, you can:
- Compare your fine-tuned models or local adapters against public APIs like GPT-4
-
Test how external models interact with your knowledge base or system prompts
-
In Knowledge Base, an embedding model must be registered as a third-party model to support vectorization of uploaded documents.
-
In Model Assessment, you can use any third-party model as a candidate or judge — enabling rich benchmarking and evaluation scenarios.
Even locally deployed models (e.g., those running on LAN or containerized endpoints) must be registered as third-party models since DeepExtension itself does not host or serve models directly.
Add a New Model¶
To add a new third-party model:
- Click "Add a New Model"
- Fill in the following parameters:
| Field | Description |
|---|---|
| Provider | The service provider (e.g., OpenAI, dashscope, Black Forest Labs, other) |
| Model Type | Either text (for generation) or embedding (for vector output) |
| Model Name | Exact model name as defined by the provider (e.g., gpt-4, text-embedding-ada-002) |
| API Address | The full API endpoint URL for the model |
| API Key | The authentication key or token used to access the model |
| Description | Optional notes for documentation or usage guidance |
| Use Privately | If enabled, the model is visible and usable only to you (default: No) |
- Click "OK" to add the model.
- Click "Test Connection" to validate the setup.
Edit an Existing Model¶
To update a model:
- Click "Edit" on the model you wish to change
- You may modify:
- API Address
- API Key
- Description
-
Privacy setting (toggle "Use Privately")
-
Save changes to apply updates immediately.
DeepExtension — Integrate your models, wherever they live