pieces-app / example-typescript

A React example project showing how to get started with Pieces TS SDK.
MIT License
35 stars 43 forks source link

Add capability for Switching between LLM Models #89

Open shivay-at-pieces opened 6 months ago

shivay-at-pieces commented 6 months ago

LLM Model Switch: Let users switch to GPT 3.5 or other models when interacting with Copilot.

Leverage the models.Snapshot() endpoint to fetch all of the different models.

this.models = new Pieces.ModelsApi().modelsSnapshot();

This is an iterable list with several models to choose from. You should write logic to choose between the different models.

So add a drop down in the Pieces Copilot Component, to choose which model the user wishes to interact with.

Arindam200 commented 6 months ago

I want to work on this

jwafu commented 6 months ago

@Arindam200 sounds good! if you want to quickly get a PR up for your bug issue before diving into this that would be great 👍

Arindam200 commented 6 months ago

@jordan-pieces I've almost implemented this.

Just one question:

After selecting the model from the front end how to set that to the copilot?