mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-24 07:00:49 +08:00
feat: ai generate
This commit is contained in:
@@ -17,7 +17,7 @@ public class OpenAiService {
|
||||
@Value("${openai.api-key:}")
|
||||
private String apiKey;
|
||||
|
||||
@Value("${openai.model:gpt-3.5-turbo}")
|
||||
@Value("${openai.model:gpt-4o}")
|
||||
private String model;
|
||||
|
||||
private final RestTemplate restTemplate = new RestTemplate();
|
||||
|
||||
@@ -48,4 +48,4 @@ cos.bucket-name=${COS_BUCKET_NAME:}
|
||||
google.client-id=${GOOGLE_CLIENT_ID:}
|
||||
# OpenAI configuration
|
||||
openai.api-key=${OPENAI_API_KEY:}
|
||||
openai.model=${OPENAI_MODEL:gpt-3.5-turbo}
|
||||
openai.model=${OPENAI_MODEL:gpt-4o}
|
||||
|
||||
Reference in New Issue
Block a user