I’m seeing asterisk when using com.google.ai.client.generativeai:generativeai. Is this for us devs to format the text accordingly?
You mean as in the documentation at Generating content | Gemini API | Google AI for Developers where it says model=models/* for example? That’s indeed a placeholder where the developer puts in a model name string, which you get to choose.
If there were more than one these in the generated text, it’s likely markdown formatted which should be rendered when displaying the result to the user.
Is there a composable (Android) that is able to interpret the markdown? I’m trying to avoid building a parser for it but if there is something that I can use to render my content well formatted I’d rather use it
Checked with an AI model and it recommended Accompanist Markdown.
That’s the general markdown stuff that the AI uses because that’s a little bit what it’s trained on - text chat scenarios with markdown supported.
You need to give it a little bit of context on what it can and can’t do. Try using the system prompt to tell it it can’t use Markdown (if you do not wish to use Markdown on your application)
i ended up using an opened source tool for the markdown! It worked perfectly but, HatKid, I will try this probably on a different project! thank you for the suggestion!