Skip to content

Commit

Permalink
Rename the openapi_service.bal to mock_service.bal and Add the new ge…
Browse files Browse the repository at this point in the history
…nerated type into it
  • Loading branch information
KATTA-00 committed Aug 12, 2024
1 parent e6c7012 commit ee6e5fa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@
import ballerina/http;
import ballerina/log;

public type OkFineTuningJob record {|
*http:Ok;
FineTuningJob body;
map<string|string[]> headers;
|};

public type OkOpenAIFile record {|
*http:Ok;
OpenAIFile body;
map<string|string[]> headers;
|};

listener http:Listener httpListener = new (9090);

http:Service mockService = service object {
Expand Down Expand Up @@ -438,4 +450,4 @@ function init() returns error? {
log:printInfo("Initiating mock server");
check httpListener.attach(mockService, "/");
check httpListener.'start();
}
}
12 changes: 0 additions & 12 deletions ballerina/types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,6 @@ public type ListFineTuningJobCheckpointsResponse record {
boolean has_more;
};

public type OkFineTuningJob record {|
*http:Ok;
FineTuningJob body;
map<string|string[]> headers;
|};

public type DeleteModelResponse record {
string id;
boolean deleted;
Expand Down Expand Up @@ -306,12 +300,6 @@ public type CreateFineTuningJobRequest_integrations record {
CreateFineTuningJobRequest_wandb wandb;
};

public type OkOpenAIFile record {|
*http:Ok;
OpenAIFile body;
map<string|string[]> headers;
|};

public type ListModelsResponse record {
"list" 'object;
Model[] data;
Expand Down

0 comments on commit ee6e5fa

Please sign in to comment.