IT BASIC22 openai.AuthenticationError: 1.60.1 from openai import OpenAIimport osfrom dotenv import load_dotenvload_dotenv()print(os.getenv("MYOPENAI_API_KEY"))client = OpenAI(api_key=os.getenv("MYOPENAI_API_KEY"))# client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))def chat(message:str) -> str: response = client.chat.completions.create( model = "gpt-4o", messages = [ {"role":"system", "content": "You are a helpf.. 2025. 1. 25. KoNLPy JVMNotFoundException 해결 KoNLPy를 설치하다가 JVM오류를 관련한 오류를 맞이했다. 이유는 JDK가 설치 안 돼있어서 JDK를 설치해주어야 한다.https://adoptium.net/ Home | AdoptiumThe Adoptium® Working Group The Adoptium Working Group promotes and supports high-quality runtimes and associated technology for use across the Java ecosystem. Our vision is to meet the needs of Eclipse and the broader Java community by providing runtimesadoptium.net여기 들어가면최신 JDK를 받을 수 있다. L.. 2024. 9. 23. The current Dart SDK version is 3.4.1. Because flutter_app requires SDK version >=3.4.4 <4.0.0, version solving failed. PS D:\flutter_app> flutter pub add image_compare_slider를 실행하려 했는데 The current Dart SDK version is 3.4.1. Because flutter_app requires SDK version >=3.4.4 SDK 버전이 맞지 않았다 이럴 땐 이렇게 해주면 된다. flutter channel stable 명령을 실행하여 stable 채널로 전환 flutter upgrade 명령을 실행하여 Flutter와 Dart의 최신 안정 버전을 받는다.업그레이드 후 flutter --version 명령으로 최신 버전인지 확인다시 flutter pub add 명령을 시도 2024. 7. 29. 파이썬 디버깅 TypeError: ‘list’ object is not callable list= list() 변수명과 함수명이 중복되었을 때 나오고, 변수명을 바꿔주어야 한다. ValueError: 1000 is not in list 값이 리스트에 없을 때 나오는 오류로 값을 추가해줘야 한다. IndexError: list index out of range 리스트범위를 넘었다는 오류이다. 리스트 범위를 확인하자. KeyError: 300 set()에서 remove를 통해 지울 때 set()에 300이라는 것이 존재하지 않을 때 사용한다. 이때 discard()를 사용하면 오류가 뜨지 않는다. ValueError: invalid literal for int() with base 10: '' 사용자의 입력이 빈 문자열인.. 2024. 4. 10. 이전 1 2 3 4 ··· 6 다음