这是indexloc提供的服务,不要输入任何密码
Skip to content

Tags: google-gemini/deprecated-generative-ai-js

Tags

v0.22.0

Toggle v0.22.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Make Schema a discriminated union (#296)

* Make Schema a discriminated union

This leverages the type system to better describe the API's requirements for schemas. For example, rather than saying that any schema might have an optional `items` property, we're able to express that `items` is required on array schemas and forbidden on all others.

More info on discriminated unions: https://www.typescriptlang.org/docs/handbook/2/narrowing.html#discriminated-unions

* Update docs.

@google/generative-ai@0.16.1

Toggle @google/generative-ai@0.16.1's commit message
Fix requestOptions in startChat (#228)