File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1414
1515public class ChatDemo {
1616
17- private static String API_EMBEDDINGS_URL = "https://api.openai.com/v1/embeddings" ;
18- private static String API_EMBEDDINGS_MODEL = "text-embedding-3-large" ;
19- private static String API_CHAT_COMPLETIONS_URL = "https://api.openai.com/v1/chat/completions" ;
20- private static String API_CHAT_MODEL = "gpt-4o-mini" ;
21- private static String API_KEY = System .getenv ("OPENAI_API_KEY" );
17+ private static final String API_EMBEDDINGS_URL = "https://api.openai.com/v1/embeddings" ;
18+ private static final String API_EMBEDDINGS_MODEL = "text-embedding-3-large" ;
19+ private static final String API_CHAT_COMPLETIONS_URL = "https://api.openai.com/v1/chat/completions" ;
20+ private static final String API_CHAT_MODEL = "gpt-4o-mini" ;
21+ private static final String API_KEY = System .getenv ("OPENAI_API_KEY" );
2222
2323 static {
2424 Unirest .config ().socketTimeout (10 * 60 * 1000 );
Original file line number Diff line number Diff line change 1414
1515public class ComputeVectors {
1616
17- private static String API_EMBEDDINGS_URL = "https://api.openai.com/v1/embeddings" ;
18- private static String API_EMBEDDINGS_MODEL = "text-embedding-3-small" ;
19- private static String API_KEY = System .getenv ("OPENAI_API_KEY" );
17+ private static final String API_EMBEDDINGS_URL = "https://api.openai.com/v1/embeddings" ;
18+ private static final String API_EMBEDDINGS_MODEL = "text-embedding-3-small" ;
19+ private static final String API_KEY = System .getenv ("OPENAI_API_KEY" );
2020
2121 static {
2222 Unirest .config ().socketTimeout (2 * 60 * 1000 );
You can’t perform that action at this time.
0 commit comments