mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-06 19:35:44 +02:00
move streaming api routes
This commit is contained in:
parent
82069bdc53
commit
51b0f7901e
4 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ export function useCopilot({ projectId, workflow, context }: UseCopilotParams):
|
|||
|
||||
try {
|
||||
const res = await getCopilotResponseStream(projectId, messages, workflow, context || null);
|
||||
const eventSource = new EventSource(`/api/v1/copilot-stream-response/${res.streamId}`);
|
||||
const eventSource = new EventSource(`/api/copilot-stream-response/${res.streamId}`);
|
||||
|
||||
eventSource.onmessage = (event) => {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ export function Chat({
|
|||
return;
|
||||
}
|
||||
|
||||
eventSource = new EventSource(`/api/v1/stream-response/${streamId}`);
|
||||
eventSource = new EventSource(`/api/stream-response/${streamId}`);
|
||||
|
||||
eventSource.addEventListener("message", (event) => {
|
||||
if (ignore) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue