Skip to content

Commit

Permalink
Made Mock ChatGPT and Whisper Files
Browse files Browse the repository at this point in the history
  • Loading branch information
efentress2025 committed Dec 6, 2023
1 parent 530787a commit 4696c49
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/src/main/java/cse/gradle/Server/APIs/MockGPT.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package cse.gradle.Server.APIs;

public class MockGPT implements ChatGPTApi {
public String[] generateResponse(String mealType, String ingredients) throws Exception {
String[] response = new String[4];

response[0] = "title";
response[1] = mealType;
response[2] = ingredients;
response[3] = "instructions";

return response;
}
}
9 changes: 9 additions & 0 deletions app/src/main/java/cse/gradle/Server/APIs/MockWhisper.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package cse.gradle.Server.APIs;

public class MockWhisper implements WhisperApi {
@Override
public String generateResponse(String filePath) throws Exception {
return "response";
}

}

0 comments on commit 4696c49

Please sign in to comment.