-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chat conversations - How #52
Comments
Hi @Francks11 Thanks for the feedback and use case of adding files into a chat conversation. The first parameter of
Meaning, at the moment you would have to assemble the
Hope this helps already. FYI, I'm going to improve the signature of |
Hello @jochenkirstaetter, thank you for your answer. I try it and its works. I just update this row because it is not working (FileData is descendant of IPart, not Part) :
by
Have a nice day. Franck |
Hello @Francks11 Thank you so much for your feedback. You could shorten/simplify the list like this:
Anyway, the next release is going to incorporate your use case and will offer a simpler way to handle this. Cheers, JoKi |
Hello @Francks11 New release v2.0.2 provides overloaded
The chat history is maintained, too. Hope this helps. Kindly let me know whether this works for you. Thanks. Cheers, JoKi |
Thank you for the quick release, but when I try to use it, I got an error : System.ArgumentException Cette exception a été levée à l'origine dans cette pile des appels : Example of the code : ` // upload file // send message Franck |
Hello @Francks11 Not sure what the root cause is. I created a new test for multimodal chat and it completes successfully.
See here: Start_Chat_With_Multimodal_Content for all details. Hopefully this helps. Cheers, JoKi |
Hello @Francks11 Which one of the two Cheers, JoKi |
Hello @Francks11 Is this issue persisting or did you manage to resolve it? Cheers, JoKi |
Hello,
I used "Chat conversations" to send messages and keep the history of the conversation.
I am looking for information on how to upload a file in the chat. I couldn't find anything in the documentation.
Currently I used this part of code to send a message with an attachment. I would like the same with a conversation.
` public static async Task GenerateContentAsync(String modelName, String message, int maxOutputTokens, String files)
{
var generationConfig = new GenerationConfig();
generationConfig.MaxOutputTokens = maxOutputTokens;
Thank you for your help.
The text was updated successfully, but these errors were encountered: