Skip to content

Commit 6db86a0

Browse files
committed
1.3.5 - allow custom model ID for OpenAI compatible servers
1 parent 4a0ab69 commit 6db86a0

File tree

7 files changed

+77
-2
lines changed

7 files changed

+77
-2
lines changed

bpm-ai-connectors-c8/bpm_ai_connectors_c8/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def model_id_to_llm(
5353
elif model_id == "azure-openai":
5454
return ChatOpenAI.for_azure(endpoint=kwargs["model_endpoint"])
5555
elif model_id == "openai-compatible":
56-
return ChatOpenAI.for_openai_compatible(endpoint=kwargs["model_endpoint"])
56+
return ChatOpenAI.for_openai_compatible(endpoint=kwargs["model_endpoint"], model=kwargs["custom_llm"])
5757
elif model_id.startswith("claude"):
5858
return ChatAnthropic.for_anthropic(model=model_id)
5959
elif model_id.startswith("groq"):

bpm-ai-connectors-c8/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "bpm-ai-connectors-c8"
3-
version = "1.3.4"
3+
version = "1.3.5"
44
description = "AI connectors for Camunda 8 based on the bpm-ai project."
55
authors = ["Bennet Krause <bennet.krause@holisticon.de>"]
66
repository = "https://github.com/holunda-io/bpm-ai-connectors-camunda-8"

bpmn/.camunda/element-templates/bpm-ai-connector-compose.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,21 @@
107107
"equals": "local-llm"
108108
}
109109
},
110+
{
111+
"label": "Model ID",
112+
"group": "model",
113+
"type": "String",
114+
"value": "",
115+
"feel": "optional",
116+
"binding": {
117+
"type": "zeebe:input",
118+
"name": "custom_llm"
119+
},
120+
"condition": {
121+
"property": "llm",
122+
"equals": "openai-compatible"
123+
}
124+
},
110125
{
111126
"label": "Endpoint",
112127
"group": "model",

bpmn/.camunda/element-templates/bpm-ai-connector-decide.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,21 @@
109109
"equals": "local-llm"
110110
}
111111
},
112+
{
113+
"label": "Model ID",
114+
"group": "model",
115+
"type": "String",
116+
"value": "",
117+
"feel": "optional",
118+
"binding": {
119+
"type": "zeebe:input",
120+
"name": "custom_llm"
121+
},
122+
"condition": {
123+
"property": "llm",
124+
"equals": "openai-compatible"
125+
}
126+
},
112127
{
113128
"label": "Endpoint",
114129
"group": "model",

bpmn/.camunda/element-templates/bpm-ai-connector-extract.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,21 @@
112112
"equals": "local-llm"
113113
}
114114
},
115+
{
116+
"label": "Model ID",
117+
"group": "model",
118+
"type": "String",
119+
"value": "",
120+
"feel": "optional",
121+
"binding": {
122+
"type": "zeebe:input",
123+
"name": "custom_llm"
124+
},
125+
"condition": {
126+
"property": "llm",
127+
"equals": "openai-compatible"
128+
}
129+
},
115130
{
116131
"label": "Endpoint",
117132
"group": "model",

bpmn/.camunda/element-templates/bpm-ai-connector-generic.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,21 @@
107107
"equals": "local-llm"
108108
}
109109
},
110+
{
111+
"label": "Model ID",
112+
"group": "model",
113+
"type": "String",
114+
"value": "",
115+
"feel": "optional",
116+
"binding": {
117+
"type": "zeebe:input",
118+
"name": "custom_llm"
119+
},
120+
"condition": {
121+
"property": "llm",
122+
"equals": "openai-compatible"
123+
}
124+
},
110125
{
111126
"label": "Endpoint",
112127
"group": "model",

bpmn/.camunda/element-templates/bpm-ai-connector-translate.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,21 @@
108108
"equals": "local-llm"
109109
}
110110
},
111+
{
112+
"label": "Model ID",
113+
"group": "model",
114+
"type": "String",
115+
"value": "",
116+
"feel": "optional",
117+
"binding": {
118+
"type": "zeebe:input",
119+
"name": "custom_llm"
120+
},
121+
"condition": {
122+
"property": "llm",
123+
"equals": "openai-compatible"
124+
}
125+
},
111126
{
112127
"label": "Endpoint",
113128
"group": "model",

0 commit comments

Comments
 (0)