Manish Kumar
|
8ec8202b08
|
feat: open ai feature request (#28295)
## This is feature branch for Open AI integration.
This Plugin supports two commands:
- Chat - Open AI responds back with a list of messages.
- Embeddings - Open AI responds back with list of embeddings.
### Chat Interface:
In chat interface the user can select a model from GPT 3.5, GPT 4, and
there fine-tuned versions.
<img width="914" alt="Chat-screen"
src="https://github.com/appsmithorg/appsmith/assets/107841575/30c3a095-4560-456b-9747-43b70a48cc0a">
### Chat Response:
<img width="865" alt="chat-response"
src="https://github.com/appsmithorg/appsmith/assets/107841575/bad5269e-5bf5-4814-853a-65045423642e">
### Embedding interface:
<img width="914" alt="Embedding screen"
src="https://github.com/appsmithorg/appsmith/assets/107841575/7c1dfa9f-caca-4dba-b4fe-10d25773f604">
### Strategy:
Added Factory classes for separating implementation of different
commands, interface methods are:
- getTriggerMethod() HTTP method to use for trigger call
- getTriggerURI() url for trigger request
- getExecutionMethod() HTTP method to user for Execution call
- getExecutionURI () Url for executionRequest
- makeRequestBody() for sending requests
- isModelCompatible is model compatible for this command ?
Fixes: https://github.com/appsmithorg/appsmith/issues/28269
---------
Co-authored-by: Diljit VJ <diljit@appsmith.com>
|
2023-11-03 11:20:34 +07:00 |
|