File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 77 stepCountIs ,
88 streamText ,
99} from "ai" ;
10- import { getWeather } from "@/lib/ai/tools/get-weather" ;
1110import { unstable_cache as cache } from "next/cache" ;
1211import type { ModelCatalog } from "tokenlens/core" ;
12+ import { getWeather } from "@/lib/ai/tools/get-weather" ;
1313
1414// Type definition for resumable stream context (feature currently disabled - requires Redis)
1515type ResumableStreamContext = {
@@ -179,9 +179,7 @@ export async function POST(request: Request) {
179179 messages : convertToModelMessages ( uiMessages ) ,
180180 stopWhen : stepCountIs ( 5 ) ,
181181 experimental_activeTools :
182- selectedChatModel === "chat-model-reasoning"
183- ? [ ]
184- : [ "getWeather" ] ,
182+ selectedChatModel === "chat-model-reasoning" ? [ ] : [ "getWeather" ] ,
185183 experimental_transform : smoothStream ( { chunking : "word" } ) ,
186184 tools : {
187185 getWeather,
Original file line number Diff line number Diff line change @@ -28,11 +28,7 @@ import { useSidebar } from "./ui/sidebar";
2828import { VersionFooter } from "./version-footer" ;
2929import type { VisibilityType } from "./visibility-selector" ;
3030
31- export const artifactDefinitions = [
32- textArtifact ,
33- codeArtifact ,
34- sheetArtifact ,
35- ] ;
31+ export const artifactDefinitions = [ textArtifact , codeArtifact , sheetArtifact ] ;
3632export type ArtifactKind = ( typeof artifactDefinitions ) [ number ] [ "kind" ] ;
3733
3834export type UIArtifact = {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ About the origin of user's request:
2020` ;
2121
2222export const systemPrompt = ( {
23- selectedChatModel,
23+ selectedChatModel : _selectedChatModel ,
2424 requestHints,
2525} : {
2626 selectedChatModel : string ;
You can’t perform that action at this time.
0 commit comments