Skip to content

Commit a08eceb

Browse files
committed
remove logs
1 parent 1407635 commit a08eceb

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

apps/remix-ide/src/app/plugins/copilot/suggestion-service/copilot-suggestion.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export class CopilotSuggestion extends Plugin {
4747

4848
const max_new_tokens = await this.call('settings', 'get', 'settings/copilot/suggest/max_new_tokens')
4949
const temperature = await this.call('settings', 'get', 'settings/copilot/suggest/temperature')
50-
console.log('suggest', max_new_tokens, temperature)
5150
const options: SuggestOptions = {
5251
do_sample: false,
5352
top_k: 0,

apps/remix-ide/src/app/plugins/copilot/suggestion-service/suggestion-service.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,31 @@ export class SuggestionService {
2828
const onMessageReceived = (e) => {
2929
switch (e.data.status) {
3030
case 'initiate':
31-
console.log(e.data)
3231
this.events.emit(e.data.status, e.data)
3332
// Model file start load: add a new progress item to the list.
3433
break;
3534

3635
case 'progress':
3736
this.events.emit(e.data.status, e.data)
38-
console.log(e.data)
3937
// Model file progress: update one of the progress items.
4038
break;
4139

4240
case 'done':
4341
this.events.emit(e.data.status, e.data)
44-
console.log(e.data)
4542
// Model file loaded: remove the progress item from the list.
4643
break;
4744

4845
case 'ready':
4946
this.events.emit(e.data.status, e.data)
50-
console.log(e.data)
5147
// Pipeline ready: the worker is ready to accept messages.
5248
break;
5349

5450
case 'update':
5551
this.events.emit(e.data.status, e.data)
56-
console.log(e.data)
5752
// Generation update: update the output text.
5853
break;
5954

6055
case 'complete':
61-
console.log(e.data)
6256
if (this.responses[e.data.id]) {
6357
if (this.current === e.data.id) {
6458
this.responses[e.data.id](null, e.data)
@@ -67,8 +61,6 @@ export class SuggestionService {
6761
}
6862
delete this.responses[e.data.id]
6963
this.current = null
70-
} else {
71-
console.log('no callback for', e.data)
7264
}
7365

7466
// Generation complete: re-enable the "Generate" button

libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
1515

1616
async provideInlineCompletions(model: monacoTypes.editor.ITextModel, position: monacoTypes.Position, context: monacoTypes.languages.InlineCompletionContext, token: monacoTypes.CancellationToken): Promise<monacoTypes.languages.InlineCompletions<monacoTypes.languages.InlineCompletion>> {
1717
if (context.selectedSuggestionInfo) {
18-
console.log('return empty from provideInlineCompletions')
1918
return;
2019
}
2120
// get text before the position of the completion
@@ -27,7 +26,6 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
2726
});
2827

2928
if (!word.endsWith(' ') && !word.endsWith('\n') && !word.endsWith(';') && !word.endsWith('.')) {
30-
console.log('not a trigger char')
3129
return;
3230
}
3331

@@ -46,7 +44,6 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
4644
// use the code generation model
4745
const {data} = await axios.post('https://gpt-chat.remixproject.org/infer', {comment: ask.replace('///', '')})
4846
const parsedData = JSON.parse(data).trimStart()
49-
console.log('parsedData', parsedData)
5047
const item: monacoTypes.languages.InlineCompletion = {
5148
insertText: parsedData
5249
};
@@ -61,7 +58,6 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
6158

6259
// abort if there is a signal
6360
if (token.isCancellationRequested) {
64-
console.log('aborted')
6561
return
6662
}
6763

@@ -81,7 +77,6 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
8177

8278
// abort if there is a signal
8379
if (token.isCancellationRequested) {
84-
console.log('aborted')
8580
return
8681
}
8782
return {

0 commit comments

Comments
 (0)