プロジェクト
バイト順マーク、既存のライセンスコメント、再実行を確認し、ヘッダーの重複や本文の変更を防ぎます。
text = source.removeprefix("\ufeff")
head, separator, body = text.partition("\n")
if head.startswith("#!"):
result = head + (separator or "\n") + update_spdx(body)
else:
result = update_spdx(source)バイト順マーク、既存のライセンスコメント、再実行を確認し、ヘッダーの重複や本文の変更を防ぎます。
実際の動作を期待する結果と比較します。検証に失敗した場合は、次の変更を加える前に原因を調べてください。
OpenAI互換またはAnthropicのエンドポイントを、ベースURLと必要なAPIキーで設定し、接続をテストします。ローカルのモデルサーバーは起動が必要です。リモートツールは別途データを送信する場合があります。
text = source.removeprefix("\ufeff")
head, separator, body = text.partition("\n")
if head.startswith("#!"):
result = head + (separator or "\n") + update_spdx(body)
else:
result = update_spdx(source)