Skip to content

Commit

Permalink
Updates (#5) (#6)
Browse files Browse the repository at this point in the history
* Anthropic: add Haiku 3.5

* SQL highlight

* Inform about the issue dragging from Obsidian

* Bits

* Config: TOS

* DataStreamViz: speed

* Roll packages (incl. pdfjs)

* Remove @sanity's diff library (slow, old).

* DSV: speed

* Aix - misc

* roll packages

* UrlUtils: b64

* AudioLivePlayer: convert for buffers

* ElevenLabs: tRPC streaming - supports new v2 and Turbo 2.5 models

* Simplify: remove backend analytics

* BackendCaps: refresh on reconnect

* Bits

* xAI: full support

* Roll packages

* Backend debug

* Tryfix reload for clipboardUtils

* Icons: Google and GitHub

The icons are from the Authjs project.

* Sherpa: add modal

* Remove empty chats from the history (don't even save them until we have content)

* Incognito: visual indicator

* Fix react dep

* ChatMessage: menu within screen bounds

* Hide costs counter when < $0.0001 (initial visual clutter)

* _fetchFromTRPC: types for PUT and DELETE

* xAI: fix inversion

* Improve shadow

* Beam: ctrl+up/down

* Beam: start all/stop all shortcuts

* Nav: change names

* UI: Persona Icons in Drawer: off by default

* roll packages

* Unused, comment

* Exclusions

* tRPC: rename rooters

* tRPC: relocate

* UI: Fix Beam ctrl+enter

* SVG: improve detection

* Roll packages.

* Gemini: code execution flags

* Gemini: update models

* Support .sh files

* AIX: support forwarded OpenRouter errors

* AIX: disable comments in the demuxer parse

* Tryfix RenderCode (was all vertical)

* Add the "2 days ago" option

* Enable Node 22

* Roll packages

* Lint: thanks typescript

* Smaller panes

* Gemini: add 1121

* Sync: add DeviceID, stored

* Update min width

* Theme update

* Add Beauty

* roll packages

* .gitignore

* Normalize PricingChatGenerate

* Type normalization Metrics

* Sherpa/chats: delay GC to delay loading the conversations store

* DConversation: converters update

* Vector Clocks implementation

* Models list: more compact on mobile

* OpenAI: update models

* OpenAI: wire notes

* OpenAI: resort

* OpenAI: o1: re-enable streaming

* Gemini: support for 1206

* Beam: remove /beam, it's not really a command

* idUtils: add uuidV4

* idUtils: nanoId -> uuidv4

* AIX: port FlattenerModal (useStreamChatText)

* AIX: port Persona Creator (LLMChain)

* AIX: port Telephone (aixCGR_fromHistory)

* AIX: remove llms's legacy VChatMessage and llmStreamingChatGenerate

* AIX: misc

* AIX: calls: no system messages

* Persona Creator: correct display. enricoros#685

* Don't use GitHub as CDN - Fixes enricoros#691

* Gemini: forcefully delete the models replaced without official comms/updates. Fixes enricoros#690

* Ollama: update models

* Ollama: update dispatch, Fixes enricoros#678

* Ollama: doc PNG images

* Ollama: default context to 4096

* OpenRouter: update models sorting

* Persona Viewer: fix

* Remove messageSingleTextOrThrow

* Cleanup after AIX migration

* roll packages

* roll pdfjs

* more roll packages

* remove optional package

* Show Free models

* Mobile llm options fix

* Gemini: update models, including 2.0 Flash

* Fix: store-chats: don't partialize if there's a single chat

* disable dead protocol code

* Typeshift: prework 1

* Personas: allow to switch out null personas

* Conceptually split the system Instruction with the rest of the history

* Updates (#5)

* Anthropic: add Haiku 3.5

* Update README.md (#2)

* SQL highlight

* Inform about the issue dragging from Obsidian

* Bits

* Config: TOS

* DataStreamViz: speed

* Roll packages (incl. pdfjs)

* Remove @sanity's diff library (slow, old).

* DSV: speed

* Aix - misc

* roll packages

* UrlUtils: b64

* AudioLivePlayer: convert for buffers

* ElevenLabs: tRPC streaming - supports new v2 and Turbo 2.5 models

* Simplify: remove backend analytics

* BackendCaps: refresh on reconnect

* Bits

* xAI: full support

* Roll packages

* Backend debug

* Tryfix reload for clipboardUtils

* Icons: Google and GitHub

The icons are from the Authjs project.

* Sherpa: add modal

* Get latest updates from v2 dev (#3)

* Anthropic: add Haiku 3.5

* SQL highlight

* Inform about the issue dragging from Obsidian

* Bits

* Config: TOS

* DataStreamViz: speed

* Roll packages (incl. pdfjs)

* Remove @sanity's diff library (slow, old).

* DSV: speed

* Aix - misc

* roll packages

* UrlUtils: b64

* AudioLivePlayer: convert for buffers

* ElevenLabs: tRPC streaming - supports new v2 and Turbo 2.5 models

* Simplify: remove backend analytics

* BackendCaps: refresh on reconnect

* Bits

* xAI: full support

* Roll packages

* Backend debug

* Tryfix reload for clipboardUtils

* Icons: Google and GitHub

The icons are from the Authjs project.

* Sherpa: add modal

---------

Co-authored-by: Enrico Ros <[email protected]>

* Remove empty chats from the history (don't even save them until we have content)

* Incognito: visual indicator

* Fix react dep

* ChatMessage: menu within screen bounds

* Hide costs counter when < $0.0001 (initial visual clutter)

* _fetchFromTRPC: types for PUT and DELETE

* xAI: fix inversion

* Improve shadow

* Beam: ctrl+up/down

* Beam: start all/stop all shortcuts

* Nav: change names

* UI: Persona Icons in Drawer: off by default

* roll packages

* Unused, comment

* Exclusions

* tRPC: rename rooters

* tRPC: relocate

* UI: Fix Beam ctrl+enter

* SVG: improve detection

* Roll packages.

* Gemini: code execution flags

* Gemini: update models

* Support .sh files

* AIX: support forwarded OpenRouter errors

* AIX: disable comments in the demuxer parse

* Tryfix RenderCode (was all vertical)

* Add the "2 days ago" option

* Enable Node 22

* Roll packages

* Lint: thanks typescript

* Smaller panes

* Gemini: add 1121

* Sync: add DeviceID, stored

* Update min width

* Theme update

* Add Beauty

* roll packages

* .gitignore

* Normalize PricingChatGenerate

* Type normalization Metrics

* Sherpa/chats: delay GC to delay loading the conversations store

* DConversation: converters update

* Vector Clocks implementation

* Models list: more compact on mobile

* OpenAI: update models

* OpenAI: wire notes

* OpenAI: resort

* OpenAI: o1: re-enable streaming

* Gemini: support for 1206

* Beam: remove /beam, it's not really a command

* idUtils: add uuidV4

* idUtils: nanoId -> uuidv4

* AIX: port FlattenerModal (useStreamChatText)

* AIX: port Persona Creator (LLMChain)

* AIX: port Telephone (aixCGR_fromHistory)

* AIX: remove llms's legacy VChatMessage and llmStreamingChatGenerate

* AIX: misc

* AIX: calls: no system messages

* Persona Creator: correct display. enricoros#685

* Don't use GitHub as CDN - Fixes enricoros#691

* Gemini: forcefully delete the models replaced without official comms/updates. Fixes enricoros#690

* Ollama: update models

* Ollama: update dispatch, Fixes enricoros#678

* Ollama: doc PNG images

* Ollama: default context to 4096

* OpenRouter: update models sorting

* Persona Viewer: fix

* Remove messageSingleTextOrThrow

* Cleanup after AIX migration

* roll packages

* roll pdfjs

* more roll packages

* remove optional package

* Show Free models

* Mobile llm options fix

* Gemini: update models, including 2.0 Flash

* Fix: store-chats: don't partialize if there's a single chat

* disable dead protocol code

* Typeshift: prework 1

* Personas: allow to switch out null personas

* Conceptually split the system Instruction with the rest of the history

---------

Co-authored-by: Enrico Ros <[email protected]>

---------

Co-authored-by: Enrico Ros <[email protected]>
  • Loading branch information
jannesbrunner and enricoros authored Dec 13, 2024
1 parent c54d4f5 commit 4efffd8
Show file tree
Hide file tree
Showing 116 changed files with 2,507 additions and 1,823 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ next-env.d.ts
./k8s/env-secret.yaml
/certificates
.env*.local
/.run/dev (ENV).run.xml
/src/modules/3rdparty/aider/scratch*
24 changes: 24 additions & 0 deletions app/api/cloud/[trpc]/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { fetchRequestHandler } from '@trpc/server/adapters/fetch';

import { appRouterCloud } from '~/server/trpc/trpc.router-cloud';
import { createTRPCFetchContext } from '~/server/trpc/trpc.server';

const handlerNodeRoutes = (req: Request) => fetchRequestHandler({
endpoint: '/api/cloud',
router: appRouterCloud,
req,
createContext: createTRPCFetchContext,
onError:
process.env.NODE_ENV === 'development'
? ({ path, error }) => console.error(`❌ tRPC-cloud failed on ${path ?? 'unk-path'}: ${error.message}`)
: undefined,
});


// NOTE: the following statement breaks the build on non-pro deployments, and conditionals don't work either
// so we resorted to raising the timeout from 10s to 25s in the vercel.json file instead
// export const maxDuration = 25;

export const runtime = 'nodejs';
export const dynamic = 'force-dynamic';
export { handlerNodeRoutes as GET, handlerNodeRoutes as POST };
18 changes: 18 additions & 0 deletions app/api/edge/[trpc]/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { fetchRequestHandler } from '@trpc/server/adapters/fetch';

import { appRouterEdge } from '~/server/trpc/trpc.router-edge';
import { createTRPCFetchContext } from '~/server/trpc/trpc.server';

const handlerEdgeRoutes = (req: Request) => fetchRequestHandler({
endpoint: '/api/edge',
router: appRouterEdge,
req,
createContext: createTRPCFetchContext,
onError:
process.env.NODE_ENV === 'development'
? ({ path, error }) => console.error(`❌ tRPC-edge failed on ${path ?? 'unk-path'}: ${error.message}`)
: undefined,
});

export const runtime = 'edge';
export { handlerEdgeRoutes as GET, handlerEdgeRoutes as POST };
19 changes: 0 additions & 19 deletions app/api/trpc-edge/[trpc]/route.ts

This file was deleted.

25 changes: 0 additions & 25 deletions app/api/trpc-node/[trpc]/route.ts

This file was deleted.

2 changes: 1 addition & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ For Developers:
first request to get the configuration. See
https://github.com/enricoros/big-agi/blob/main/src/modules/backend/backend.router.ts.
- CloudFlare developers: please change the deployment command to
`rm app/api/trpc-node/[trpc]/route.ts && npx @cloudflare/next-on-pages@1`,
`rm app/api/cloud/[trpc]/route.ts && npx @cloudflare/next-on-pages@1`,
as we transitioned to the App router in NextJS 14. The documentation in
[docs/deploy-cloudflare.md](../docs/deploy-cloudflare.md) is updated

Expand Down
2 changes: 1 addition & 1 deletion docs/deploy-cloudflare.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Fork the repository to your personal GitHub account.
2. On this page, set your **Project name**, **Production branch** (e.g., main), and your Build settings
3. Choose `Next.js` from the **Framework preset** dropdown menu
4. Set a custom **Build Command**:
- `rm app/api/trpc-node/[trpc]/route.ts && npx @cloudflare/next-on-pages@1`
- `rm app/api/cloud/[trpc]/route.ts && npx @cloudflare/next-on-pages@1`
- see the tradeoffs for this deletion on the notice at the top
5. Keep the **Build output directory** as default
6. Click the **Save and Deploy** button
Expand Down
4 changes: 3 additions & 1 deletion docs/help-advanced-tricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ Welcome to the advanced tips and tricks guide for Big-AGI. This document will he
- When editing a message:
- **Ctrl + Enter** to **Save** the changes.
- **Shift + Ctrl + Enter** to **Save & Regenerate**.

- Scroll between messages:
- **Ctrl + Up/Down** to scroll between **messages** and/or **Beams**.

## Worth the Effort:

- [LiveFile](help-feature-livefile.md) works on **Chrome**: Pair and synchronize your documents and code blocks with files on your local system: refresh, save, update them.
Expand Down
Loading

0 comments on commit 4efffd8

Please sign in to comment.