diff --git a/dspy/adapters/chat_adapter.py b/dspy/adapters/chat_adapter.py index e51e90d68..ded4abd6b 100644 --- a/dspy/adapters/chat_adapter.py +++ b/dspy/adapters/chat_adapter.py @@ -316,7 +316,7 @@ def field_metadata(field_name, field_info): f"must exactly match (no extra characters) one of: {'; '.join([str(x) for x in field_type.__args__])}" ) else: - desc = "must be pareseable according to the following JSON schema: " + desc = "must be parseable according to the following JSON schema: " desc += json.dumps(prepare_schema(field_type), ensure_ascii=False) desc = (" " * 8) + f"# note: the value you produce {desc}" if desc else "" diff --git a/dspy/adapters/json_adapter.py b/dspy/adapters/json_adapter.py index a2fbcd555..0ed1c0469 100644 --- a/dspy/adapters/json_adapter.py +++ b/dspy/adapters/json_adapter.py @@ -273,7 +273,7 @@ def field_metadata(field_name, field_info): elif hasattr(type_, "__origin__") and type_.__origin__ is Literal: desc = f"must be one of: {'; '.join([str(x) for x in type_.__args__])}" else: - desc = "must be pareseable according to the following JSON schema: " + desc = "must be parseable according to the following JSON schema: " desc += json.dumps(pydantic.TypeAdapter(type_).json_schema()) desc = (" " * 8) + f"# note: the value you produce {desc}" if desc else ""