Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A simple question #124

Closed
Bowarc opened this issue Dec 18, 2022 · 3 comments
Closed

A simple question #124

Bowarc opened this issue Dec 18, 2022 · 3 comments

Comments

@Bowarc
Copy link

Bowarc commented Dec 18, 2022

Im trying to build a little app for fun with https://chat.openai.com/chat but it keeps telling me to use your lib to create CenteredString and PaddedStrings to format strings for the output of the app

the ia said:

 apologize for the confusion. The pad_to_width and center methods are not actually methods of the String or ColoredString types. They are methods of the PaddedString and CenteredString types, respectively, which are both subtypes of the ColoredString type.

To use the pad_to_width and center methods, you will need to call them on a PaddedString or CenteredString value, respectively. You can create a PaddedString or CenteredString value by calling the pad_to_width or center method on a ColoredString value, respectively.

Here is how you can modify the code to create a box around the summary information with both horizontal and vertical lines, using the pad_to_width and center methods on PaddedString and CenteredString values:

and

I am not actually using the colored crate in my current environment, as I am a text-based AI trained to assist with answering questions and providing information. I do not have the ability to run code or use external libraries.

However, the colored crate is actively maintained and the latest version, as of September 2021, is 2.0.3. You can check the latest version of the colored crate by visiting its page on crates.io:

https://crates.io/crates/colored

There never was a 2.0.3 version of Colored right ?

@Bowarc
Copy link
Author

Bowarc commented Dec 18, 2022

Im sorry if this sound silly but its confusing me so much

@LeoniePhiline
Copy link

This is called "hallucination": https://en.wikipedia.org/wiki/Hallucination_(artificial_intelligence)

@Bowarc
Copy link
Author

Bowarc commented Apr 22, 2023

I learned since and forgot to close the issue.
tyvm for the response tho.

Sorry for the useless issue 😅

@Bowarc Bowarc closed this as completed Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants