From 1489f71d7eedcab4d43e815899dc98ac68c2518c Mon Sep 17 00:00:00 2001 From: 0007 <0007@qq.com> Date: Wed, 27 Aug 2025 19:58:01 +0800 Subject: [PATCH] Add File --- .../boot/llm/openai/OpenAIProperties.java | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 agents-flex-spring-boot-starter/src/main/java/com/agentsflex/spring/boot/llm/openai/OpenAIProperties.java diff --git a/agents-flex-spring-boot-starter/src/main/java/com/agentsflex/spring/boot/llm/openai/OpenAIProperties.java b/agents-flex-spring-boot-starter/src/main/java/com/agentsflex/spring/boot/llm/openai/OpenAIProperties.java new file mode 100644 index 0000000..4ffe3c8 --- /dev/null +++ b/agents-flex-spring-boot-starter/src/main/java/com/agentsflex/spring/boot/llm/openai/OpenAIProperties.java @@ -0,0 +1,66 @@ +package com.agentsflex.spring.boot.llm.openai; + +import org.springframework.boot.context.properties.ConfigurationProperties; + +/** + * @author 王帅 + * @since 2024-04-10 + */ +@ConfigurationProperties(prefix = "agents-flex.llm.openai") +public class OpenAIProperties { + + private String model = "gpt-3.5-turbo"; + private String endpoint = "https://api.openai.com"; + private String apiKey; + private String apiSecret; + private String chatPath = "/v1/chat/completions"; + private String embedPath = "/v1/embeddings"; + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public String getEndpoint() { + return endpoint; + } + + public void setEndpoint(String endpoint) { + this.endpoint = endpoint; + } + + public String getApiKey() { + return apiKey; + } + + public void setApiKey(String apiKey) { + this.apiKey = apiKey; + } + + public String getApiSecret() { + return apiSecret; + } + + public void setApiSecret(String apiSecret) { + this.apiSecret = apiSecret; + } + + public String getChatPath() { + return chatPath; + } + + public void setChatPath(String chatPath) { + this.chatPath = chatPath; + } + + public String getEmbedPath() { + return embedPath; + } + + public void setEmbedPath(String embedPath) { + this.embedPath = embedPath; + } +}