Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
fix: print legacy message in bard cookies class
Browse files Browse the repository at this point in the history
  • Loading branch information
dsdanielpark committed Jan 19, 2024
1 parent e4a95ec commit eaf9039
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bardapi/core_cookies.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# The Python file is considered legacy and will only be used up to version 0.1.39.

import os
import re
import string
Expand Down Expand Up @@ -42,6 +44,8 @@ def __init__(
run_code (bool, optional, default = False): Whether to execute code included in the answer (Python only).
token_from_browser (bool, optional, default = False): Whether to extract the token from browser cookies.
"""
print("The BardCookies class is no longer in use.")
print("Please use the Bard class with the 'cookie_dict' and 'multi_cookies_bool' arguments in the Bard constructor.")
self.cookie_dict = cookie_dict or self._get_token(token_from_browser)
self.proxies = proxies
self.timeout = timeout
Expand Down

0 comments on commit eaf9039

Please sign in to comment.