ChatGPT Plugin을 직접 만들 수 있다고 하는데, 어떻게 개발하나요?
ChatGPT Plugin 개발 기본 구조:
# 필요한 파일 2개# 1. /.well-known/ai-plugin.json (플러그인 정의){ "schema_version": "v1", "name_for_human": "My Plugin", "name_for_model": "my_plugin", "description_for_human": "설명", "description_for_model": "API 사용 방법 설명", "auth": { "type": "none" }, "api": { "type": "openapi", "url": "https://mysite.com/openapi.yaml" }}# 2. /openapi.yaml (API 스펙)openapi: 3.0.1info: title: My Plugin APIpaths: /api/search: get: summary: 검색 parameters: - name: q in: query required: true schema: type: string
기본적으로 REST API를 만들고, OpenAPI 스펙을 작성하면 ChatGPT가 자동으로 API를 호출합니다.
댓글 1
ChatGPT Plugin 개발 기본 구조:
기본적으로 REST API를 만들고, OpenAPI 스펙을 작성하면 ChatGPT가 자동으로 API를 호출합니다.