Package io.agentscope.spring.boot.openai
Class OpenAIProperties
java.lang.Object
io.agentscope.spring.boot.openai.OpenAIProperties
OpenAI provider specific settings.
Example configuration:
agentscope:
model:
provider: openai
openai:
enabled: true
api-key: ${OPENAI_API_KEY}
model-name: gpt-4.1-mini
# base-url: https://api.openai.com/v1 # optional, for compatible endpoints
# endpoint-path: /v1/chat/completions # optional, for custom endpoint paths
stream: true
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanisStream()voidvoidsetBaseUrl(String baseUrl) voidsetEnabled(boolean enabled) voidsetEndpointPath(String endpointPath) voidsetModelName(String modelName) voidsetStream(boolean stream)
-
Constructor Details
-
OpenAIProperties
public OpenAIProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getApiKey
-
setApiKey
-
getModelName
-
setModelName
-
getBaseUrl
-
setBaseUrl
-
getEndpointPath
-
setEndpointPath
-
isStream
public boolean isStream() -
setStream
public void setStream(boolean stream)
-