Skip to content

Fix: Replace deprecated predict_and_parse with predict#70

Open
bigbensworld wants to merge 1 commit intogkamradt:mainfrom
bigbensworld:fix/predict-and-parse-deprecation
Open

Fix: Replace deprecated predict_and_parse with predict#70
bigbensworld wants to merge 1 commit intogkamradt:mainfrom
bigbensworld:fix/predict-and-parse-deprecation

Conversation

@bigbensworld
Copy link
Copy Markdown

Summary

Fixed Issue #61: The predict_and_parse method is deprecated and causes TypeError.

Changes

  • Replaced all instances of chain.predict_and_parse(text=text)['data'] with chain.predict(text=text)['data']
  • Updated in Expert Structured Output (Using Kor).ipynb notebook
  • Resolves the TypeError mentioned in the issue

Testing

The fix follows the solution suggested in the issue comments:

# Old (deprecated) chain.predict_and_parse(text=text)['data'] # New (correct) chain.predict(text=text)['data']

Fixes #61

…ctured Output notebook - Fixed Issue gkamradt#61: predict_and_parse is deprecated - Changed all instances from chain.predict_and_parse(text=...) to chain.predict(text=...) - This resolves the TypeError and updates code to use current API Fixes gkamradt#61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant