Skip to content

Commit

Permalink
スクリプト修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tegnike committed Jul 1, 2024
1 parent f80e0d9 commit 6c9a028
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/analyze_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
system=(
"以下はGitHubで作成されたIssueとサマリーファイルの内容です。\n"
"このIssueに関連すると考えられるファイルを以下のJSONの形式で5-10つ出力してください。\n"
"[{'file_path': str, 'reason': str}]\n"
"必ずJSONのみで出力すること。"
"{\"file_path\": str, \"reason\": str}]\n"
"必ずJSONのみ出力すること。"
),
messages=[
{
Expand All @@ -73,6 +73,10 @@
],
)

# Claude APIの応答を出力
print("Claude APIの応答:")
print(response.content[0].text)

# Claude APIの応答をパースしてJSONを抽出
content = response.content[0].text
# JSON部分を抽出するために [ と ] で囲まれた部分を探す
Expand Down

0 comments on commit 6c9a028

Please sign in to comment.