Skip to content

Commit

Permalink
fix(runner): 简化输出LLM模型名
Browse files Browse the repository at this point in the history
在ShireRunner中,简化了LLM模型名输出的代码,以避免潜在的空指针异常。
  • Loading branch information
phodal committed Sep 11, 2024
1 parent 28d6dea commit 06ddd76
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ class ShireRunner(
) {
console.print("Shire Script: ${shireConfiguration.getScriptPath()}\n", ConsoleViewContentType.SYSTEM_OUTPUT)
console.print("Shire Script Compile output:\n", ConsoleViewContentType.SYSTEM_OUTPUT)
console.print("Used model: ${ShireRunVariableContext.getData()?.llmModelName}\n", ConsoleViewContentType.SYSTEM_OUTPUT)
ShireRunVariableContext.getData()?.llmModelName?.let {
console.print("Used model: $it\n", ConsoleViewContentType.SYSTEM_OUTPUT)
}

promptText.split("\n").forEach {
when {
Expand Down

0 comments on commit 06ddd76

Please sign in to comment.