Git Product home page Git Product logo

Comments (2)

dsdanielpark avatar dsdanielpark commented on May 19, 2024

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.

dsdanielpark avatar dsdanielpark commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.