Files
OpenManusHiDpiFix/app
minbang930 8535f41215 fix: Add properties to extracted_content object in browser tool schema
The OpenAI API was rejecting function declarations due to empty properties in
the extracted_content object type. This fix adds required properties to comply
with OpenAI's schema requirements:

- Add 'text' property for storing extracted page content
- Add 'metadata' object with 'source' property for content attribution
- Maintain existing functionality while satisfying API schema validation

Error resolved:
"GenerateContentRequest.tools[0].function_declarations[0].parameters.properties[extracted_content].properties: should be non-empty for OBJECT type"
2025-03-20 07:49:46 +09:00
..
2025-03-19 14:12:46 +08:00
2025-03-18 22:51:27 +08:00
2025-03-18 17:56:29 +08:00
2025-03-07 23:27:31 +08:00