Skip to content

Commit 1020aa1

Browse files
committed
fix(provider): add logging for model requests and extend modelType options #271
1 parent e3c80e9 commit 1020aa1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

core/src/main/kotlin/cc/unitmesh/devti/llms/custom/CustomLLMProvider.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class CustomLLMProvider(val project: Project, val llmConfig: LlmConfig = LlmConf
3636
}
3737

3838
override fun stream(originPrompt: String, systemPrompt: String, keepHistory: Boolean): Flow<String> {
39+
logger.info("Requesting to model: ${llmConfig.name}, $url")
3940
if (!keepHistory || project.coderSetting.state.noChatHistory) {
4041
clearMessage()
4142
}

core/src/main/resources/cc/unitmesh/devti/custom/schema/autodev-custom-llms.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"responseFormat": { "type": "string" },
2020
"modelType": {
2121
"type": "string",
22-
"enum": ["Default", "Plan", "Act", "Completion", "Embedding", "FastApply"],
23-
"default": "Default"
22+
"enum": ["Default", "Plan", "Act", "Completion", "Embedding", "FastApply", "Others"],
23+
"default": "Others"
2424
}
2525
},
2626
"required": ["name", "url", "auth", "requestFormat", "responseFormat"]

0 commit comments

Comments
 (0)