From ee6e5fa939168a3bc8fd86a35a682370821fc679 Mon Sep 17 00:00:00 2001 From: KATTA-00 Date: Mon, 12 Aug 2024 14:22:00 +0530 Subject: [PATCH] Rename the openapi_service.bal to mock_service.bal and Add the new generated type into it --- .../{openapi_service.bal => mock_service.bal} | 14 +++++++++++++- ballerina/types.bal | 12 ------------ 2 files changed, 13 insertions(+), 13 deletions(-) rename ballerina/tests/{openapi_service.bal => mock_service.bal} (98%) diff --git a/ballerina/tests/openapi_service.bal b/ballerina/tests/mock_service.bal similarity index 98% rename from ballerina/tests/openapi_service.bal rename to ballerina/tests/mock_service.bal index 92fca8b..0dc59f6 100644 --- a/ballerina/tests/openapi_service.bal +++ b/ballerina/tests/mock_service.bal @@ -20,6 +20,18 @@ import ballerina/http; import ballerina/log; +public type OkFineTuningJob record {| + *http:Ok; + FineTuningJob body; + map headers; +|}; + +public type OkOpenAIFile record {| + *http:Ok; + OpenAIFile body; + map headers; +|}; + listener http:Listener httpListener = new (9090); http:Service mockService = service object { @@ -438,4 +450,4 @@ function init() returns error? { log:printInfo("Initiating mock server"); check httpListener.attach(mockService, "/"); check httpListener.'start(); -} +} \ No newline at end of file diff --git a/ballerina/types.bal b/ballerina/types.bal index 9212cdf..093632d 100644 --- a/ballerina/types.bal +++ b/ballerina/types.bal @@ -168,12 +168,6 @@ public type ListFineTuningJobCheckpointsResponse record { boolean has_more; }; -public type OkFineTuningJob record {| - *http:Ok; - FineTuningJob body; - map headers; -|}; - public type DeleteModelResponse record { string id; boolean deleted; @@ -306,12 +300,6 @@ public type CreateFineTuningJobRequest_integrations record { CreateFineTuningJobRequest_wandb wandb; }; -public type OkOpenAIFile record {| - *http:Ok; - OpenAIFile body; - map headers; -|}; - public type ListModelsResponse record { "list" 'object; Model[] data;