11import { GenerativeConfigRuntimeType , ModuleConfig } from '../types' ;
2- import { generativeConfigRuntime } from './config' ;
2+ import { generativeParameters } from './config' ;
33
44// only tests fields that must be mapped from some public name to a gRPC name, e.g. baseURL -> baseUrl and stop: string[] -> stop: TextArray
5- describe ( 'Unit testing of the generativeConfigRuntime factory methods' , ( ) => {
5+ describe ( 'Unit testing of the generativeParameters factory methods' , ( ) => {
66 describe ( 'anthropic' , ( ) => {
77 it ( 'with defaults' , ( ) => {
8- const config = generativeConfigRuntime . anthropic ( ) ;
8+ const config = generativeParameters . anthropic ( ) ;
99 expect ( config ) . toEqual <
1010 ModuleConfig < 'generative-anthropic' , GenerativeConfigRuntimeType < 'generative-anthropic' > | undefined >
1111 > ( {
@@ -14,7 +14,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
1414 } ) ;
1515 } ) ;
1616 it ( 'with values' , ( ) => {
17- const config = generativeConfigRuntime . anthropic ( {
17+ const config = generativeParameters . anthropic ( {
1818 baseURL : 'http://localhost:8080' ,
1919 stopSequences : [ 'a' , 'b' , 'c' ] ,
2020 } ) ;
@@ -32,7 +32,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
3232
3333 describe ( 'anyscale' , ( ) => {
3434 it ( 'with defaults' , ( ) => {
35- const config = generativeConfigRuntime . anyscale ( ) ;
35+ const config = generativeParameters . anyscale ( ) ;
3636 expect ( config ) . toEqual <
3737 ModuleConfig < 'generative-anyscale' , GenerativeConfigRuntimeType < 'generative-anyscale' > | undefined >
3838 > ( {
@@ -41,7 +41,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
4141 } ) ;
4242 } ) ;
4343 it ( 'with values' , ( ) => {
44- const config = generativeConfigRuntime . anyscale ( {
44+ const config = generativeParameters . anyscale ( {
4545 baseURL : 'http://localhost:8080' ,
4646 } ) ;
4747 expect ( config ) . toEqual <
@@ -57,7 +57,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
5757
5858 describe ( 'aws' , ( ) => {
5959 it ( 'with defaults' , ( ) => {
60- const config = generativeConfigRuntime . aws ( ) ;
60+ const config = generativeParameters . aws ( ) ;
6161 expect ( config ) . toEqual <
6262 ModuleConfig < 'generative-aws' , GenerativeConfigRuntimeType < 'generative-aws' > | undefined >
6363 > ( {
@@ -69,7 +69,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
6969
7070 describe ( 'azure-openai' , ( ) => {
7171 it ( 'with defaults' , ( ) => {
72- const config = generativeConfigRuntime . azureOpenAI ( ) ;
72+ const config = generativeParameters . azureOpenAI ( ) ;
7373 expect ( config ) . toEqual <
7474 ModuleConfig < 'generative-azure-openai' , GenerativeConfigRuntimeType < 'generative-azure-openai' > >
7575 > ( {
@@ -78,7 +78,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
7878 } ) ;
7979 } ) ;
8080 it ( 'with values' , ( ) => {
81- const config = generativeConfigRuntime . azureOpenAI ( {
81+ const config = generativeParameters . azureOpenAI ( {
8282 baseURL : 'http://localhost:8080' ,
8383 model : 'model' ,
8484 stop : [ 'a' , 'b' , 'c' ] ,
@@ -99,7 +99,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
9999
100100 describe ( 'cohere' , ( ) => {
101101 it ( 'with defaults' , ( ) => {
102- const config = generativeConfigRuntime . cohere ( ) ;
102+ const config = generativeParameters . cohere ( ) ;
103103 expect ( config ) . toEqual <
104104 ModuleConfig < 'generative-cohere' , GenerativeConfigRuntimeType < 'generative-cohere' > | undefined >
105105 > ( {
@@ -108,7 +108,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
108108 } ) ;
109109 } ) ;
110110 it ( 'with values' , ( ) => {
111- const config = generativeConfigRuntime . cohere ( {
111+ const config = generativeParameters . cohere ( {
112112 baseURL : 'http://localhost:8080' ,
113113 stopSequences : [ 'a' , 'b' , 'c' ] ,
114114 } ) ;
@@ -126,7 +126,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
126126
127127 describe ( 'databricks' , ( ) => {
128128 it ( 'with defaults' , ( ) => {
129- const config = generativeConfigRuntime . databricks ( ) ;
129+ const config = generativeParameters . databricks ( ) ;
130130 expect ( config ) . toEqual <
131131 ModuleConfig <
132132 'generative-databricks' ,
@@ -138,7 +138,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
138138 } ) ;
139139 } ) ;
140140 it ( 'with values' , ( ) => {
141- const config = generativeConfigRuntime . databricks ( {
141+ const config = generativeParameters . databricks ( {
142142 stop : [ 'a' , 'b' , 'c' ] ,
143143 } ) ;
144144 expect ( config ) . toEqual <
@@ -157,7 +157,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
157157
158158 describe ( 'friendliai' , ( ) => {
159159 it ( 'with defaults' , ( ) => {
160- const config = generativeConfigRuntime . friendliai ( ) ;
160+ const config = generativeParameters . friendliai ( ) ;
161161 expect ( config ) . toEqual <
162162 ModuleConfig <
163163 'generative-friendliai' ,
@@ -169,7 +169,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
169169 } ) ;
170170 } ) ;
171171 it ( 'with values' , ( ) => {
172- const config = generativeConfigRuntime . friendliai ( {
172+ const config = generativeParameters . friendliai ( {
173173 baseURL : 'http://localhost:8080' ,
174174 } ) ;
175175 expect ( config ) . toEqual <
@@ -188,7 +188,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
188188
189189 describe ( 'mistral' , ( ) => {
190190 it ( 'with defaults' , ( ) => {
191- const config = generativeConfigRuntime . mistral ( ) ;
191+ const config = generativeParameters . mistral ( ) ;
192192 expect ( config ) . toEqual <
193193 ModuleConfig < 'generative-mistral' , GenerativeConfigRuntimeType < 'generative-mistral' > | undefined >
194194 > ( {
@@ -197,7 +197,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
197197 } ) ;
198198 } ) ;
199199 it ( 'with values' , ( ) => {
200- const config = generativeConfigRuntime . mistral ( {
200+ const config = generativeParameters . mistral ( {
201201 baseURL : 'http://localhost:8080' ,
202202 } ) ;
203203 expect ( config ) . toEqual <
@@ -213,7 +213,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
213213
214214 describe ( 'nvidia' , ( ) => {
215215 it ( 'with defaults' , ( ) => {
216- const config = generativeConfigRuntime . nvidia ( ) ;
216+ const config = generativeParameters . nvidia ( ) ;
217217 expect ( config ) . toEqual <
218218 ModuleConfig < 'generative-nvidia' , GenerativeConfigRuntimeType < 'generative-nvidia' > | undefined >
219219 > ( {
@@ -222,7 +222,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
222222 } ) ;
223223 } ) ;
224224 it ( 'with values' , ( ) => {
225- const config = generativeConfigRuntime . nvidia ( {
225+ const config = generativeParameters . nvidia ( {
226226 baseURL : 'http://localhost:8080' ,
227227 } ) ;
228228 expect ( config ) . toEqual <
@@ -238,7 +238,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
238238
239239 describe ( 'ollama' , ( ) => {
240240 it ( 'with defaults' , ( ) => {
241- const config = generativeConfigRuntime . ollama ( ) ;
241+ const config = generativeParameters . ollama ( ) ;
242242 expect ( config ) . toEqual <
243243 ModuleConfig < 'generative-ollama' , GenerativeConfigRuntimeType < 'generative-ollama' > | undefined >
244244 > ( {
@@ -250,7 +250,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
250250
251251 describe ( 'openai' , ( ) => {
252252 it ( 'with defaults' , ( ) => {
253- const config = generativeConfigRuntime . openAI ( ) ;
253+ const config = generativeParameters . openAI ( ) ;
254254 expect ( config ) . toEqual <
255255 ModuleConfig < 'generative-openai' , GenerativeConfigRuntimeType < 'generative-openai' > >
256256 > ( {
@@ -259,7 +259,7 @@ describe('Unit testing of the generativeConfigRuntime factory methods', () => {
259259 } ) ;
260260 } ) ;
261261 it ( 'with values' , ( ) => {
262- const config = generativeConfigRuntime . openAI ( {
262+ const config = generativeParameters . openAI ( {
263263 baseURL : 'http://localhost:8080' ,
264264 model : 'model' ,
265265 stop : [ 'a' , 'b' , 'c' ] ,
0 commit comments