Skip to content

Commit

Permalink
382nd Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Chen committed Sep 25, 2024
1 parent a4cdeec commit 83f4073
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ This seed repository provides the following features:
- [x] [Background Workers](./app/src/jobs) (Or use [Redis Store](./app/src/routes/queues/+handler.ts))
- [x] [Cron Jobs](./app/src/jobs) (Or use [Redis Store](./app/src/routes/queues/cron/+handler.ts))
- [x] [Delayed jobs](./app/src/jobs) (Or use [Redis Store](./app/src/routes/queues/delay/+handler.ts))
- [x] [Streaming LLM Output](./app/src/routes/sse/model/+handler.ts)

## Configuration

Expand Down
8 changes: 7 additions & 1 deletion app/src/routes/sse/model/+handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ export default (async (app) => {
},
},
async (request, reply) => {
const model = useModel({ model: 'gpt-4o-mini', temperature: 0 });
const model = useModel({
// Replace the model with a fine-tuned model or an embedding model
model: 'gpt-4o-mini',

// Allow some creative flexibility to handle variations in phrasing, while maintaining accuracy in responses
temperature: 0.3,
});

const stream = await model.stream(request.body.message);

Expand Down

0 comments on commit 83f4073

Please sign in to comment.