From fb9ea0a67858cbdf212fc477156836976df4407b Mon Sep 17 00:00:00 2001 From: "Jirayut Nimsaeng (Dear)" Date: Sun, 5 May 2024 04:28:22 +0700 Subject: [PATCH 1/2] Fix prompt written answers in custom language Signed-off-by: Jirayut Nimsaeng (Dear) --- pkg/ai/prompts.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/ai/prompts.go b/pkg/ai/prompts.go index e0ce72cf8d..03d7f041f2 100644 --- a/pkg/ai/prompts.go +++ b/pkg/ai/prompts.go @@ -1,7 +1,8 @@ package ai const ( - default_prompt = `Simplify the following Kubernetes error message delimited by triple dashes written in --- %s --- language; --- %s ---. + default_prompt = `Simplify the following Kubernetes error message delimited by triple dashes. And written answers in the %s language. + --- %s ---. Provide the most possible solution in a step by step style in no more than 280 characters. Write the output in the following format: Error: {Explain error here} Solution: {Step by step solution here} From f7bffca9068437e0deca4c9bd6baeb40767d6f48 Mon Sep 17 00:00:00 2001 From: "Jirayut Nimsaeng (Dear)" Date: Sun, 5 May 2024 04:28:22 +0700 Subject: [PATCH 2/2] fix: prompt written answers in custom language Signed-off-by: Jirayut Nimsaeng (Dear) --- pkg/ai/prompts.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/ai/prompts.go b/pkg/ai/prompts.go index e0ce72cf8d..03d7f041f2 100644 --- a/pkg/ai/prompts.go +++ b/pkg/ai/prompts.go @@ -1,7 +1,8 @@ package ai const ( - default_prompt = `Simplify the following Kubernetes error message delimited by triple dashes written in --- %s --- language; --- %s ---. + default_prompt = `Simplify the following Kubernetes error message delimited by triple dashes. And written answers in the %s language. + --- %s ---. Provide the most possible solution in a step by step style in no more than 280 characters. Write the output in the following format: Error: {Explain error here} Solution: {Step by step solution here}