Skip to content

Commit 6095558

Browse files
authored
feat: add support of IBM models to AI API (#522)
1 parent 30a75c0 commit 6095558

File tree

3 files changed

+123
-27
lines changed

3 files changed

+123
-27
lines changed

openapi.json

Lines changed: 61 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"url": "http://www.apache.org/licenses/LICENSE-2.0"
1515
},
1616
"version": "2024.0",
17-
"x-box-commit-hash": "f5abf083c2"
17+
"x-box-commit-hash": "6f7e141054"
1818
},
1919
"servers": [
2020
{
@@ -25345,18 +25345,7 @@
2534525345
"minimum": 1
2534625346
},
2534725347
"llm_endpoint_params": {
25348-
"description": "The parameters for the LLM endpoint specific to OpenAI / Google models.",
25349-
"oneOf": [
25350-
{
25351-
"$ref": "#/components/schemas/AiLlmEndpointParamsOpenAi"
25352-
},
25353-
{
25354-
"$ref": "#/components/schemas/AiLlmEndpointParamsGoogle"
25355-
},
25356-
{
25357-
"$ref": "#/components/schemas/AiLlmEndpointParamsAWS"
25358-
}
25359-
]
25348+
"$ref": "#/components/schemas/AiLlmEndpointParams"
2536025349
}
2536125350
},
2536225351
"title": "AI agent basic text tool",
@@ -26006,6 +25995,25 @@
2600625995
],
2600725996
"title": "AI Item Ask"
2600825997
},
25998+
"AiLlmEndpointParams": {
25999+
"description": "The parameters for the LLM endpoint specific to a model.",
26000+
"type": "object",
26001+
"oneOf": [
26002+
{
26003+
"$ref": "#/components/schemas/AiLlmEndpointParamsOpenAi"
26004+
},
26005+
{
26006+
"$ref": "#/components/schemas/AiLlmEndpointParamsGoogle"
26007+
},
26008+
{
26009+
"$ref": "#/components/schemas/AiLlmEndpointParamsAWS"
26010+
},
26011+
{
26012+
"$ref": "#/components/schemas/AiLlmEndpointParamsIBM"
26013+
}
26014+
],
26015+
"title": "AI LLM endpoint parameters"
26016+
},
2600926017
"AiLlmEndpointParamsAWS": {
2601026018
"description": "AI LLM endpoint params AWS object",
2601126019
"type": "object",
@@ -26086,6 +26094,46 @@
2608626094
"title": "AI LLM endpoint params Google",
2608726095
"x-box-resource-id": "ai_llm_endpoint_params_google"
2608826096
},
26097+
"AiLlmEndpointParamsIBM": {
26098+
"description": "AI LLM endpoint params IBM object",
26099+
"type": "object",
26100+
"properties": {
26101+
"type": {
26102+
"description": "The type of the AI LLM endpoint params object for IBM.\nThis parameter is **required**.",
26103+
"type": "string",
26104+
"example": "ibm_params",
26105+
"enum": [
26106+
"ibm_params"
26107+
],
26108+
"nullable": false
26109+
},
26110+
"temperature": {
26111+
"description": "What sampling temperature to use, between 0 and 1. Higher values like 0.8 will make the output more random, \nwhile lower values like 0.2 will make it more focused and deterministic. \nWe generally recommend altering this or `top_p` but not both.",
26112+
"type": "number",
26113+
"example": 0.5,
26114+
"nullable": true
26115+
},
26116+
"top_p": {
26117+
"description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results \nof the tokens with `top_p` probability mass. So 0.1 means only the tokens comprising the top 10% probability \nmass are considered. We generally recommend altering this or temperature but not both.",
26118+
"type": "number",
26119+
"example": 0.5,
26120+
"maximum": 1,
26121+
"minimum": 0.1,
26122+
"nullable": true
26123+
},
26124+
"top_k": {
26125+
"description": "`Top-K` changes how the model selects tokens for output. A `top-K` of 1 means the next selected token is\nthe most probable among all tokens in the model's vocabulary (also called greedy decoding),\nwhile a `top-K` of 3 means that the next token is selected from among the three most probable tokens by using temperature.",
26126+
"type": "number",
26127+
"example": 1,
26128+
"nullable": true
26129+
}
26130+
},
26131+
"required": [
26132+
"type"
26133+
],
26134+
"title": "AI LLM endpoint params IBM",
26135+
"x-box-resource-id": "ai_llm_endpoint_params_ibm"
26136+
},
2608926137
"AiLlmEndpointParamsOpenAi": {
2609026138
"description": "AI LLM endpoint params OpenAI object.",
2609126139
"type": "object",

openapi/openapi-v2025.0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"url": "http://www.apache.org/licenses/LICENSE-2.0"
1515
},
1616
"version": "2025.0",
17-
"x-box-commit-hash": "f5abf083c2"
17+
"x-box-commit-hash": "6f7e141054"
1818
},
1919
"servers": [
2020
{

openapi/openapi.json

Lines changed: 61 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"url": "http://www.apache.org/licenses/LICENSE-2.0"
1515
},
1616
"version": "2024.0",
17-
"x-box-commit-hash": "f5abf083c2"
17+
"x-box-commit-hash": "6f7e141054"
1818
},
1919
"servers": [
2020
{
@@ -25345,18 +25345,7 @@
2534525345
"minimum": 1
2534625346
},
2534725347
"llm_endpoint_params": {
25348-
"description": "The parameters for the LLM endpoint specific to OpenAI / Google models.",
25349-
"oneOf": [
25350-
{
25351-
"$ref": "#/components/schemas/AiLlmEndpointParamsOpenAi"
25352-
},
25353-
{
25354-
"$ref": "#/components/schemas/AiLlmEndpointParamsGoogle"
25355-
},
25356-
{
25357-
"$ref": "#/components/schemas/AiLlmEndpointParamsAWS"
25358-
}
25359-
]
25348+
"$ref": "#/components/schemas/AiLlmEndpointParams"
2536025349
}
2536125350
},
2536225351
"title": "AI agent basic text tool",
@@ -26006,6 +25995,25 @@
2600625995
],
2600725996
"title": "AI Item Ask"
2600825997
},
25998+
"AiLlmEndpointParams": {
25999+
"description": "The parameters for the LLM endpoint specific to a model.",
26000+
"type": "object",
26001+
"oneOf": [
26002+
{
26003+
"$ref": "#/components/schemas/AiLlmEndpointParamsOpenAi"
26004+
},
26005+
{
26006+
"$ref": "#/components/schemas/AiLlmEndpointParamsGoogle"
26007+
},
26008+
{
26009+
"$ref": "#/components/schemas/AiLlmEndpointParamsAWS"
26010+
},
26011+
{
26012+
"$ref": "#/components/schemas/AiLlmEndpointParamsIBM"
26013+
}
26014+
],
26015+
"title": "AI LLM endpoint parameters"
26016+
},
2600926017
"AiLlmEndpointParamsAWS": {
2601026018
"description": "AI LLM endpoint params AWS object",
2601126019
"type": "object",
@@ -26086,6 +26094,46 @@
2608626094
"title": "AI LLM endpoint params Google",
2608726095
"x-box-resource-id": "ai_llm_endpoint_params_google"
2608826096
},
26097+
"AiLlmEndpointParamsIBM": {
26098+
"description": "AI LLM endpoint params IBM object",
26099+
"type": "object",
26100+
"properties": {
26101+
"type": {
26102+
"description": "The type of the AI LLM endpoint params object for IBM.\nThis parameter is **required**.",
26103+
"type": "string",
26104+
"example": "ibm_params",
26105+
"enum": [
26106+
"ibm_params"
26107+
],
26108+
"nullable": false
26109+
},
26110+
"temperature": {
26111+
"description": "What sampling temperature to use, between 0 and 1. Higher values like 0.8 will make the output more random, \nwhile lower values like 0.2 will make it more focused and deterministic. \nWe generally recommend altering this or `top_p` but not both.",
26112+
"type": "number",
26113+
"example": 0.5,
26114+
"nullable": true
26115+
},
26116+
"top_p": {
26117+
"description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results \nof the tokens with `top_p` probability mass. So 0.1 means only the tokens comprising the top 10% probability \nmass are considered. We generally recommend altering this or temperature but not both.",
26118+
"type": "number",
26119+
"example": 0.5,
26120+
"maximum": 1,
26121+
"minimum": 0.1,
26122+
"nullable": true
26123+
},
26124+
"top_k": {
26125+
"description": "`Top-K` changes how the model selects tokens for output. A `top-K` of 1 means the next selected token is\nthe most probable among all tokens in the model's vocabulary (also called greedy decoding),\nwhile a `top-K` of 3 means that the next token is selected from among the three most probable tokens by using temperature.",
26126+
"type": "number",
26127+
"example": 1,
26128+
"nullable": true
26129+
}
26130+
},
26131+
"required": [
26132+
"type"
26133+
],
26134+
"title": "AI LLM endpoint params IBM",
26135+
"x-box-resource-id": "ai_llm_endpoint_params_ibm"
26136+
},
2608926137
"AiLlmEndpointParamsOpenAi": {
2609026138
"description": "AI LLM endpoint params OpenAI object.",
2609126139
"type": "object",

0 commit comments

Comments
 (0)