mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> We are adding a new AI connector for the talking to the Gemini API on Google AI: https://ai.google.dev/gemini-api/docs/get-started/tutorial?authuser=1&lang=python. Note that this is for Gemini hosted on Google AI. Google also offers Gemini access on their Vertex AI platform: https://cloud.google.com/vertex-ai/generative-ai/docs/migrate/migrate-google-ai. We will have another connector along with this for accessing Gemini on Vertex AI. ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> The new connector contains 3 AI services: - Chat completion - Text completion - Text embedding TODO: Function calling. > Function calling is not included in this PR to reduce to the size of the PR. Unit test coverage:  Mypy: All cleared ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄
50 lines
1016 B
JSON
50 lines
1016 B
JSON
{
|
|
"version": "0.2",
|
|
"languageSettings": [
|
|
{
|
|
"languageId": "py",
|
|
"allowCompoundWords": true,
|
|
"locale": "en-US"
|
|
}
|
|
],
|
|
"language": "en-US",
|
|
"patterns": [
|
|
{
|
|
"name": "import",
|
|
"pattern": "import [a-zA-Z0-9_]+"
|
|
},
|
|
{
|
|
"name": "from import",
|
|
"pattern": "from [a-zA-Z0-9_]+ import [a-zA-Z0-9_]+"
|
|
}
|
|
],
|
|
"ignorePaths": [
|
|
"samples/**",
|
|
"notebooks/**"
|
|
],
|
|
"words": [
|
|
"aeiou",
|
|
"azuredocindex",
|
|
"azuredocs",
|
|
"contentvector",
|
|
"dotenv",
|
|
"logit",
|
|
"logprobs",
|
|
"mongocluster",
|
|
"ndarray",
|
|
"nopep",
|
|
"ollama",
|
|
"onyourdatatest",
|
|
"OPENAI",
|
|
"pydantic",
|
|
"retrywrites",
|
|
"kernelfunction",
|
|
"skprompt",
|
|
"templating",
|
|
"vectordb",
|
|
"generativeai",
|
|
"genai",
|
|
"protos",
|
|
"endregion"
|
|
]
|
|
} |