프로젝트
바이트 순서 표시, 기존 라이선스와 재실행을 확인해 헤더 중복이나 본문 변경을 막으세요.
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)바이트 순서 표시, 기존 라이선스와 재실행을 확인해 헤더 중복이나 본문 변경을 막으세요.
실제 동작을 예상 결과와 비교하세요. 검사가 실패하면 다음 변경을 하기 전에 원인을 조사하세요.
기본 URL과 필요한 API 키로 OpenAI 호환 또는 Anthropic 엔드포인트를 설정하고 연결을 테스트하세요. 로컬 모델 서버는 실행 중이어야 합니다. 원격 도구는 데이터를 별도로 전송할 수 있습니다.
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)