Module '"openai"' has no exported member 'Configuration'. Did you mean to use 'import Configuration from "openai"' instead?ts(2614)
Nest.js에서 openai 연동 중에 해당 오류가 발생했다. Module '"openai"' has no exported member 'Configuration'. Did you mean to use 'import Configuration from "openai"' instead?ts(2614) 현재 install 후 사용 중인 openai SDK는 v4 버전 이상일 가능성이 높다. 이 버전에서는 v3 방식의 Configuration, OpenAIApi 사용법이 변경되었기 때문에, 에러가 나는 것이다. ✅ 해결 방법📌 1. 최신 OpenAI SDK (v4) 방식으로 수정변경 전import { Configuration, OpenAIApi } from 'openai';private openai: O..
Trouble Shooting
2025. 6. 17. 22:06