Skip to content

Commit

Permalink
376th Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Chen committed Sep 18, 2024
1 parent 8b88e57 commit 3f09647
Show file tree
Hide file tree
Showing 4 changed files with 307 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ This seed repository provides the following features:
- [x] [Cloudinary](https://github.com/Vanilla-IceCream/fastify-cloudinary) - Asset Management
- [x] [I18n](https://github.com/Vanilla-IceCream/fastify-i18n) - Internationalization and Localization
- [x] [Redis](https://github.com/fastify/fastify-redis) - In-memory Data Structure Store
- [x] [BullMQ](https://github.com/taskforcesh/bullmq) - Message Queue
- [x] [WebSocket](https://github.com/fastify/fastify-websocket) - Two-way Interactive Communication Session
- [x] [EventSource](https://github.com/nodefactoryio/fastify-sse-v2) - Server-sent Events
- [x] [Mailer](https://github.com/nodemailer/nodemailer) - Email Sending
- [x] [MJML](https://github.com/Shyam-Chen/MJML-Starter) - Email Builder
- [x] [Nunjucks](https://github.com/mozilla/nunjucks) - Email Rendering
- [x] [BullMQ](https://github.com/taskforcesh/bullmq) - Message Queue
- [ ] [LangChain](https://github.com/langchain-ai/langchainjs) - LLM Composability
- [ ] [OpenAI](https://github.com/Shyam-Chen/OpenAI-Starter) - Turning Models (Fine-tuning/Embeddings)
- [x] [LangChain](https://github.com/langchain-ai/langchainjs) - LLM Composability
- [x] [OpenAI](https://github.com/Shyam-Chen/OpenAI-Starter) - Fine-tuning/Embeddings Model Builder
- ---------- **Tools** ----------
- [x] [Vite](https://github.com/vitejs/vite) - Bundler
- [x] [TypeScript](https://github.com/microsoft/TypeScript) - JavaScript with Syntax for Types
Expand Down
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@fastify/type-provider-typebox": "4.1.0",
"@fastify/under-pressure": "8.5.1",
"@fastify/websocket": "10.0.1",
"@langchain/openai": "0.3.0",
"@sinclair/typebox": "0.33.11",
"@tirke/node-cache-manager-ioredis": "3.6.0",
"async-cache-dedupe": "2.2.0",
Expand Down
10 changes: 10 additions & 0 deletions app/src/composables/useModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { ChatOpenAI } from '@langchain/openai';

const model = new ChatOpenAI({
apiKey: process.env.OPENAI_API_KEY,
modelName: 'ft-123abc456def', // Fine-tuned/Embedded model ID
});

export default () => {
return model;
};
Loading

0 comments on commit 3f09647

Please sign in to comment.