Update tokenlens to canary with server side fetching (#1196)
Co-authored-by: josh <josh@afterima.ge>
This commit is contained in:
parent
445d63e620
commit
5ab695262f
10 changed files with 196 additions and 286 deletions
|
|
@ -3,7 +3,8 @@ import type { getWeather } from './ai/tools/get-weather';
|
|||
import type { createDocument } from './ai/tools/create-document';
|
||||
import type { updateDocument } from './ai/tools/update-document';
|
||||
import type { requestSuggestions } from './ai/tools/request-suggestions';
|
||||
import type { InferUITool, LanguageModelUsage, UIMessage } from 'ai';
|
||||
import type { InferUITool, UIMessage } from 'ai';
|
||||
import type { AppUsage } from './usage';
|
||||
|
||||
import type { ArtifactKind } from '@/components/artifact';
|
||||
import type { Suggestion } from './db/schema';
|
||||
|
|
@ -42,7 +43,7 @@ export type CustomUIDataTypes = {
|
|||
kind: ArtifactKind;
|
||||
clear: null;
|
||||
finish: null;
|
||||
usage: LanguageModelUsage;
|
||||
usage: AppUsage;
|
||||
};
|
||||
|
||||
export type ChatMessage = UIMessage<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue