Skip to content

Commit bb639d0

Browse files
Merge remote-tracking branch 'upstream/hotfixes' into release
2 parents bf35ad8 + 4e0c442 commit bb639d0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pm4py/algo/querying/llm/connectors/anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def apply(prompt: str, parameters: Optional[Dict[Any, Any]] = None) -> str:
4848
image_path = exec_utils.get_param_value(Parameters.IMAGE_PATH, parameters, None)
4949
api_key = exec_utils.get_param_value(Parameters.API_KEY, parameters, constants.ANTHROPIC_API_KEY)
5050
api_url = exec_utils.get_param_value(Parameters.API_URL, parameters, None)
51-
max_tokens = exec_utils.get_param_value(Parameters.MAX_TOKENS, parameters, 4096)
51+
max_tokens = exec_utils.get_param_value(Parameters.MAX_TOKENS, parameters, 8192)
5252
simple_content_specification = image_path is None
5353

5454
if api_url is None:

pm4py/algo/querying/llm/connectors/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def apply(prompt: str, parameters: Optional[Dict[Any, Any]] = None) -> str:
7777
}
7878

7979
if image_path is not None:
80-
max_tokens = exec_utils.get_param_value(Parameters.MAX_TOKENS, parameters, 4096)
80+
max_tokens = exec_utils.get_param_value(Parameters.MAX_TOKENS, parameters, 16384)
8181
image_format = os.path.splitext(image_path)[1][1:].lower()
8282
base64_image = encode_image(image_path)
8383
messages[0]["content"].append({"type": "image_url", "image_url": {"url": f"data:image/{image_format};base64,{base64_image}"}})

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def read_file(filename):
3030
install_requires=read_file("requirements.txt").split("\n"),
3131
project_urls={
3232
'Documentation': 'https://processintelligence.solutions/pm4py/',
33-
'Source': 'https://github.com/pm4py/pm4py-source',
34-
'Tracker': 'https://github.com/pm4py/pm4py-source/issues',
33+
'Source': 'https://github.com/process-intelligence-solutions/pm4py',
34+
'Tracker': 'https://github.com/process-intelligence-solutions/pm4py/issues',
3535
}
3636
)

0 commit comments

Comments
 (0)