You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use c# Autogen.Gemini nugetpackage to make a chinese-english translator.
I want to set system Message = "You are a good translator... etc.";
I want to set temperature = 0; (temperature is important for correct translation.)
What I have tried,(By looking at the sample codes)
var geminiAgent = new GeminiChatAgent(
name: "gemini-unique-name",
model: "gemini-2.0-flash",
apiKey: apiKey,
systemMessage: "You are a good translator... etc."
)
.RegisterMessageConnector()
.RegisterPrintMessage();
var reply = await geminiAgent.SendAsync("第1章");
Problems are...
I don't know how to set up generativeconfig-temperature settings. I can't include it to the GeminiChatAgent to make it translate correctly.
It seems geminiAgent is writing reply to the console. Is there a way to stop it and just get reply in string variable?
(I'm maybe wrong.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
What I have tried,(By looking at the sample codes)
Problems are...
(I'm maybe wrong.)
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions