Comments (2)
Let me know what quote you are referring to.
If necessary, please send it to me via email.
The Bard() class has been designed to be as lightweight as possible, with many features removed. Could you please explain if the functionality you are requesting is essential, widely applicable, and commonly used? Alternatively, if you believe it is a valid addition, please submit a pull request after implementing the feature, and we will consider merging it as needed.
Also, Check if the following is the use case you are referring to.
prefix_command = "Give a random quote"
input_text = "in france"
Bard(token='xxx').get_answer(prefix_command+input_text)
from bard-api.
The requested pull request can be addressed in a simpler way as follows. Code duplication decreases usability and efficiency. In particular, the request and response functions are more important. Additionally, adding unnecessary methods can cause confusion for other users. There are various other reasons, but I recommend using the code as shown below, and I will close this issue.
Furthermore, the translation code in the current pull request has been removed in the PyPI distribution version for reasons of code efficiency and generality.
There were more diverse and advanced features, but they were excluded to enable reuse as a variety of modules. Therefore, I cannot accept the pull request.
Thank you.
quote_number= 1
quote_type= "random"
quote = Bard(token='xxx').get_answer(f"{quote_number} {quote_type} Quote")["content"]
from bard-api.
Related Issues (20)
- ChatBard: token_from_browser HOT 9
- ImportError: cannot import name 'BardCookies' from partially initialized module 'bardapi' (most likely due to a circular import) HOT 6
- Some code errors in README examples , os module import HOT 4
- Bard __SECURE-1PSID does not match HOT 2
- Exception: SNlM0e value not found. Double-check __Secure-1PSID value or pass it as Bard(token='xxxxx') HOT 1
- Google changed the the way "__Secure-1PSID" looks, how to use this package effectively,the cookie values does not end in '.' period now HOT 8
- Multiple-Cookies has been changed. HOT 15
- Image generation HOT 4
- Google renames its chatbot Bard to Gemini HOT 41
- Gemini Ultra? HOT 4
- TooManyRedirects: Exceeded 30 redirects. HOT 1
- Check out this Bard/Gemini project. HOT 2
- Google changed their __Secure-1PSID value stracture HOT 2
- ask_about_image Not working HOT 2
- Cookies refreshing very often and getting 429 all the time HOT 2
- How can automaticly get cookies value in no gui servers? HOT 2
- Please, go to Gemini-API `https://github.com/dsdanielpark/Gemini-API`
- a conversation towards getting advance AI HOT 1
- Reflection on the Bard API Project
- Connecting Geminei to Ads HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bard-api.