Commit d925dd5 1 parent 04879b2 commit d925dd5 Copy full SHA for d925dd5
File tree 2 files changed +19
-13
lines changed
2 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 1
1
import { isArtifactCodeContent } from "@/lib/artifact_content_types" ;
2
2
import { BaseStore , LangGraphRunnableConfig } from "@langchain/langgraph" ;
3
- import { ArtifactCodeV3 , ArtifactMarkdownV3 , Reflections } from "../types" ;
3
+ import {
4
+ ArtifactCodeV3 ,
5
+ ArtifactMarkdownV3 ,
6
+ Reflections ,
7
+ ModelConfig ,
8
+ } from "../types" ;
4
9
import { initChatModel } from "langchain/chat_models/universal" ;
5
10
6
- type ModelConfig = {
7
- temperature ?: number ;
8
- modelProvider : string ;
9
- maxTokens ?: number ;
10
- azureConfig ?: {
11
- azureOpenAIApiKey : string ;
12
- azureOpenAIApiInstanceName : string ;
13
- azureOpenAIApiDeploymentName : string ;
14
- azureOpenAIApiVersion : string ;
15
- } ;
16
- } ;
17
-
18
11
/**
19
12
* Wrapper around initChatModel
20
13
*/
Original file line number Diff line number Diff line change @@ -265,3 +265,16 @@ export type RewriteArtifactMetaToolResponse =
265
265
title : string ;
266
266
language : ProgrammingLanguageOptions ;
267
267
} ;
268
+
269
+ export interface ModelConfig {
270
+ temperature ?: number ;
271
+ modelProvider : string ;
272
+ maxTokens ?: number ;
273
+ azureConfig ?: {
274
+ azureOpenAIApiKey : string ;
275
+ azureOpenAIApiInstanceName : string ;
276
+ azureOpenAIApiDeploymentName : string ;
277
+ azureOpenAIApiVersion : string ;
278
+ azureOpenAIBasePath ?: string ;
279
+ } ;
280
+ }
You can’t perform that action at this time.
0 commit comments