hchen2020

Results 8 issues of hchen2020

Is it possible to provide some approaches to clean the cache in MemoryCache?

enhancement

### Description ![image](https://user-images.githubusercontent.com/88852780/236438942-e63cd0e1-89ba-4132-9b26-e2990408d1da.png) ![image](https://user-images.githubusercontent.com/88852780/236439043-b9934556-5fcd-47e4-a1c1-4221036254c6.png) ![image](https://user-images.githubusercontent.com/88852780/236438991-bd52451a-7759-4539-925d-b6c75c9cae65.png) ### Reproduction Steps I currently suspect that it is because the resources are cleared every time before inference. ![image](https://user-images.githubusercontent.com/88852780/236440257-00365ee9-8596-4d19-8970-313a9f6ee19b.png) ### Known Workarounds _No response_ ###...

bug

Is it possible to enhance the prompt log for the message with image/ photos? ![image](https://github.com/SciSharp/BotSharp/assets/88852780/b19f53ea-574e-429a-8eda-025de852fcb9)

enhancement

Can it support to upload PDF file? ![image](https://github.com/SciSharp/BotSharp/assets/88852780/01d1471a-f497-46d0-a3d1-eb0760e305ed)

enhancement

As per the new feature [JSON-Mode](https://platform.openai.com/docs/guides/json-mode), we can add a new option to `IChatCompletion.GetChatCompletionsAsync` ```json "response_format": { "type": "json_object" }, ```

enhancement

Separate OpenAI as a new plugin `BotSharp.Plugin.OpenAI`. The `OpenAI` has a new .NET library: https://github.com/openai/openai-dotnet

enhancement

Enable `appsettings.json` to be used in `liquid` template when loading agent. Like the `states` can be used in `function` json file. In `instruction.liquid`, developers can use the settings in the...

Add Excel Export to `ExcelHandler` name `ExcelExportFn` `The function should contain `sql_statement` parameter. ![image](https://github.com/user-attachments/assets/6adea997-0368-425c-9738-2bc4f7a7079f)

enhancement