Package com.viglet.turing.api.llm
Class TurLlmAPI
Object
TurLlmAPI
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidateFile
(MultipartFile multipartFile) validateText
(String text)
-
Field Details
-
SAMPLE
- See Also:
-
GPT_3_5_TURBO
- See Also:
-
SYSTEM
- See Also:
-
USER
- See Also:
-
BEARER
- See Also:
-
JSON_OBJECT
- See Also:
-
OPENAI_CHAT_COMPLETIONS
- See Also:
-
DATA_SCHEMA_SYSTEM_ROLE
- See Also:
-
-
Constructor Details
-
TurLlmAPI
-
-
Method Details
-
llm
@PostMapping public TurLlmQa llm(@RequestParam("text") String createQA) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
validateText
@PostMapping("/entity/text") public RedactionScript validateText(@RequestParam("text") String text) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
validateFile
@PostMapping("/entity/file/blazon") public RedactionScript validateFile(@RequestParam("file") MultipartFile multipartFile) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
chatGPT
- Throws:
IOException
InterruptedException
-