├── .gitignore ├── README.md ├── pom.xml └── src └── main ├── java └── de │ └── bsi │ └── openai │ ├── ChatgptApplication.java │ ├── FormInputDTO.java │ ├── OpenAiApiClient.java │ ├── chatgpt │ ├── ChatGptController.java │ ├── CompletionRequest.java │ └── CompletionResponse.java │ └── dalle │ ├── DalleImageController.java │ ├── GenerationRequest.java │ └── GenerationResponse.java └── resources ├── application.properties ├── static └── css │ └── main.css └── templates ├── image.html └── index.html /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/README.md -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/de/bsi/openai/ChatgptApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/src/main/java/de/bsi/openai/ChatgptApplication.java -------------------------------------------------------------------------------- /src/main/java/de/bsi/openai/FormInputDTO.java: -------------------------------------------------------------------------------- 1 | package de.bsi.openai; 2 | 3 | public record FormInputDTO(String prompt) {} 4 | -------------------------------------------------------------------------------- /src/main/java/de/bsi/openai/OpenAiApiClient.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/src/main/java/de/bsi/openai/OpenAiApiClient.java -------------------------------------------------------------------------------- /src/main/java/de/bsi/openai/chatgpt/ChatGptController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/src/main/java/de/bsi/openai/chatgpt/ChatGptController.java -------------------------------------------------------------------------------- /src/main/java/de/bsi/openai/chatgpt/CompletionRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/src/main/java/de/bsi/openai/chatgpt/CompletionRequest.java -------------------------------------------------------------------------------- /src/main/java/de/bsi/openai/chatgpt/CompletionResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/src/main/java/de/bsi/openai/chatgpt/CompletionResponse.java -------------------------------------------------------------------------------- /src/main/java/de/bsi/openai/dalle/DalleImageController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/src/main/java/de/bsi/openai/dalle/DalleImageController.java -------------------------------------------------------------------------------- /src/main/java/de/bsi/openai/dalle/GenerationRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/src/main/java/de/bsi/openai/dalle/GenerationRequest.java -------------------------------------------------------------------------------- /src/main/java/de/bsi/openai/dalle/GenerationResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/src/main/java/de/bsi/openai/dalle/GenerationResponse.java -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/src/main/resources/application.properties -------------------------------------------------------------------------------- /src/main/resources/static/css/main.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/src/main/resources/static/css/main.css -------------------------------------------------------------------------------- /src/main/resources/templates/image.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/src/main/resources/templates/image.html -------------------------------------------------------------------------------- /src/main/resources/templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elmar-brauch/openai-api/HEAD/src/main/resources/templates/index.html --------------------------------------------------------------------------------