elan
October 22, 2024, 3:12am
1
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:
Can I request to set my own card color (default: light blue - green - red - yellow)?
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])
elan
October 23, 2024, 4:07am
2
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.
elan
October 29, 2024, 4:13am
5
Thank you @richard for the information.
elan
October 29, 2024, 4:40am
6
@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?
elan
November 4, 2024, 12:46am
8
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
elan
November 5, 2024, 2:26am
10
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.”
}
]
}’
richard
November 8, 2024, 9:29am
11
Yes, that’s the request format. Your custom API needs to provide a streamed response, compatible with OpenAI streamed chat completion responses.