Git Product home page Git Product logo

Comments (11)

joydisette avatar joydisette commented on June 19, 2024 3

@ehfehsan Based on the #PR You can chose one of the following (from the init file on line 30)

AvatarStyle = Literal[
    "adventurer",
    "adventurer-neutral",
    "avataaars",
    "avataaars-neutral",
    "big-ears",
    "big-ears-neutral",
    "big-smile",
    "bottts",
    "bottts-neutral",
    "croodles",
    "croodles-neutral",
    "fun-emoji",
    "icons",
    "identicon",
    "initials",
    "lorelei",
    "lorelei-neutral",
    "micah",
    "miniavs",
    "open-peeps",
    "personas",
    "pixel-art",
    "pixel-art-neutral",
    "shapes",
    "thumbs",
]

Now message takes a avatar_style parameter as follows :
message( is_user=True, avatar_style = "adventurer" )

from st-chat.

0toshigami avatar 0toshigami commented on June 19, 2024 2

Hi,

I am trying to add custom avatars to this, I go in to frontend/src/stChat.tsx and change avatarUrl, but my changes are not getting saved. Any idea on how to do this?

You have to build the source code

from st-chat.

YashVardhan-AI avatar YashVardhan-AI commented on June 19, 2024 2

Merged
@ahmadassaf

from st-chat.

ehfehsan avatar ehfehsan commented on June 19, 2024 2

Hi,
this a great option. thanks for that.
Can you send a sample code for loading png file as the avatar?
I tried pass avatar_style and it adds a prefix Get: /5.x/ to the pnc address and cannot load it.
Thanks in advance.

from st-chat.

Klaudioz avatar Klaudioz commented on June 19, 2024 1

I'd love to be able to change the icons. Also ,the screenshot in the readme is showing different one from the default ones.

from st-chat.

ahmadassaf avatar ahmadassaf commented on June 19, 2024 1

did a quick PR that allow me to pass a custom URL image as an Avatar #34

from st-chat.

vshankarathota avatar vshankarathota commented on June 19, 2024

Hey can you let us know how to build the source code? Been having issues with the npm build and python setup.py install commands.

from st-chat.

0toshigami avatar 0toshigami commented on June 19, 2024

@vshankarathota Could you please tell me more in detail about the issues you're having with the npm build and python setup.py ?

from st-chat.

imSrbh avatar imSrbh commented on June 19, 2024

@YashVardhan-AI can you please help on this part?

from st-chat.

YashVardhan-AI avatar YashVardhan-AI commented on June 19, 2024

@yashppawar will help you better

from st-chat.

yashppawar avatar yashppawar commented on June 19, 2024

@imSrbh as of now it can't be done directly, you can surely build from source if you want

If you are talking about screenshot, it is because the url was changed for API of dicebear, so with the same i updated default seed.

from st-chat.

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.