Skip to content

Commit b0d3813

Browse files
committed
fix: bard lang condition
1 parent 5142989 commit b0d3813

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ExceptNotifier/base/bard_receiver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ def receive_bard_advice(_BARD_API_KEY: str, error_message: str) -> str:
2222
elif environ["_BARD_ADVICE_LANG"]=='jp':
2323
input_text = f"次のエラーをどのように修正できますか?次のエラーについて説明し、どの場所でどのコードが間違っているかを教えてください。そして、このコードを修正できるサンプルコードを見せてください。 error=={error_message}"
2424
else:
25+
print('You can only use ko or jp for the _BARD_ADVICE_LANG variable. Hence, answers will be provided in English.')
2526
input_text = f"How can I fix this error? Give me short infomation about next error. Let me know which code line and which code is incorrect. and try to make it fix or fix example. error=={error_message}"
27+
else:
28+
input_text = f"How can I fix this error? Give me short infomation about next error. Let me know which code line and which code is incorrect. and try to make it fix or fix example. error=={error_message}"
2629
else:
2730
input_text = f"{environ['_PROMPT_COMMAND']} error=={error_message}"
2831

0 commit comments

Comments
 (0)