Add Gemini provider, examples, and tests#16
Merged
Conversation
Introduce Google Gemini support: add provider implementation (detect, proxy, common, index, types, responses), streaming and non-streaming examples, and unit tests for provider behavior and telemetry. Add @google/genai as a peer/dev dependency in package.json and update package-lock.json. Refactor Anthropic typings/responses (split responses into a separate file and adjust imports) and tweak memori example endpoints to use the cloud collector/base URLs. Misc updates to provider registry/patching to wire Gemini into the LLM registry.
Move example files into a top-level examples/ directory (examples/python and examples/typescript). Rename simple.ts to openai.ts and update gemini-stream import to use @memorilabs/axon. Delete Memori example files for both Python and TypeScript. Remove example-related npm scripts from ts-sdk/package.json and exclude examples from TypeScript build by updating tsconfig.build.json and tsconfig.json so examples are no longer included in the compiled output. These changes separate example code from the SDK build and remove Memori-specific samples.
Replace local '../src/index.js' imports with the published '@memorilabs/axon' package in the TypeScript example files (examples/typescript/anthropic.ts, gemini.ts, openai.ts). This ensures the examples import the released package instead of a local source path, making them work when the package is installed as a dependency.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added Google Gemini support:
Add @google/genai as a peer/dev dependency in package.json and update package-lock.json.
Refactor Anthropic typings/responses (split responses into a separate file and adjust imports)
tweak memori example endpoints to use the cloud collector/base URLs.
Misc updates to provider registry/patching to wire Gemini into the LLM registry.
Note: I did NOT bump the version number yet, I want to do some code clean up before our next release. I can bump if needed/wanted