mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
reverted random change to contents.py
This commit is contained in:
@@ -54,23 +54,11 @@ class ExaContentsBlock(Block):
|
||||
}
|
||||
|
||||
# Convert ContentSettings to API format
|
||||
contents_dict = input_data.contents.model_dump()
|
||||
payload = {
|
||||
"ids": input_data.ids,
|
||||
"text": {
|
||||
"maxCharacters": contents_dict["text"]["max_characters"],
|
||||
"includeHtmlTags": contents_dict["text"]["include_html_tags"],
|
||||
},
|
||||
"highlights": {
|
||||
"numSentences": contents_dict["highlights"]["num_sentences"],
|
||||
"highlightsPerUrl": contents_dict["highlights"]["highlights_per_url"],
|
||||
"query": contents_dict["summary"][
|
||||
"query"
|
||||
], # Note: query comes from summary
|
||||
},
|
||||
"summary": {
|
||||
"query": contents_dict["summary"]["query"],
|
||||
},
|
||||
"text": input_data.contents.text,
|
||||
"highlights": input_data.contents.highlights,
|
||||
"summary": input_data.contents.summary,
|
||||
}
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user