Update to newer openai model gpt-5-nano-2025-08-07
This commit is contained in:
Vendored
+8
@@ -60,6 +60,14 @@
|
||||
"envFile": "${workspaceFolder}/.env",
|
||||
"args": ["--mode", "TeamsUpdater", "--season", "2027", "--league", "1", "--configFile", "Tippliga"]
|
||||
},
|
||||
{
|
||||
"type": "java",
|
||||
"name": "WhatsAppNotifier",
|
||||
"request": "launch",
|
||||
"mainClass": "de.jeyp91.App",
|
||||
"envFile": "${workspaceFolder}/.env",
|
||||
"args": ["--mode", "WhatsAppNotifier", "--season", "2027", "--league", "1", "--configFile", "Tippliga"]
|
||||
},
|
||||
{
|
||||
"type": "java",
|
||||
"name": "SeasonPreparation",
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
package de.jeyp91.whatsapp;
|
||||
|
||||
import org.json.simple.JSONArray;
|
||||
import org.json.simple.JSONObject;
|
||||
|
||||
import java.net.URI;
|
||||
import java.net.http.HttpClient;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.json.simple.JSONArray;
|
||||
import org.json.simple.JSONObject;
|
||||
|
||||
import static de.jeyp91.apifootball.APIFootballConnector.stringToJSONObject;
|
||||
|
||||
public class OpenAIConnector {
|
||||
private final HttpClient client;
|
||||
private final String OPENAI_TOKEN = System.getenv("OPENAI_TOKEN");
|
||||
private final String OPENAPI_URL = "https://api.openai.com/v1/chat/completions";
|
||||
private final String OPENAPI_MODEL = "gpt-3.5-turbo-0125";
|
||||
private final String OPENAPI_MODEL = "gpt-5-nano-2025-08-07";
|
||||
private final HashMap<String, String> generatedMessages = new HashMap<>();
|
||||
|
||||
public OpenAIConnector() {
|
||||
|
||||
Reference in New Issue
Block a user