Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion api/oss/src/services/evaluators_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,9 @@ async def ai_critique(input: EvaluatorInputInterface) -> EvaluatorOutputInterfac

template_format = parameters.get("template_format") or default_format

response_type = input.settings.get("response_type") or "text"
response_type = input.settings.get("response_type") or (
"json_schema" if template_version == "4" else "text"
)

json_schema = input.settings.get("json_schema") or None

Expand Down
2 changes: 1 addition & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "api"
version = "0.61.1"
version = "0.61.2"
description = "Agenta API"
authors = [
{ name = "Mahmoud Mabrouk", email = "[email protected]" },
Expand Down
4 changes: 3 additions & 1 deletion sdk/agenta/sdk/workflows/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,9 @@ async def auto_ai_critique_v0(
got=model,
)

response_type = parameters.get("response_type") or "text"
response_type = parameters.get("response_type") or (
"json_schema" if template_version == "4" else "text"
)

if not response_type in ["text", "json_object", "json_schema"]:
raise InvalidConfigurationParameterV0Error(
Expand Down
2 changes: 1 addition & 1 deletion sdk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "agenta"
version = "0.61.1"
version = "0.61.2"
description = "The SDK for agenta is an open-source LLMOps platform."
readme = "README.md"
authors = [
Expand Down
2 changes: 1 addition & 1 deletion web/ee/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agenta/ee",
"version": "0.61.1",
"version": "0.61.2",
"private": true,
"engines": {
"node": ">=18"
Expand Down
2 changes: 1 addition & 1 deletion web/oss/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agenta/oss",
"version": "0.61.1",
"version": "0.61.2",
"private": true,
"engines": {
"node": ">=18"
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agenta-web",
"version": "0.61.1",
"version": "0.61.2",
"workspaces": [
"ee",
"oss",
Expand Down
Loading