@@ -70,7 +70,7 @@ const messages: ChatCompletionMessageParam = [{
7070}]
7171
7272// Call the create function
73- const result: ChatCompletionMessageParam [] = await tokenjs .chat .completions .create ({
73+ const result = await tokenjs .chat .completions .create ({
7474 // Specify the target model and provider
7575 provider: ' openai' ,
7676 model: ' gpt-4o' ,
@@ -100,7 +100,7 @@ const messages: ChatCompletionMessageParam = [{
100100}]
101101
102102// Call the create function
103- const result: ChatCompletionMessageParam [] = await tokenjs .chat .completions .create ({
103+ const result = await tokenjs .chat .completions .create ({
104104 // Specify the target model and provider
105105 provider: ' anthropic' ,
106106 model: ' claude-2.0' ,
@@ -129,7 +129,7 @@ const messages: ChatCompletionMessageParam = [{
129129}]
130130
131131// Call the create function
132- const result: ChatCompletionMessageParam [] = await tokenjs .chat .completions .create ({
132+ const result = await tokenjs .chat .completions .create ({
133133 // Specify the target model and provider
134134 provider: ' gemini' ,
135135 model: ' gemini-1.5-pro' ,
@@ -160,7 +160,7 @@ const messages: ChatCompletionMessageParam = [{
160160}]
161161
162162// Call the create function
163- const result: ChatCompletionMessageParam [] = await tokenjs .chat .completions .create ({
163+ const result = await tokenjs .chat .completions .create ({
164164 // Specify the target model and provider
165165 provider: ' bedrock' ,
166166 model: ' amazon.titan-text-express-v1' ,
@@ -189,7 +189,7 @@ const messages: ChatCompletionMessageParam = [{
189189}]
190190
191191// Call the create function
192- const result: ChatCompletionMessageParam [] = await tokenjs .chat .completions .create ({
192+ const result = await tokenjs .chat .completions .create ({
193193 // Specify the target model and provider
194194 provider: ' cohere' ,
195195 model: ' command-r' ,
@@ -218,7 +218,7 @@ const messages: ChatCompletionMessageParam = [{
218218}]
219219
220220// Call the create function
221- const result: ChatCompletionMessageParam [] = await tokenjs .chat .completions .create ({
221+ const result = await tokenjs .chat .completions .create ({
222222 // Specify the target model and provider
223223 provider: ' mistral' ,
224224 model: ' mistral-large-2402' ,
0 commit comments