Skip to content

Commit

Permalink
feat(agent): reset default response format string #51
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
phodal committed Mar 7, 2024
1 parent 32e7643 commit dfd79ed
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -21,7 +21,7 @@ class CustomAgentExecutor(val project: Project) : CustomSSEProcessor() {
private val logger = logger<CustomAgentExecutor>()

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

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

0 comments on commit dfd79ed

Please sign in to comment.