data_processor.py aktualisiert
This commit is contained in:
@@ -41,7 +41,6 @@ from helpers import (
|
|||||||
URL_CHECK_MARKER,
|
URL_CHECK_MARKER,
|
||||||
evaluate_branche_chatgpt,
|
evaluate_branche_chatgpt,
|
||||||
get_numeric_filter_value,
|
get_numeric_filter_value,
|
||||||
summarize_batch_openai,
|
|
||||||
initialize_target_schema,
|
initialize_target_schema,
|
||||||
search_linkedin_contacts,
|
search_linkedin_contacts,
|
||||||
is_valid_wikipedia_article_url,
|
is_valid_wikipedia_article_url,
|
||||||
@@ -1486,8 +1485,9 @@ class DataProcessor:
|
|||||||
aggregated_prompt += entry_text
|
aggregated_prompt += entry_text
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Using summarize helper, but it's just a call_openai_chat wrapper
|
# KORREKTUR: Direkter Aufruf des robusten Helpers 'call_openai_chat' aus helpers.py
|
||||||
chat_response = summarize_batch_openai(
|
from helpers import call_openai_chat
|
||||||
|
chat_response = call_openai_chat(
|
||||||
aggregated_prompt, temperature=0.0)
|
aggregated_prompt, temperature=0.0)
|
||||||
if not chat_response:
|
if not chat_response:
|
||||||
raise APIError(
|
raise APIError(
|
||||||
|
|||||||
Reference in New Issue
Block a user