@@ -73,10 +73,10 @@ export class ChatManager {
7373 } catch ( error ) {
7474 console . error ( error ) ;
7575 vscodeErrorMessage (
76- "Failed to generate content. Please try again later."
76+ "Failed to generate content. Please try again later." ,
7777 ) ;
7878 }
79- }
79+ } ,
8080 ) ;
8181 }
8282
@@ -132,60 +132,60 @@ export class ChatManager {
132132 const generativeAi : string | undefined = getGenerativeAiModel ( ) ;
133133 if ( generativeAi === generativeAiModels . GROQ ) {
134134 const groqAiConfigurations = this . handleAiProvider (
135- generativeAiModels . GROQ
135+ generativeAiModels . GROQ ,
136136 ) ;
137137 const chatViewProvider = new GroqWebViewProvider (
138138 this . _context . extensionUri ,
139139 groqAiConfigurations . apiKey ,
140140 groqAiConfigurations . model ,
141- this . _context
141+ this . _context ,
142142 ) ;
143143 return await chatViewProvider . generateResponse (
144144 undefined ,
145145 undefined ,
146- message
146+ message ,
147147 ) ;
148148 }
149149 if ( generativeAi === generativeAiModels . GEMINI ) {
150150 const geminiConfigurations = this . handleAiProvider (
151- generativeAiModels . GEMINI
151+ generativeAiModels . GEMINI ,
152152 ) ;
153153 const geminiWebViewProvider = new GeminiWebViewProvider (
154154 this . _context . extensionUri ,
155155 geminiConfigurations . apiKey ,
156156 geminiConfigurations . model ,
157- this . _context
157+ this . _context ,
158158 ) ;
159159 return await geminiWebViewProvider . generateResponse (
160160 geminiConfigurations . apiKey ,
161161 geminiConfigurations . model ,
162- message
162+ message ,
163163 ) ;
164164 }
165165 if ( generativeAi === "Anthropic" ) {
166166 const anthropicConfigurations : aIProviderConfig = this . handleAiProvider (
167- generativeAiModels . ANTHROPIC
167+ generativeAiModels . ANTHROPIC ,
168168 ) ;
169169 const anthropicWebViewProvider = this . getAnthropicWebViewProvider (
170- anthropicConfigurations
170+ anthropicConfigurations ,
171171 ) ;
172172 return await anthropicWebViewProvider . generateResponse (
173173 undefined ,
174174 undefined ,
175- message
175+ message ,
176176 ) ;
177177 }
178178
179179 if ( generativeAi === generativeAiModels . GROK ) {
180180 const grokConfigurations : aIProviderConfig = this . handleAiProvider (
181- generativeAiModels . GROK
181+ generativeAiModels . GROK ,
182182 ) ;
183183 const anthropicWebViewProvider =
184184 this . getAnthropicWebViewProvider ( grokConfigurations ) ;
185185 return await anthropicWebViewProvider . generateResponse (
186186 undefined ,
187187 undefined ,
188- message
188+ message ,
189189 ) ;
190190 }
191191 } catch ( error ) {
@@ -202,7 +202,7 @@ export class ChatManager {
202202 this . _context . extensionUri ,
203203 this . groqApiKey ,
204204 this . groqModel ,
205- this . _context
205+ this . _context ,
206206 ) ;
207207 chatViewProvider . sendResponse ( formatText ( userInput ) , COMMON . USER_INPUT ) ;
208208 chatViewProvider . sendResponse ( formatText ( response ) , COMMON . BOT ) ;
@@ -212,11 +212,11 @@ export class ChatManager {
212212 this . _context . extensionUri ,
213213 this . geminiApiKey ,
214214 this . geminiModel ,
215- this . _context
215+ this . _context ,
216216 ) ;
217217 geminiWebViewProvider . sendResponse (
218218 formatText ( userInput ) ,
219- COMMON . USER_INPUT
219+ COMMON . USER_INPUT ,
220220 ) ;
221221 geminiWebViewProvider . sendResponse ( formatText ( response ) , COMMON . BOT ) ;
222222 }
@@ -227,24 +227,24 @@ export class ChatManager {
227227 let anthropicConfigurations : aIProviderConfig | undefined ;
228228 if ( this . generativeAi === generativeAiModels . ANTHROPIC ) {
229229 anthropicConfigurations = this . handleAiProvider (
230- generativeAiModels . ANTHROPIC
230+ generativeAiModels . ANTHROPIC ,
231231 ) ;
232232 }
233233 if ( this . generativeAi === generativeAiModels . GROK ) {
234234 anthropicConfigurations = this . handleAiProvider (
235- generativeAiModels . GROK
235+ generativeAiModels . GROK ,
236236 ) ;
237237 }
238238 if ( ! anthropicConfigurations ) {
239239 throw new Error ( `Configuration not found for ${ this . generativeAi } ` ) ;
240240 }
241241
242242 const anthropicWebViewProvider = this . getAnthropicWebViewProvider (
243- anthropicConfigurations
243+ anthropicConfigurations ,
244244 ) ;
245245 anthropicWebViewProvider . sendResponse (
246246 formatText ( userInput ) ,
247- COMMON . USER_INPUT
247+ COMMON . USER_INPUT ,
248248 ) ;
249249 anthropicWebViewProvider . sendResponse ( formatText ( response ) , COMMON . BOT ) ;
250250 }
@@ -256,7 +256,7 @@ export class ChatManager {
256256 }
257257
258258 private getAnthropicWebViewProvider (
259- config : aIProviderConfig
259+ config : aIProviderConfig ,
260260 ) : AnthropicWebViewProvider {
261261 let xGrokBaseURL ;
262262 if ( getConfigValue ( APP_CONFIG . generativeAi ) === generativeAiModels . GROK ) {
@@ -267,7 +267,7 @@ export class ChatManager {
267267 config . apiKey ,
268268 config . model ,
269269 this . _context ,
270- xGrokBaseURL
270+ xGrokBaseURL ,
271271 ) ;
272272 }
273273}
0 commit comments