Bugfix Ergebnisse wurden alle in eine Zelle ausgegeben. sollten jetzt in mehrere Zellen ausgegeben w

This commit is contained in:
2025-03-29 21:28:39 +00:00
parent 7843348911
commit 531c2f3693

View File

@@ -135,7 +135,8 @@ def classify_company(row):
messages=[system_prompt, user_prompt],
temperature=0
)
parts = [v.strip().strip('"') for v in response.choices[0].message.content.strip().split(";", 7)]
text = response.choices[0].message.content.strip()
parts = [v.strip().strip('"') for v in text.split(";")]
while len(parts) < 8:
parts.append("k.A.")
return parts