@@ -88,18 +88,17 @@ export const generativeConfigRuntime = {
8888 azureOpenAI : (
8989 config ?: GenerativeOpenAIConfigRuntime
9090 ) : ModuleConfig < 'generative-azure-openai' , GenerativeConfigRuntimeType < 'generative-azure-openai' > > => {
91- const { baseURL, model , stop, ...rest } = config || { } ;
91+ const { baseURL, stop, ...rest } = config || { } ;
9292 return {
9393 name : 'generative-azure-openai' ,
9494 config : config
9595 ? {
9696 ...rest ,
9797 baseUrl : baseURL ,
98- model : model ?? '' ,
9998 isAzure : true ,
10099 stop : TextArray . fromPartial ( { values : stop } ) ,
101100 }
102- : { model : '' , isAzure : true } ,
101+ : { isAzure : true } ,
103102 } ;
104103 } ,
105104 /**
@@ -243,18 +242,17 @@ export const generativeConfigRuntime = {
243242 openAI : (
244243 config ?: GenerativeOpenAIConfigRuntime
245244 ) : ModuleConfig < 'generative-openai' , GenerativeConfigRuntimeType < 'generative-openai' > > => {
246- const { baseURL, model , stop, ...rest } = config || { } ;
245+ const { baseURL, stop, ...rest } = config || { } ;
247246 return {
248247 name : 'generative-openai' ,
249248 config : config
250249 ? {
251250 ...rest ,
252251 baseUrl : baseURL ,
253- model : model ?? '' ,
254252 isAzure : false ,
255253 stop : TextArray . fromPartial ( { values : stop } ) ,
256254 }
257- : { model : '' , isAzure : false } ,
255+ : { isAzure : false } ,
258256 } ;
259257 } ,
260258 /**
0 commit comments