Discourse AI ์ฃผ์ œ ์š”์•ฝ ๐Ÿค–

The prompt is a button, โ€œSummarize with AIโ€, unless Iโ€™m missing the obvious here? Also, this is a fantastic plug-in, canโ€™t wait to explore.

The prompts are all shown in the post precisely one back from your first :sweat_smile:

Rookie error. :face_with_peeking_eye: This is what I get for moving too fast โ€ฆ Iโ€™ll give it a whirl and report back.

Make sure you are using my plugin. It was the first to summarise with AI but is not the official plugin.

1๊ฐœ์˜ ์ข‹์•„์š”

Bug: Selecting gpt-4-turbo results in a 500 error when a post is being made.
That might be because of a wrong setup or permissions but a 500 error on every post creation might be a bit harsh.

Faraday::BadRequestError (the server responded with status 400)
faraday (2.9.0) lib/faraday/response/raise_error.rb:16:in `on_complete'
faraday (2.9.0) lib/faraday/middleware.rb:18:in `block in call'
faraday (2.9.0) lib/faraday/response.rb:42:in `on_complete'
faraday (2.9.0) lib/faraday/middleware.rb:17:in `call'
faraday (2.9.0) lib/faraday/rack_builder.rb:152:in `build_response'
faraday (2.9.0) lib/faraday/connection.rb:444:in `run_request'
faraday (2.9.0) lib/faraday/connection.rb:280:in `post'
ruby-openai (7.0.0) lib/openai/http.rb:22:in `json_post'
ruby-openai (7.0.0) lib/openai/client.rb:30:in `chat'
plugins/discourse-ai-topic-summary/lib/ai_topic_summary/call_bot.rb:15:in `get_response'
plugins/discourse-ai-topic-summary/lib/ai_topic_summary/summarise.rb:6:in `retrieve_summary'
plugins/discourse-ai-topic-summary/plugin.rb:62:in `block (2 levels) in activate!'
lib/discourse_event.rb:12:in `block in trigger'
2๊ฐœ์˜ ์ข‹์•„์š”

Yep, true.

It should also probably spawn a job rather than do the work inline, just like Chatbot.

Probably should log the detail response if at all possible too.

Does it work with gpt-3.5-turbo?

If so, very likely this is a permissions issue where the admin does not have access to GPT 4 turbo for some reason, but agree it should not result in a failure to post, perhaps just do no summary update and log an error.

Yes, itโ€™s a permissions issue for sure.

1๊ฐœ์˜ ์ข‹์•„์š”

Is tagging based on the summary thatโ€™s generated? For example, Iโ€™d prefer no summary but have tagging function. And if thatโ€™s the case, maybe hide it?

Lastly (see screenshot), this thing is ripe for abuse. At the moment it appears even non-logged in users can downvote.

Correct.

Sure you could do that with CSS, or might get away with this settting:

ai topic summary rely on sidebar widget instead and just not use the widget.

No it isnโ€™t?

Anonymous users are not presented with this interface, nor are they allowed to vote.

but thanks for the reputation bomb :sweat_smile:

This plugin is over a year old - I think the community would have caught that one :wink:

1๊ฐœ์˜ ์ข‹์•„์š”

As with Chatbot, you can now use the latest Open AI model with this plugin:

gpt-4o

A couple of BIG improvements here:

https://github.com/merefield/discourse-ai-topic-summary/pull/14

https://github.com/merefield/discourse-ai-topic-summary/pull/15?query=1

This should make things much more robust, prevent blocking of posting when thereโ€™s an AI issue, and give you much more information when things go wrong.

@RGJ @Jagster

1๊ฐœ์˜ ์ข‹์•„์š”

Oh man, I didnโ€™t mean to imply that at all. Iโ€™m assuming I opened in Incognito, and mustโ€™ve had another Incognito window already open w/ a logged in user.

This plug-in is incredible, and I wish it could be adopted into core. You do fantastic work, Robert. Again, my apologies. Totally unintentional dig!

1๊ฐœ์˜ ์ข‹์•„์š”

No issues! Thatโ€™s for the kind words.

1๊ฐœ์˜ ์ข‹์•„์š”

Now that Iโ€™ve redeemed myself :sweat_smile:โ€ฆ whatโ€™s the difference between โ€œsystem_taggingโ€ and โ€œprompt.tagโ€?

Is the system prompt (you can edit this if you wish)

Is the โ€œuserโ€ query sent to the Chat Completion that actually does the work.

1๊ฐœ์˜ ์ข‹์•„์š”

btw, Iโ€™ve noticed better performance of gpt-4-turbo for the tagging task on one of my sites than gpt-4o. I cannot explain why and have not had time to investigate. It may relate to the sheer number of tags, but youโ€™d expect the newer model to cope with more. YMMV.

Iโ€™ll give it a shot. I tried to upgrade to 4-turbo and users were met with 500 error (Iโ€™m hosted by @RGJโ€™s Communiteq) so quickly reverted back to 3.5 and it resolved. This was last week, so perhaps something has changed.

Sounds like the plugin is out of date:

1๊ฐœ์˜ ์ข‹์•„์š”

No - Nate ran into that issue before you updated the plugin - his issue was actually the reason for my bug report.

If you believe you have addressed these issues then weโ€™ll be updating the plugin on all our applicable instances tomorrow morning.

2๊ฐœ์˜ ์ข‹์•„์š”

You not โ€œlikingโ€ the fix ( :cry: ) suggested no update had take place. :wink:

2๊ฐœ์˜ ์ข‹์•„์š”