@@ -16,35 +16,35 @@ function initializeLlmProviderConfigs() {
16
16
17
17
initializeLlmProviderConfig aliyun qwen DASHSCOPE dashscope.aliyuncs.com " 443" " https" " " " PRE" ' qwen-'
18
18
initializeLlmProviderConfig moonshot moonshot MOONSHOT api.moonshot.cn " 443" " https" " " " PRE" ' moonshot-'
19
- initializeLlmProviderConfig openai openai OPENAI api.openai.com " 443" " https" " " " REGULAR" ' gpt\\ -.*|o1\\ -.*'
20
- # initializeLlmProviderConfig ai360 ai360 AI360 api.360.cn "443" "https" "" "PRE" ""
19
+ initializeLlmProviderConfig openai openai OPENAI api.openai.com " 443" " https" " " " REGULAR" ' gpt-.*|o1-.*|o3 -.*'
20
+ initializeLlmProviderConfig ai360 ai360 AI360 api.360.cn " 443" " https" " " " PRE" " 360GPT "
21
21
# initializeLlmProviderConfig github github GITHUB models.inference.ai.azure.com "443" "https" "" "PRE" ""
22
22
# initializeLlmProviderConfig groq groq GROQ api.groq.com "443" "https" "" "PRE" ""
23
23
initializeLlmProviderConfig baichuan baichuan BAICHUAN api.baichuan-ai.com " 443" " https" " " " PRE" " Baichuan"
24
24
initializeLlmProviderConfig yi yi YI api.lingyiwanwu.com " 443" " https" " " " PRE" ' yi-'
25
25
initializeLlmProviderConfig deepseek deepseek DEEPSEEK api.deepseek.com " 443" " https" " " " PRE" " deepseek"
26
26
initializeLlmProviderConfig zhipuai zhipuai ZHIPUAI open.bigmodel.cn " 443" " https" " " " PRE" " GLM-"
27
- # initializeLlmProviderConfig baidu baidu BAIDU aip .baidubce.com "443" "https" "" "PRE" "ERNIE-"
27
+ initializeLlmProviderConfig baidu baidu BAIDU qianfan .baidubce.com " 443" " https" " " " PRE" " ERNIE-"
28
28
# initializeLlmProviderConfig hunyuan hunyuan HUNYUAN hunyuan.tencentcloudapi.com "443" "https" "" "PRE" "hunyuan-" "${EXTRA_CONFIGS[@]}"
29
29
initializeLlmProviderConfig stepfun stepfun STEPFUN api.stepfun.com " 443" " https" " " " PRE" " step-"
30
30
# initializeLlmProviderConfig cloudflare cloudflare CLOUDFLARE api.cloudflare.com "443" "https" "" "PRE" "" "${EXTRA_CONFIGS[@]}"
31
31
# initializeLlmProviderConfig spark spark SPARK spark-api-open.xf-yun.com "443" "https" "" "PRE" "" "${EXTRA_CONFIGS[@]}"
32
- # initializeLlmProviderConfig gemini gemini GEMINI generativelanguage.googleapis.com "443" "https" "" "PRE" "gemini-"
32
+ initializeLlmProviderConfig gemini gemini GEMINI generativelanguage.googleapis.com " 443" " https" " " " PRE" " gemini-"
33
33
# initializeLlmProviderConfig deepl deepl DEEPL "443" "https" "" "PRE" "" "${EXTRA_CONFIGS[@]}"
34
- # initializeLlmProviderConfig mistral mistral MISTRAL api.mistral.ai "443" "https" "" "PRE" ""
35
- # initializeLlmProviderConfig cohere cohere COHERE api.cohere.com "443" "https" "" "PRE" ""
34
+ initializeLlmProviderConfig mistral mistral MISTRAL api.mistral.ai " 443" " https" " " " REGULAR " ' open-mistral-.*|mistral-.* '
35
+ initializeLlmProviderConfig cohere cohere COHERE api.cohere.com " 443" " https" " " " REGULAR " ' command|command-.* '
36
36
initializeLlmProviderConfig doubao doubao DOUBAO ark.cn-beijing.volces.com " 443" " https" " " " PRE" " doubao-"
37
37
# initializeLlmProviderConfig coze coze COZE api.coze.cn "443" "https" "" "PRE" ""
38
38
39
- # if [ -z "$AZURE_SERVICE_URL" ]; then
40
- # AZURE_SERVICE_URL="https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/chat/completions?api-version=2024-06-01"
41
- # fi
42
- # extractHostFromUrl "$AZURE_SERVICE_URL"
43
- # local AZURE_SERVICE_DOMAIN="$HOST"
44
- # EXTRA_CONFIGS=(
45
- # "azureServiceUrl=$AZURE_SERVICE_URL"
46
- # )
47
- # initializeLlmProviderConfig azure azure AZURE "$AZURE_SERVICE_DOMAIN" "443" "https" "" "PRE" "" "${EXTRA_CONFIGS[@]}"
39
+ if [ -z " $AZURE_SERVICE_URL " ]; then
40
+ AZURE_SERVICE_URL=" https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/chat/completions?api-version=2024-06-01"
41
+ fi
42
+ extractHostFromUrl " $AZURE_SERVICE_URL "
43
+ local AZURE_SERVICE_DOMAIN=" $HOST "
44
+ EXTRA_CONFIGS=(
45
+ " azureServiceUrl=$AZURE_SERVICE_URL "
46
+ )
47
+ initializeLlmProviderConfig azure azure AZURE " $AZURE_SERVICE_DOMAIN " " 443" " https" " " " REGULAR " ' gpt-.*|o1-.*|o3-.* ' " ${EXTRA_CONFIGS[@]} "
48
48
49
49
if [ -z " $CLAUDE_VERSION " ]; then
50
50
CLAUDE_VERSION=" 2023-06-01"
@@ -54,15 +54,15 @@ function initializeLlmProviderConfigs() {
54
54
)
55
55
initializeLlmProviderConfig claude claude CLAUDE api.anthropic.com " 443" " https" " " " PRE" " claude-" " ${EXTRA_CONFIGS[@]} "
56
56
57
- # if [ -z "$OLLAMA_SERVER_HOST" ]; then
58
- # OLLAMA_SERVER_HOST="YOUR_OLLAMA_SERVER_HOST"
59
- # fi
60
- # OLLAMA_SERVER_PORT="${OLLAMA_SERVER_PORT:-11434}"
61
- # EXTRA_CONFIGS=(
62
- # "ollamaServerHost=\"$OLLAMA_SERVER_HOST\""
63
- # "ollamaServerPort=$OLLAMA_SERVER_PORT"
64
- # )
65
- # initializeLlmProviderConfig ollama ollama OLLAMA "$OLLAMA_SERVER_HOST" "$OLLAMA_SERVER_PORT" "http" "" "PRE" "" "${EXTRA_CONFIGS[@]}"
57
+ if [ -z " $OLLAMA_SERVER_HOST " ]; then
58
+ OLLAMA_SERVER_HOST=" YOUR_OLLAMA_SERVER_HOST"
59
+ fi
60
+ OLLAMA_SERVER_PORT=" ${OLLAMA_SERVER_PORT:- 11434} "
61
+ EXTRA_CONFIGS=(
62
+ " ollamaServerHost=\" $OLLAMA_SERVER_HOST \" "
63
+ " ollamaServerPort=$OLLAMA_SERVER_PORT "
64
+ )
65
+ initializeLlmProviderConfig ollama ollama OLLAMA " $OLLAMA_SERVER_HOST " " $OLLAMA_SERVER_PORT " " http" " " " REGULAR " ' codellama.*|llama.* ' " ${EXTRA_CONFIGS[@]} "
66
66
67
67
EXTRA_CONFIGS=(
68
68
" minimaxGroupId=\" $MINIMAX_GROUP_ID \" "
0 commit comments