Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
A
aidso-data
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yaowentong
aidso-data
Commits
7a1ad569
Commit
7a1ad569
authored
Jul 14, 2026
by
Yaowentong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ai调用 空摘要不调用
parent
8cceaeeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ai_utils.py
aidso_geo/utils/ai_utils.py
+5
-1
No files found.
aidso_geo/utils/ai_utils.py
View file @
7a1ad569
...
@@ -689,10 +689,14 @@ def ai_get_brand_sentiment_and_mentions_by_articles(brand_name, article_list, ba
...
@@ -689,10 +689,14 @@ def ai_get_brand_sentiment_and_mentions_by_articles(brand_name, article_list, ba
source_id
=
item
.
get
(
"sourceId"
)
source_id
=
item
.
get
(
"sourceId"
)
if
source_id
is
None
:
if
source_id
is
None
:
continue
continue
snippet
=
item
.
get
(
"snippet"
)
# 空值、非字符串、纯空格都不进入大模型
if
not
isinstance
(
snippet
,
str
)
or
not
snippet
.
strip
():
continue
normalized_articles
.
append
({
normalized_articles
.
append
({
"sourceId"
:
str
(
source_id
),
"sourceId"
:
str
(
source_id
),
"snippet"
:
item
.
get
(
"snippet"
,
""
)
or
""
"snippet"
:
snippet
.
strip
()
})
})
if
not
normalized_articles
:
if
not
normalized_articles
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment