Skip to content

Commit dfd79ed

Browse files
committed
feat(agent): reset default response format string #51
Modify the `responseFormat` property of `CustomAgentExecutor` to be an empty string. This change allows the `execute` function to work correctly with the updated response format.
1 parent 32e7643 commit dfd79ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/cc/unitmesh/devti/counit/CustomAgentExecutor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CustomAgentExecutor(val project: Project) : CustomSSEProcessor() {
2121
private val logger = logger<CustomAgentExecutor>()
2222

2323
override var requestFormat: String = "{ \"messageKeys\": {\"role\": \"role\", \"content\": \"content\"} }"
24-
override var responseFormat: String = "\$.choices[0].delta.content"
24+
override var responseFormat: String = ""
2525

2626
fun execute(input: String, agent: CustomAgentConfig): Flow<String>? {
2727
this.requestFormat = agent.connector?.requestFormat ?: this.requestFormat

0 commit comments

Comments
 (0)