Replies: 1 comment 2 replies
-
|
Here is an example implementation, which adds
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello - thank you for the amazing plugin!
I'm working with an LLM that expects a different post request format than what codecompanion currently provides by default.
This LLM expects the post content passed as a
forminstead ofbody, and it expects the content to be base64 encoded.With the existing http.lua implementation, it assumes the content is requested in the
bodyand encoded as a json string, which is great and makes sense for most LLMs.But, it seems there's no way override this default behavior to pass content to the
formproperty instead ofbody, and it seems there's no way to override the json string encoding, which would be helpful in my case.It would be very helpful in my case to provide some mechanism in adapters to override these request defaults.
I will try to draft an example, but I also expect that you will have a much better idea than me for how to implement this, so I would be very happy to hear any suggestions you might have.
Beta Was this translation helpful? Give feedback.
All reactions