typesense / typesense-js

JavaScript / TypeScript client for Typesense
https://typesense.org/docs/api
Apache License 2.0
393 stars 74 forks source link

ConversationModels class is not exported in client #198

Closed baudicj closed 4 months ago

baudicj commented 4 months ago

Description

Why ConversationModels is not exported in client in order to be able to create a new conversationModel ?

Steps to reproduce

Expected Behavior

Be able to run new Typesense.Client({...}).conversationModels().create

Metadata

Typesense Version: 1.8.2:

jasonbosco commented 4 months ago

Here's the correct method signature for conversation models (since it's a nested resource):

https://github.com/typesense/typesense-js/blob/2c788283397a68060187be28a244dd4628c4cfa6/doc/examples/server/conversations.js#L102-L111