Skip to content

Instantly share code, notes, and snippets.

@gsans
Created July 23, 2025 14:39
Show Gist options
  • Save gsans/64d1a1f89eb22bd7ece4999004d852ee to your computer and use it in GitHub Desktop.
Save gsans/64d1a1f89eb22bd7ece4999004d852ee to your computer and use it in GitHub Desktop.
Diff check for easy reference 1.9.0
{
"setup": {
"model": "models/gemini-live-2.5-flash-preview",
"generationConfig": {
"responseModalities": [
"AUDIO"
],
"mediaResolution": "MEDIA_RESOLUTION_MEDIUM",
"speechConfig": {
"voiceConfig": {
"prebuiltVoiceConfig": {
"voiceName": "Zephyr"
}
},
"languageCode": "en-US"
}
},
"systemInstruction": {
"parts": [
{
"text": "You are a helpful assistant."
}
]
},
"tools": [
{
"googleSearch": {}
},
{
"codeExecution": {}
},
{
"functionDeclarations": [
{
"description": "Get the current temperature in a given location",
"name": "getCurrentTemperature",
"parametersJsonSchema": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA"
},
"unit": {
"type": "string",
"enum": [
"celsius",
"fahrenheit"
],
"description": "The temperature unit to use. Infer this from the users location."
}
},
"required": [
"location",
"unit"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}
},
{
"description": "Multiply two numbers and return the result",
"name": "multiply",
"parametersJsonSchema": {
"type": "object",
"properties": {
"firstNumber": {
"type": "number",
"minimum": 2,
"maximum": 10
},
"secondNumber": {
"type": "number",
"minimum": 2,
"maximum": 10
}
},
"required": [
"firstNumber",
"secondNumber"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}
}
]
}
],
"contextWindowCompression": {
"triggerTokens": "25600",
"slidingWindow": {
"targetTokens": "12800"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment