File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
core/src/main/java/org/testcontainers/containers Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,20 @@ public DockerModelRunnerContainer withModel(String model) {
7979 return this ;
8080 }
8181
82+ /**
83+ * Returns the base endpoint URL for the Docker Model Runner service.
84+ *
85+ * @return the base URL in the format {@code http://<host>:<port>}
86+ */
8287 public String getBaseEndpoint () {
8388 return "http://" + getHost () + ":" + getMappedPort (PORT );
8489 }
8590
91+ /**
92+ * Returns the OpenAI-compatible API endpoint URL for the Docker Model Runner service.
93+ *
94+ * @return the OpenAI-compatible endpoint URL in the format {@code http://<host>:<port>/engines}
95+ */
8696 public String getOpenAIEndpoint () {
8797 return getBaseEndpoint () + "/engines" ;
8898 }
You can’t perform that action at this time.
0 commit comments