Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
agentscope-extensions-model-openai
<dependency> <groupId>io.agentscope</groupId> <artifactId>agentscope-extensions-model-openai</artifactId> <version>${agentscope.version}</version> </dependency>
OPENAI_API_KEY
openai:<model>
ReActAgent agent = ReActAgent.builder() .name("assistant") .model("openai:gpt-4.1-mini") // 底层由 ModelRegistry.resolve(modelId) 解析 .build();
import io.agentscope.extensions.model.openai.OpenAIChatModel; OpenAIChatModel model = OpenAIChatModel.builder() .apiKey(System.getenv("OPENAI_API_KEY")) .modelName("gpt-4.1-mini") .stream(true) .build();
<dependency> <groupId>io.agentscope</groupId> <artifactId>agentscope-openai-spring-boot-starter</artifactId> <version>${agentscope.version}</version> </dependency>