okisdev / ChatChat

Chat Chat, your own unified chat and search to AI platform, with a simple and easy to use interface.
https://chat.okisdev.com
GNU Affero General Public License v3.0
1.19k stars 217 forks source link

fix(deps): update dependency @google/generative-ai to ^0.20.0 #320

Open renovate[bot] opened 5 months ago

renovate[bot] commented 5 months ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@google/generative-ai ^0.7.1 -> ^0.20.0 age adoption passing confidence

Release Notes

google/generative-ai-js (@​google/generative-ai) ### [`v0.20.0`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0200) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/v0.19.0...v0.20.0) ##### Minor Changes - [`dda0b5c`](https://redirect.github.com/google/generative-ai-js/commit/dda0b5c): Add `frequencyPenalty`, `presencePenalty`, `responseLogprobs`, and `logProbs` parameters support for `generationConfig`. Added `avgLogprobs` and `logprobsResult` to `GenerateContentResponse`. Updated test cases. ### [`v0.19.0`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0190) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/v0.18.0...v0.19.0) ##### Minor Changes - [`00dc7a1`](https://redirect.github.com/google/generative-ai-js/commit/00dc7a1): Use lowercase SchemaType enum values to match json-schema. ### [`v0.18.0`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0180) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/v0.17.2...v0.18.0) ##### Minor Changes - [`fc008a1`](https://redirect.github.com/google/generative-ai-js/commit/fc008a1): Add ability to set modelParams (generationConfig, safetySettings) on getGenerativeModelFromCachedContent(). ### [`v0.17.2`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0172) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/v0.17.1...v0.17.2) ##### Patch Changes - [`d8f6b4f`](https://redirect.github.com/google/generative-ai-js/commit/d8f6b4f): Fix language marker in text helper for executable code results. ### [`v0.17.1`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0171) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.17.0...v0.17.1) ##### Patch Changes - [`fdfb5bd`](https://redirect.github.com/google/generative-ai-js/commit/fdfb5bd): Fix reference to `requestOptions` in `startChat`. ### [`v0.17.0`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0170) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.16.1...@google/generative-ai@0.17.0) ##### Minor Changes - [`3b5daae`](https://redirect.github.com/google/generative-ai-js/commit/3b5daae): Fix `Schema` type to reference itself and not a derived type in its `items` array and `properties` map. ### [`v0.16.1`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0161) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.16.0...@google/generative-ai@0.16.1) This is a cherry-picked patch to fix an bug for users pinned to versions 0.16.x. ##### Patch Changes - [`fdfb5bd`](https://redirect.github.com/google/generative-ai-js/commit/fdfb5bd): Fix reference to `requestOptions` in `startChat`. ### [`v0.16.0`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0160) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.15.0...@google/generative-ai@0.16.0) ##### Minor Changes - [`d2d42ca`](https://redirect.github.com/google/generative-ai-js/commit/d2d42ca): Adds `SingleRequestOptions` with `AbortSignal` support to most of the asynchronous methods of `GenerativeModel`, `GoogleAIFileManager` and `ChatSession`. ### [`v0.15.0`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0150) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.14.1...@google/generative-ai@0.15.0) ##### Minor Changes - [`05b8631`](https://redirect.github.com/google/generative-ai-js/commit/05b8631): Add FinishReason.LANGUAGE enum value. ##### Patch Changes - [`e87d5b0`](https://redirect.github.com/google/generative-ai-js/commit/e87d5b0): Fix countTokens to include any params set on the model instance. ### [`v0.14.1`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0141) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.14.0...@google/generative-ai@0.14.1) ##### Patch Changes - [`0c23bb3`](https://redirect.github.com/google/generative-ai-js/commit/0c23bb3): Add `CodeExecutionTool` to `Tool` type. ### [`v0.14.0`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0140) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.13.0...@google/generative-ai@0.14.0) ##### Minor Changes - [`fb1c0f2`](https://redirect.github.com/google/generative-ai-js/commit/fb1c0f2): Add a `cachedContentTokenCount` field to the `UsageMetadata` interface returned by `generateContent` responses. - [`06216be`](https://redirect.github.com/google/generative-ai-js/commit/06216be): Add code execution feature. ### [`v0.13.0`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0130) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.12.0...@google/generative-ai@0.13.0) ##### Minor Changes - [`83ec4ac`](https://redirect.github.com/google/generative-ai-js/commit/83ec4ac): Expand the model's `countTokens` method to alternatively accept a `GenerateContentRequest`. - [`5df61d1`](https://redirect.github.com/google/generative-ai-js/commit/5df61d1): Added `GoogleAICacheManager` utility to allow caching large content to be used in inference. This class is exported from the `@google/generative-ai/server` subpath. Breaking change: The `GoogleAIFileManager` class has been moved to be exported from this subpath as well instead of the `/files` subpath. ##### Patch Changes - [`1440a05`](https://redirect.github.com/google/generative-ai-js/commit/1440a05): Removed the `model` field from the internally formatted payload of `countToken` requests as it was unnecessary. - [`03eb57b`](https://redirect.github.com/google/generative-ai-js/commit/03eb57b): Fix missing usageMetadata in streamed aggregated response ([#​174](https://redirect.github.com/google/generative-ai-js/issues/174)) ### [`v0.12.0`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0120) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.11.5...@google/generative-ai@0.12.0) ##### Minor Changes - [`85ff2c4`](https://redirect.github.com/google/generative-ai-js/commit/85ff2c4): Added `responseSchema` to `GenerationConfig` to allow user to provide a JSON schema when `responseMimeType` is set to JSON. ### [`v0.11.5`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0115) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.11.4...@google/generative-ai@0.11.5) ##### Patch Changes - [`42ba6ca`](https://redirect.github.com/google/generative-ai-js/commit/42ba6ca): Fix paths to @​google/generative-ai/files. ### [`v0.11.4`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0114) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.11.3...@google/generative-ai@0.11.4) ##### Patch Changes - [`ee02ff0`](https://redirect.github.com/google/generative-ai-js/commit/ee02ff0): Add additional properties `videoMetadata` and `error` to `FileMetadataResponse` type. ### [`v0.11.3`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0113) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.11.2...@google/generative-ai@0.11.3) ##### Patch Changes - [`c7c0b50`](https://redirect.github.com/google/generative-ai-js/commit/c7c0b50): Fixed `FileState` enum values to be strings. ### [`v0.11.2`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0112) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.11.1...@google/generative-ai@0.11.2) ##### Patch Changes - [`cefa8f2`](https://redirect.github.com/google/generative-ai-js/commit/cefa8f2): Lifted a restriction in chat sessions that required a specific order of content roles. ### [`v0.11.1`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0111) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.11.0...@google/generative-ai@0.11.1) ##### Patch Changes - [`819501f`](https://redirect.github.com/google/generative-ai-js/commit/819501f): Fix a bug that caused file uploads to be named "undefined" if no file name is provided. ### [`v0.11.0`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0110) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.10.0...@google/generative-ai@0.11.0) ##### Minor Changes - [`58ab777`](https://redirect.github.com/google/generative-ai-js/commit/58ab777): Added responseMimeType to GenerationConfig to allow for JSON formatted responses. ##### Patch Changes - [`c39015c`](https://redirect.github.com/google/generative-ai-js/commit/c39015c): Fixed a bug where `text()` did not handle multiple `TextPart`s in a single candidate. Added `state` field to `FileMetadataResponse`. ### [`v0.10.0`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#0100) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.9.0...@google/generative-ai@0.10.0) ##### Minor Changes - [`657799a`](https://redirect.github.com/google/generative-ai-js/commit/657799a): Added UsageMetadata to GenerateContentResponses. - [`4562366`](https://redirect.github.com/google/generative-ai-js/commit/4562366): Add a request option for custom headers ### [`v0.9.0`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#090) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.8.0...@google/generative-ai@0.9.0) ##### Minor Changes - [`ca62400`](https://redirect.github.com/google/generative-ai-js/commit/ca62400): Allow text-only systemInstruction as well as Part and Content. - [`111e970`](https://redirect.github.com/google/generative-ai-js/commit/111e970): Export error classes and add more properties to fetch errors. ### [`v0.8.0`](https://redirect.github.com/google/generative-ai-js/blob/HEAD/CHANGELOG.md#080) [Compare Source](https://redirect.github.com/google/generative-ai-js/compare/@google/generative-ai@0.7.1...@google/generative-ai@0.8.0) ##### Minor Changes - [`a89d427`](https://redirect.github.com/google/generative-ai-js/commit/a89d427): Add GoogleAIFileManager for file uploads.

Configuration

πŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
chat-chat βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Sep 27, 2024 1:31am