Closed r0man closed 3 months ago
Thanks! Yes, let me look at the function calling.
I now have a completely working Gemini & Vertex! Woo!
I think there's only two things left, both probably on the plz
side and not with your code: first, I need some way to clean up the curl buffers. Maybe there's some standard way to do this, but I don't know what it is. For example, on sync requests, there is no :finally
or :then
available to hook onto to delete the process buffer.
The second issue is with debugging. It would be pretty useful to have a way to see the curl command, and the traffic going back and forth.
Hi @ahyatt,
that's great! About the buffers, that's probably my fault. I think I didn't add any code when I changed the :as option from 'response to 'buffer. I see what I can do about it.
The curl command is probably something we need to do in plz itself. About the traffic I'm not sure. The streaming media types delete the content from the buffer once a part has been successfully parsed. Additionally I believe debugging code in the process filter with Edebug is also a bit complicated. I believe this is due to the process exiting while you are still in the debugger. And the exit of the process triggering other code that runs while you are still in Edebug. At least this was my impression dealing with this. I might be wrong though.
One thing I did was whenever the process filter gets called to append the whole content into a "snapshots" buffer. That way I could see what the buffer looked like. We could put this under a debug flag or something. Wdyt?
Hi @ahyatt,
I made some progress. I can use the Vertex provider with Ellama and the tester runs most of the tests fine. There is some issue with function calling.
At this point the stacktrace is shown:
You know more about this. Would you be able to take over here?
Thanks Roman.