Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-openai

Java project demonstrating integration patterns with the OpenAI API for text analysis workflows.

PT-BR resumo

Projeto em Java com exemplos praticos de uso da API da OpenAI para analise de sentimentos, categorizacao de produtos e identificacao de perfil. O foco e demonstrar integracao, tratamento de erros e controle de custo via tokens.

What this project includes

  • Sentiment analysis pipeline (FeelingAnalyzer)
  • Product categorization (ProductCategorizer)
  • Profile identification (ProfileIdentifier)
  • Token counting utility (Tokenizer)
  • Integration entrypoint (TestaIntegracao)

Stack

  • Java 17
  • Maven
  • com.theokanning.openai-gpt3-java
  • jtokkit

Run locally

  1. Set your API key:
# Windows (PowerShell)
$env:OPENAI_API_KEY="your-key"
  1. Build:
mvn clean package
  1. Run from your IDE (example: TestaIntegracao.java).

Notes

  • This repository is focused on integration learning and experimentation.
  • For production use, migrate to the latest official OpenAI Java SDK and add secure configuration management.

License

MIT

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages