fulcro

michaelwhitford 2024-10-18T14:49:54.362529Z

Are there any examples of using a Component without an ident? I have a query that will produce an ident after it generates some data, but you cannot query by ident. You have to feed the query some text, to then get the map back that has a generated id as ident.

michaelwhitford 2024-10-18T14:55:28.756019Z

[{[:prompt/content "What is your name?"] [:localai/chat-completion]}]
;=>
{[:prompt/content "What is your name?"]
 {:localai/chat-completion
  {:chat-completion/created 1729263293,
   :chat-completion/object "chat.completion",
   :chat-completion/id "88c61563-d1fa-41ac-b068-f58c7d414bd6",
   :chat-completion/model "mistral-nemo-instruct",
   :chat-completion/choices
   [{:choice/index 0,
     :choice/finish_reason "stop",
     :choice/message
     {:message/role "assistant",
      :message/content "\nI am called gail.\n",
      :message/id #uuid "0192a01f-d53d-8ba8-baef-901d4c622011"},
     :choice/id #uuid "0192a01f-d53d-8ba8-baef-901d4c622012"}],
   :chat-completion/usage
   {:usage/prompt_tokens 27,
    :usage/completion_tokens 14,
    :usage/total_tokens 41,
    :usage/id #uuid "0192a01f-d53d-8ba8-baef-901d4c622013"}}}}

sheluchin 2024-10-18T15:17:06.882339Z

You might find this helpful: https://blog.jakubholy.net/2020/fulcro-divergent-ui-data/#_a_ui_only_component

❤️ 1
Jakub Holý (HolyJak) 2024-10-24T09:03:57.622939Z

I think we have sorted out in our private chat, by triggering a mutation first to get the data with ident in place?