feat: gemini adapter with bidirectional translation incl streaming and embeddings

This commit is contained in:
2026-08-20 04:16:10 +01:00
parent 876d340054
commit 2891766b5f
48 changed files with 2463 additions and 7 deletions
+16
View File
@@ -0,0 +1,16 @@
{
"model": "gemini-2.5-pro",
"messages": [
{"role": "user", "content": "What's the weather in Paris and Tokyo?"},
{
"role": "assistant",
"content": null,
"tool_calls": [
{"id": "call_1", "type": "function", "function": {"name": "get_weather", "arguments": "{\"location\":\"Paris\"}"}},
{"id": "call_2", "type": "function", "function": {"name": "get_weather", "arguments": "{\"location\":\"Tokyo\"}"}}
]
},
{"role": "tool", "tool_call_id": "call_1", "content": "{\"temp_c\":18}"},
{"role": "tool", "tool_call_id": "call_2", "content": "{\"temp_c\":27}"}
]
}