mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-08-14 19:23:32 +00:00
Merge branch 'main' into feat/in-session-terminal-panel
This commit is contained in:
commit
c05842092d
8 changed files with 49 additions and 3 deletions
|
|
@ -18,6 +18,7 @@ from pydantic import BeforeValidator
|
|||
|
||||
PLATFORM_ALIAS_MAPPING: Final[dict[str, str]] = {
|
||||
"z.ai": "zhipuai",
|
||||
"ant-ling": "openai-compatible-model",
|
||||
"ModelArk": "openai-compatible-model",
|
||||
"grok": "openai-compatible-model",
|
||||
"ernie": "qianfan",
|
||||
|
|
|
|||
|
|
@ -185,6 +185,11 @@ class TestModelPlatformMapping:
|
|||
chat = self._create_chat("nebius")
|
||||
assert chat.model_platform == "openai-compatible-model"
|
||||
|
||||
def test_chat_maps_ant_ling_to_openai_compatible_model(self):
|
||||
"""Test Chat maps Ant Ling (百灵) platform alias correctly."""
|
||||
chat = self._create_chat("ant-ling")
|
||||
assert chat.model_platform == "openai-compatible-model"
|
||||
|
||||
def test_chat_keeps_supported_platforms_unchanged(self):
|
||||
"""Test Chat keeps native camel-ai platforms unchanged."""
|
||||
chat = self._create_chat("mistral")
|
||||
|
|
|
|||
3
src/assets/model/ant-ling.svg
Normal file
3
src/assets/model/ant-ling.svg
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M23.0837 4.14727C23.4047 3.94871 23.8119 3.94526 24.1139 4.17071L29.7956 6.88457C30.0573 7.08052 30.0169 7.47596 29.7311 7.63164C21.9807 11.8619 17.302 15.9874 14.8425 19.9949C13.2514 22.5852 10.3251 29.6555 12.9733 36.0359C15.716 42.6364 21.9322 45.0203 26.5329 45.0203C30.0087 45.0203 32.3712 43.9761 34.7712 42.3523C41.2785 37.9448 42.0285 29.3468 37.1852 23.4334V23.4305C37.2025 23.4453 39.8831 25.7483 41.5759 29.2352C41.2532 28.0697 40.7733 26.9511 40.1374 25.909C38.7028 23.5552 36.7695 21.5823 34.0407 20.2107C27.9675 17.1587 15.2951 18.6299 13.2995 31.7693C13.5017 22.6565 19.5393 16.9388 25.0056 15.1697C28.0421 14.1873 31.2569 13.9996 34.2907 14.5418C38.3385 11.2644 42.8127 9.79064 44.4147 9.33965C44.7842 9.23496 45.1834 9.33932 45.4557 9.61309C45.9141 10.0747 46.7149 10.8772 47.7341 11.8836H47.7399C48.0446 12.1842 47.8852 12.7025 47.4645 12.783C43.5274 13.5426 40.839 14.2947 37.9968 15.6072C41.4431 17.0031 44.3933 19.4488 46.1921 22.8201C46.4048 23.2172 46.2189 23.7081 45.7956 23.8611L43.3874 24.7332C45.5043 28.3329 46.0487 32.7462 45.0104 37.2664C43.2467 44.9513 37.3384 50.3896 29.7956 51.6834C28.6146 51.8848 27.444 52.0193 26.2927 51.9979C25.9026 51.9909 25.5967 51.6853 25.569 51.3162C25.4877 51.1735 25.4521 51.0025 25.4831 50.826L25.945 48.2361C23.8389 48.0884 21.8642 47.7391 19.8874 46.9393C8.15393 42.188 6.92433 30.5948 8.60711 23.5701C10.7915 14.4599 17.5068 7.55894 23.0837 4.14727Z" fill="black"></path>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 260 KiB After Width: | Height: | Size: 262 KiB |
|
|
@ -6,9 +6,19 @@
|
|||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
display: inline-block;
|
||||
animation: shine 3s linear infinite;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@keyframes shine {
|
||||
0% {
|
||||
background-position: 200% center;
|
||||
}
|
||||
100% {
|
||||
background-position: -200% center;
|
||||
}
|
||||
}
|
||||
|
||||
.shiny-text.disabled {
|
||||
animation: none;
|
||||
color: #71717b;
|
||||
|
|
|
|||
|
|
@ -3,11 +3,13 @@
|
|||
display: inline-block;
|
||||
background: var(--word-gradient);
|
||||
background-size: 200% 100%;
|
||||
background-position: 50% 50%;
|
||||
background-position: 0% 50%;
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
white-space: nowrap;
|
||||
animation: gradient-sweep var(--sweep-duration, 2200ms) linear infinite;
|
||||
will-change: background-position, opacity;
|
||||
}
|
||||
|
||||
.word-carousel.is-fading {
|
||||
|
|
@ -15,14 +17,26 @@
|
|||
opacity: 0.35;
|
||||
}
|
||||
|
||||
/* Kept for API compatibility; the decorative gradient remains static. */
|
||||
/* run once, left-to-right */
|
||||
.word-carousel.sweep-once {
|
||||
background-position: 50% 50%;
|
||||
animation-iteration-count: 1;
|
||||
animation-fill-mode: forwards;
|
||||
animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
@keyframes gradient-sweep {
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
100% {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.word-carousel,
|
||||
.word-carousel.sweep-once {
|
||||
animation: none;
|
||||
background-position: 50% 50%;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -243,6 +243,17 @@ export const INIT_PROVODERS: Provider[] = [
|
|||
modelsEndpoint: '/models',
|
||||
websiteUrl: 'https://docs.tokenfactory.nebius.com/quickstart',
|
||||
},
|
||||
{
|
||||
id: 'ant-ling',
|
||||
name: 'Ant Ling',
|
||||
apiKey: '',
|
||||
apiHost: 'https://api.ant-ling.com/v1',
|
||||
description: 'Ant Ling model configuration',
|
||||
is_valid: false,
|
||||
model_type: '',
|
||||
modelsEndpoint: '/models',
|
||||
websiteUrl: 'https://developer.ant-ling.com',
|
||||
},
|
||||
{
|
||||
id: 'openai-compatible-model',
|
||||
name: 'OpenAI Compatible',
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
// limitations under the License.
|
||||
// ========= Copyright 2025-2026 @ Eigent.ai All Rights Reserved. =========
|
||||
|
||||
import antLingImage from '@/assets/model/ant-ling.svg';
|
||||
import anthropicImage from '@/assets/model/anthropic.svg';
|
||||
import azureImage from '@/assets/model/azure.svg';
|
||||
import bedrockImage from '@/assets/model/bedrock.svg';
|
||||
|
|
@ -42,6 +43,7 @@ const MODEL_PROVIDER_IMAGE_MAP: Record<string, string> = {
|
|||
cloud: eigentImage,
|
||||
openai: openaiImage,
|
||||
'codex-subscription': openaiImage,
|
||||
'ant-ling': antLingImage,
|
||||
anthropic: anthropicImage,
|
||||
gemini: geminiImage,
|
||||
nebius: PROVIDER_AVATAR_URLS.nebius,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue