AI Assistant Feature Request

I’ve tried the results of AI Assistant with the prompts provided from the gallery or create my own prompts. In my opinion, the results are good. For the next feature:

  1. Can I request to set my own card color (default: light blue - green - red - yellow)?

  2. When I’m using Android and I click on a card, then I click the back button. Then it takes me to the previous article. Can the back button be made to go back to the current Book and chapter?

(wrong example: Psalm 119 [AI Assistant] → click back → Ephesians 1 [text])

(correct example: Psalm 119 [AI Assistant] → click back → Psalm 119 [text])

and how do I use the Gemini flash API in this AI Assistant feature?

To modify card colours, please go to Appearance > Colors > Main Colors and look at AssistantTaskBackgroundColor1, etc.

Sorry, we do not support Gemini.

Thank you @richard for the information.

@richard If I use a custom provider, does the system use curl or something else?

Which custom provider are you hoping to use? What header, authentication or api-key information does it require?

The provider I use is my own custom model. What is needed in the model is api_key and messages

Your custom model needs to be compatible with the OpenAI Chat Completions API:
https://platform.openai.com/docs/guides/text-generation

Is this what the system wants?

curl “https://api.openai.com/v1/chat/completions
-H “Content-Type: application/json”
-H “Authorization: Bearer $OPENAI_API_KEY”
-d ‘{
“model”: “gpt-4o”,
“messages”: [
{
“role”: “system”,
“content”: “You are a helpful assistant.”
},
{
“role”: “user”,
“content”: “Write a haiku about recursion in programming.”
}
]
}’

Yes, that’s the request format. Your custom API needs to provide a streamed response, compatible with OpenAI streamed chat completion responses.