ash ai chat

[error] ** (NimbleOptions.ValidationError) unknown options [:unsafe_], valid options are: [:hardbreaks, :github_pre_lang, :full_info_string, :width, :unsafe, :escape, :list_style, :sourcepos, :escaped_char_spans, :ignore_setext, :ignore_empty_links, :gfm_quirks, :prefer_fenced, :figure_with_caption, :tasklist_classes, :ol_width, :experimental_minimize_commonmark] (in options [:render])
(nimble_options 1.1.1) lib/nimble_options.ex:359: NimbleOptions.validate!/2
(mdex 0.7.1) lib/mdex.ex:1376: MDEx.validate_options!/1
(mdex 0.7.1) lib/mdex.ex:951: MDEx.to_html/2
(answer_mentor 0.1.0) lib/answer_mentor_web/live/chat_live.ex:271: AnswerMentorWeb.ChatLive.to_markdown/1
(answer_mentor 0.1.0) lib/answer_mentor_web/live/chat_live.ex:69: anonymous fn/3 in AnswerMentorWeb.ChatLive.render/1
(elixir 1.18.4) lib/enum.ex:4515: anonymous fn/3 in Enum.reduce/3
(phoenix_live_view 1.0.17) lib/phoenix_live_view/live_stream.ex:110:
[error] ** (NimbleOptions.ValidationError) unknown options [:unsafe_], valid options are: [:hardbreaks, :github_pre_lang, :full_info_string, :width, :unsafe, :escape, :list_style, :sourcepos, :escaped_char_spans, :ignore_setext, :ignore_empty_links, :gfm_quirks, :prefer_fenced, :figure_with_caption, :tasklist_classes, :ol_width, :experimental_minimize_commonmark] (in options [:render])
(nimble_options 1.1.1) lib/nimble_options.ex:359: NimbleOptions.validate!/2
(mdex 0.7.1) lib/mdex.ex:1376: MDEx.validate_options!/1
(mdex 0.7.1) lib/mdex.ex:951: MDEx.to_html/2
(answer_mentor 0.1.0) lib/answer_mentor_web/live/chat_live.ex:271: AnswerMentorWeb.ChatLive.to_markdown/1
(answer_mentor 0.1.0) lib/answer_mentor_web/live/chat_live.ex:69: anonymous fn/3 in AnswerMentorWeb.ChatLive.render/1
(elixir 1.18.4) lib/enum.ex:4515: anonymous fn/3 in Enum.reduce/3
(phoenix_live_view 1.0.17) lib/phoenix_live_view/live_stream.ex:110:
source:
defp to_markdown(text) do
# Note that you must pass the "unsafe_: true" option to first generate the raw HTML
# in order to sanitize it. https://hexdocs.pm/mdex/MDEx.html#module-sanitize
MDEx.to_html(text,
extension: [
strikethrough: true,
tagfilter: true,
table: true,
autolink: true,
defp to_markdown(text) do
# Note that you must pass the "unsafe_: true" option to first generate the raw HTML
# in order to sanitize it. https://hexdocs.pm/mdex/MDEx.html#module-sanitize
MDEx.to_html(text,
extension: [
strikethrough: true,
tagfilter: true,
table: true,
autolink: true,
did something break?
14 Replies
abeeshake456
abeeshake456OP4mo ago
I really wanted to chat. :p but guess. dang! unsafe: true not unsafe_: true
ZachDaniel
ZachDaniel4mo ago
Is that in our code?
abeeshake456
abeeshake456OP4mo ago
yes. needs a pr.
ZachDaniel
ZachDaniel4mo ago
Hmm...in mdex I think thats supposed to be supported? But, change it anyway [Options] Rename :unsafe to :unsafe in :render options. The old :unsafe option still works. I think it may have broken accidentally 🤷‍♂️
abeeshake456
abeeshake456OP4mo ago
between, This does not run any db queries.
No description
abeeshake456
abeeshake456OP4mo ago
I was looking for something that can Run ash queries for me like create a resource, with aprams , giev me a list of users . etc
ZachDaniel
ZachDaniel4mo ago
Did you watch the video? that I told you about?
abeeshake456
abeeshake456OP4mo ago
Your elixir conf one , right?
ZachDaniel
ZachDaniel4mo ago
Code and Stuff
YouTube
A Complete AI Toolkit: Ash AI Demo
Ash is a really powerful ecosystem of tools that make it easy to rapidly build and maintain Elixir / Phoenix applications. Recently, an AI package was added to the roster. It makes it easy to add LLM interactions to an application, and can even expose existing secure actions to an agent acting on the user's behalf. This demo only shows a fract...
ZachDaniel
ZachDaniel4mo ago
You have to setup tools and provide those tools to the chat
abeeshake456
abeeshake456OP4mo ago
Code and Stuff
YouTube
A Complete AI Toolkit: Ash AI Demo
Ash is a really powerful ecosystem of tools that make it easy to rapidly build and maintain Elixir / Phoenix applications. Recently, an AI package was added to the roster. It makes it easy to add LLM interactions to an application, and can even expose existing secure actions to an agent acting on the user's behalf. This demo only shows a fract...
abeeshake456
abeeshake456OP4mo ago
ah. right on dang. I need to give it tools Thanks for the patience.
abeeshake456
abeeshake456OP4mo ago
GitHub
fix: unsafe usage in mdex by TwistingTwists · Pull Request #73 · ...
Contributor checklist Leave anything that you believe does not apply unchecked. Bug fixes include regression tests Chores Documentation changes Features include unit/acceptance tests Refactor...

Did you find this page helpful?