发布

  • [OPIK-2566] [SDK] Add Gemini integration for TypeScript SDK (#3492)

    frostbyte_neo 发布于 2025-10-01 17:06:54 +00:00

    • [OPIK-2566] Add Gemini integration for TypeScript SDK

    • [OPIK-2566] add gemini integration to exclude root config

    • [OPIK-2566] [SDK] Fix @google/genai package name consistency in Gemini integration

    • [OPIK-2566] [SDK] Fix Gemini integration circular dependency in tests

    • [OPIK-2566] [DOCS] Update Gemini TypeScript integration documentation with official SDK patterns

    • [OPIK-2566] [DOCS] Add Gemini TypeScript integration screenshot

    • Optimised images with calibre/image-actions

    • [OPIK-2566] [SDK] Remove deprecated @google/generative-ai from opik-gemini package-lock

    • [OPIK-2566] Add GitHub Actions workflow for publishing opik-gemini to npm

    • [OPIK-2566] Fix repository.directory paths in package.json files

    Remove incorrect 'blob/' prefix from repository.directory field in all
    TypeScript SDK package.json files. The directory field should contain
    relative paths from repository root, not GitHub URL segments.

    Fixed packages:

    • opik (main SDK)
    • opik-gemini
    • opik-openai
    • opik-langchain
    • Fix Gemini TypeScript integration docs to use correct @google/genai API
    • Update README.md to use models.generateContent() instead of getGenerativeModel()
    • Update documentation to reflect correct streaming API
    • Fix chat conversation examples to use contents array
    • Correct response handling: response.text instead of result.response.text()
    • All examples now match official @google/genai SDK API
    • [OPIK-2566] Fix Gemini streaming to output only candidates field matching Python SDK

    Co-authored-by: Yaroslav Boiko yaroslavboiko@ip-192-168-1-15.ec2.internal
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

    下载附件