Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nadheesh committed Feb 15, 2024
1 parent c6c64a7 commit 183f9fa
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions ballerina/tests/openapi_utils_test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ function testExtractToolsFromOpenAPISpecJSONFile2() returns error? {
},
suffix: {'type: "string"},
max_tokens: {'type: "integer"},
temperature: {'type: "float"},
top_p: {'type: "float"},
temperature: {'type: "number"},
top_p: {'type: "number"},
n: {'type: "integer"},
'stream: {'type: "boolean"},
logprobs: {'type: "integer"},
echo: {'type: "boolean"},
stop: {oneOf: [{'type: "string"}, {'type: "array", items: {'type: "string"}}]},
presence_penalty: {'type: "float"},
frequency_penalty: {'type: "float"},
presence_penalty: {'type: "number"},
frequency_penalty: {'type: "number"},
best_of: {'type: "integer"},
logit_bias: {'type: "object", properties: {}},
user: {'type: "string"}
Expand Down Expand Up @@ -289,14 +289,14 @@ function testExtractToolsFromOpenAPISpecJSONFile2() returns error? {
properties: {role: {'type: "string", 'enum: ["system", "user", "assistant"]}, content: {'type: "string"}, name: {'type: "string"}}
}
},
temperature: {'type: "float"},
top_p: {'type: "float"},
temperature: {'type: "number"},
top_p: {'type: "number"},
n: {'type: "integer"},
'stream: {'type: "boolean"},
stop: {"oneOf": [{'type: "string"}, {'type: "array", items: {'type: "string"}}]},
max_tokens: {'type: "integer"},
presence_penalty: {'type: "float"},
frequency_penalty: {'type: "float"},
presence_penalty: {'type: "number"},
frequency_penalty: {'type: "number"},
logit_bias: {'type: "object", properties: {}},
user: {'type: "string"}
},
Expand Down Expand Up @@ -378,10 +378,10 @@ function testExtractToolsFromOpenAPISpecJSONFile3() returns error? {
"type": "integer"
},
"temperature": {
"type": "float"
"type": "number"
},
"top_p": {
"type": "float"
"type": "number"
},
"n": {
"type": "integer"
Expand Down Expand Up @@ -417,10 +417,10 @@ function testExtractToolsFromOpenAPISpecJSONFile3() returns error? {
]
},
"presence_penalty": {
"type": "float"
"type": "number"
},
"frequency_penalty": {
"type": "float"
"type": "number"
},
"best_of": {
"type": "integer"
Expand Down Expand Up @@ -491,7 +491,7 @@ function testExtractToolsFromOpenAPISpecJSONFile3() returns error? {
}
},
"@temperature": {
"type": "float"
"type": "number"
},
"top:top_p": {
"type": "object",
Expand All @@ -500,7 +500,7 @@ function testExtractToolsFromOpenAPISpecJSONFile3() returns error? {
"const": "http://openai.com/docs/1.0/parameters"
},
"#content": {
"type": "float"
"type": "number"
}
}
},
Expand All @@ -527,10 +527,10 @@ function testExtractToolsFromOpenAPISpecJSONFile3() returns error? {
"type": "integer"
},
"presence_penalty": {
"type": "float"
"type": "number"
},
"frequency_penalty": {
"type": "float"
"type": "number"
},
"logit_bias": {
"type": "object",
Expand Down

0 comments on commit 183f9fa

Please sign in to comment.