Skip to content

Add Gemini provider, examples, and tests#16

Merged
devwdave merged 3 commits intomainfrom
ts-add-gemini-provider
Feb 24, 2026
Merged

Add Gemini provider, examples, and tests#16
devwdave merged 3 commits intomainfrom
ts-add-gemini-provider

Conversation

@rpkruse
Copy link
Copy Markdown
Contributor

@rpkruse rpkruse commented Feb 24, 2026

  • Added Google Gemini support:

    • add provider implementation (detect, proxy, common, index, types, responses)
    • streaming and non-streaming examples
    • 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)

  • 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

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.
@rpkruse rpkruse requested a review from devwdave February 24, 2026 18:11
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.
@devwdave devwdave merged commit d3f02ee into main Feb 24, 2026
4 checks passed
@rpkruse rpkruse deleted the ts-add-gemini-provider branch February 24, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants