Skip to content

Commit 190d22f

Browse files
committed
Renaming class from RemoateImageModel.java to RemoteImageModel.java
1 parent b5c1350 commit 190d22f

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The supported models:
1111

1212
1. Import the core jar file OR maven dependency (check the Integration section).
1313
2. Add Gson dependency if using the jar file; otherwise, it's handled by maven or Gradle.
14-
3. Call the ``RemoteLanguageModel`` for the language models and ``RemoateImageModel`` for image generation.
14+
3. Call the ``RemoteLanguageModel`` for the language models and ``RemoteImageModel`` for image generation.
1515

1616
## Integration
1717
The package released to [Maven Central Repository](https://central.sonatype.dev/artifact/io.github.barqawiz/intellijava.core/0.6.0).
@@ -58,7 +58,7 @@ Output:```Inception follows Dom Cobb, a professional thief, who is offered a cha
5858
**Image generation code** (2 steps):
5959
```java
6060
// 1- initiate the remote image model
61-
RemoateImageModel imageModel = new RemoateImageModel(apiKey, "openai");
61+
RemoteImageModel imageModel = new RemoteImageModel(apiKey, "openai");
6262

6363
// 2- call generateImages with any command !
6464
ImageModelInput imageInput = new ImageModelInput.Builder("teddy writing a blog in times square")

core/com.intellijava.core/pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
1919
</license>
2020
</licenses>
21-
21+
2222
<developers>
2323
<developer>
2424
<name>Ahmad Albarqawi</name>
@@ -27,13 +27,13 @@
2727
<organizationUrl>http://www.ahmadai.com</organizationUrl>
2828
</developer>
2929
</developers>
30-
30+
3131
<scm>
3232
<connection>scm:git:git://github.com/Barqawiz/IntelliJava.git</connection>
3333
<developerConnection>scm:git:ssh://github.com:Barqawiz/IntelliJava.git</developerConnection>
3434
<url>https://github.com/Barqawiz/IntelliJava</url>
3535
</scm>
36-
36+
3737
<properties>
3838
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3939
<maven.compiler.source>11</maven.compiler.source>
@@ -112,10 +112,10 @@
112112
<artifactId>maven-project-info-reports-plugin</artifactId>
113113
<version>3.0.0</version>
114114
</plugin>
115-
115+
116116
</plugins>
117117
</pluginManagement>
118-
118+
119119
<plugins>
120120
<!-- GPG Signed Components -->
121121
<plugin>
@@ -152,7 +152,7 @@
152152
<executions>
153153
<execution>
154154
<id>attach-sources</id>
155-
155+
156156
<goals>
157157
<goal>jar-no-fork</goal>
158158
</goals>

core/com.intellijava.core/src/main/java/com/intellijava/core/controller/RemoateImageModel.java renamed to core/com.intellijava.core/src/main/java/com/intellijava/core/controller/RemoteImageModel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*
3535
* @author github.com/Barqawiz
3636
*/
37-
public class RemoateImageModel {
37+
public class RemoteImageModel {
3838

3939
private String keyType;
4040
private OpenAIWrapper openaiWrapper;
@@ -51,7 +51,7 @@ public class RemoateImageModel {
5151
* @throws IllegalArgumentException if the keyType passed is not "openai".
5252
*
5353
*/
54-
public RemoateImageModel(String keyValue, String keyType) {
54+
public RemoteImageModel(String keyValue, String keyType) {
5555

5656
if (keyType.isEmpty() || keyType.equals("openai")) {
5757
this.keyType = "openai";

core/com.intellijava.core/src/test/java/com/intellijava/core/OpenaiModelConnectionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.util.List;
2424
import java.util.Map;
2525
import org.junit.Test;
26-
import com.intellijava.core.controller.RemoateImageModel;
26+
import com.intellijava.core.controller.RemoteImageModel;
2727
import com.intellijava.core.controller.RemoteLanguageModel;
2828
import com.intellijava.core.model.OpenaiImageResponse;
2929
import com.intellijava.core.model.OpenaiImageResponse.Data;
@@ -122,7 +122,7 @@ public void testOpenaiImageRemoteModel() {
122122

123123
try {
124124

125-
RemoateImageModel wrapper = new RemoateImageModel(openaiKey, "openai");
125+
RemoteImageModel wrapper = new RemoteImageModel(openaiKey, "openai");
126126
ImageModelInput input = new ImageModelInput.Builder(prompt)
127127
.setNumberOfImages(2).setImageSize("1024x1024").build();
128128

sample_code/src/com/intelliJava/test/OpenaiApp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import java.io.IOException;
1919
import java.util.List;
20-
import com.intellijava.core.controller.RemoateImageModel;
20+
import com.intellijava.core.controller.RemoteImageModel;
2121
import com.intellijava.core.controller.RemoteLanguageModel;
2222
import com.intellijava.core.model.input.ImageModelInput;
2323
import com.intellijava.core.model.input.LanguageModelInput;
@@ -73,7 +73,7 @@ private static void tryTheLanguageModel(String apiKey) throws IOException {
7373

7474
private static void tryTheImageModel(String apiKey) throws IOException {
7575
// initiate the remote image model wrapper
76-
RemoateImageModel imageModel = new RemoateImageModel(apiKey, "openai");
76+
RemoteImageModel imageModel = new RemoteImageModel(apiKey, "openai");
7777

7878
// prepare the input parameters
7979
ImageModelInput imageInput = new ImageModelInput.Builder("teddy writing a blog in times square")

0 commit comments

Comments
 (0)