-
Notifications
You must be signed in to change notification settings - Fork 20
Description
The DeepSeek AI plugin example (but also the others in the same folder) do not work properly: when sending a command via the "AI Chat" window, the loader animation runs infinitely and the received response is not displayed.
I am referring to the demo stored in this folder:
"Object Pascal/ToolsAPI/AIEngine Demos/DeepSeek_Plugin"
I've done a DeepSeek plugin myself during a live coding session, starting from the Cohere sample. I am having this issue then I confronted my work with the sample plugin and both of them give the same wrong behavior.
Doing some checks, it seems that the plugin is unable to pass the answer received from the LLM service since there are no "notifiers" (IOTAAIServicesNotifier) registered calling the TDeepSeekAIRestClient.AddNotifier() function.
When TDeepSeekAIRestClient.NotifyAnswer() is called in order to pass out the chat answer, then FNotifyList.Count is equal to zero; simply put, the received response is not passed to Delphi in any way.
Are there any missing registrations in the plugin's OTA services? Is it necessary to implement the IOTAAIServicesNotifier interface? If is it so, how?
I think it would be appropriate to fix the example by adding the missing part for those who would like to exploit this interesting opportunity of integrating Delphi with AI services, given that OTA documentation is very limited.
I am totally available to give additional feedback and hints about this.
Thanks a lot! π€