mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-04 04:42:37 +02:00
commit
e49da64ba0
3 changed files with 6 additions and 14 deletions
|
|
@ -14,7 +14,7 @@ See the relevant sections below for details on each service.
|
|||
- [Local Development Setup](#local-development-setup)
|
||||
- [Python SDK](#option-1-python-sdk)
|
||||
- [HTTP API](#option-2-http-api)
|
||||
- [Optional Features](#optional-features)
|
||||
- [Optional Features](#enable-rag)
|
||||
- [Enable RAG](#enable-rag)
|
||||
- [URL Scraping](#url-scraping)
|
||||
- [File Uploads](#file-uploads)
|
||||
|
|
@ -385,4 +385,4 @@ The webhook service handles all the security and parameter validation, allowing
|
|||
- If the sign-in button does not appear in the UI, ensure the Auth0 domain in your `.env` file is prefixed with `https://`.
|
||||
|
||||
## Attribution
|
||||
Our agents framework is built on top of [OpenAI Swarm](https://github.com/openai/swarm) with custom enhancements and improvements. Check the [NOTICE](https://github.com/rowboatlabs/rowboat/blob/main/apps/agents/NOTICE.md) for attribution and license.
|
||||
Our agents framework is built on top of [OpenAI Swarm](https://github.com/openai/swarm) with custom enhancements and improvements. Check the [NOTICE](https://github.com/rowboatlabs/rowboat/blob/main/apps/agents/NOTICE.md) for attribution and license.
|
||||
|
|
|
|||
|
|
@ -1,21 +1,13 @@
|
|||
import { promises as fs } from 'fs';
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
// Read the file once when the module loads
|
||||
const jsFileContents = fs.readFile(
|
||||
path.join(__dirname, 'bootstrap.js'),
|
||||
'utf-8'
|
||||
);
|
||||
// Fetch template once when module loads
|
||||
const templatePromise = fetch(process.env.CHAT_WIDGET_HOST + '/bootstrap.template.js')
|
||||
.then(res => res.text());
|
||||
|
||||
export async function GET() {
|
||||
try {
|
||||
// Reuse the cached content
|
||||
const template = await jsFileContents;
|
||||
const template = await templatePromise;
|
||||
|
||||
// Replace placeholder values with actual URLs
|
||||
const contents = template
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue