We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bb0b2b commit d895c90Copy full SHA for d895c90
1 file changed
core/src/main/java/org/testcontainers/containers/DockerModelRunnerContainer.java
@@ -79,10 +79,20 @@ public DockerModelRunnerContainer withModel(String model) {
79
return this;
80
}
81
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
+ */
87
public String getBaseEndpoint() {
88
return "http://" + getHost() + ":" + getMappedPort(PORT);
89
90
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
96
public String getOpenAIEndpoint() {
97
return getBaseEndpoint() + "/engines";
98
0 commit comments