feat: Add LOCAL variable support for responses with UTF-8 JSON encoding.
Description: This feature adds support for UTF-8 encoding in JSON responses, allowing for proper handling of special characters and emojis. - Implement unit tests for UTF-8 encoding in various model providers including Gemini, OpenAI, and OpenAI Compatible. - Validate UTF-8 support in token counting, content generation, and error handling. - Introduce tests for JSON serialization ensuring proper handling of French characters and emojis. - Create tests for language instruction generation based on locale settings. - Validate UTF-8 handling in workflow tools including AnalyzeTool, CodereviewTool, and DebugIssueTool. - Ensure that all tests check for correct UTF-8 character preservation and proper JSON formatting. - Add integration tests to verify the interaction between locale settings and model responses.
This commit is contained in:
@@ -34,7 +34,8 @@ class TestDynamicContextRequests:
|
||||
"status": "files_required_to_continue",
|
||||
"mandatory_instructions": "I need to see the package.json file to understand dependencies",
|
||||
"files_needed": ["package.json", "package-lock.json"],
|
||||
}
|
||||
},
|
||||
ensure_ascii=False
|
||||
)
|
||||
|
||||
mock_provider = create_mock_provider()
|
||||
@@ -174,7 +175,8 @@ class TestDynamicContextRequests:
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
ensure_ascii=False
|
||||
)
|
||||
|
||||
mock_provider = create_mock_provider()
|
||||
@@ -339,7 +341,8 @@ class TestCollaborationWorkflow:
|
||||
"status": "files_required_to_continue",
|
||||
"mandatory_instructions": "I need to see the package.json file to analyze npm dependencies",
|
||||
"files_needed": ["package.json", "package-lock.json"],
|
||||
}
|
||||
},
|
||||
ensure_ascii=False
|
||||
)
|
||||
|
||||
mock_provider = create_mock_provider()
|
||||
@@ -405,7 +408,8 @@ class TestCollaborationWorkflow:
|
||||
"status": "files_required_to_continue",
|
||||
"mandatory_instructions": "I need to see the configuration file to understand the connection settings",
|
||||
"files_needed": ["config.py"],
|
||||
}
|
||||
},
|
||||
ensure_ascii=False
|
||||
)
|
||||
|
||||
mock_provider = create_mock_provider()
|
||||
|
||||
Reference in New Issue
Block a user