REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603)

* Well, it was quite a journey but now tools have "context" which
can be critical for the stuff they generate

This entire change was so Dall E and Artist generate images in the correct context

* FIX: improve error handling around image generation

- also corrects image markdown and clarifies code

* fix spec
This commit is contained in:
Sam
2024-05-07 21:55:46 +10:00
committed by GitHub
parent 88c7427fab
commit ab78d9b597
43 changed files with 205 additions and 125 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ module DiscourseAi
@url
end
def invoke(_bot_user, llm)
def invoke
api_url = "https://api.github.com/repos/#{repo}/pulls/#{pull_id}"
@url = "https://github.com/#{repo}/pull/#{pull_id}"