Skip to content

Commit 428a5d8

Browse files
committed
remove console.logs
1 parent dd6a37f commit 428a5d8

File tree

9 files changed

+0
-13
lines changed

9 files changed

+0
-13
lines changed

src/client/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { useUpdateUrlLang } from './hooks/useUpdateUrlLang'
2020
import Styles from './GlobalStyles'
2121

2222
const hasAccess = (user: User | null | undefined, courseId?: string) => {
23-
console.log(user, courseId)
2423
if (!user) return false
2524
if (user.isAdmin) return true
2625
if (courseId && !user.activeCourseIds.includes(courseId)) return false

src/client/components/ChatV2/ChatV2.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ export const ChatV2 = () => {
132132
refetchStatus()
133133
}
134134
chatScroll.autoScroll()
135-
console.log(message)
136135
},
137136
onText: () => {
138137
chatScroll.autoScroll()

src/client/components/ChatV2/Conversation.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ const AssistantMessage = ({
157157
let codeCount = 0
158158

159159
const handleToolResult = (toolResult: ToolCallResultEvent) => {
160-
console.log(toolResult)
161160
setActiveToolResult(toolResult)
162161
}
163162

src/client/components/ChatV2/SettingsModal.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ export const SettingsModal: React.FC<SettingsModalProps> = ({
134134
}
135135

136136
const handleChangePrompt = (newPrompt: Prompt | undefined) => {
137-
console.log('handleChangePrompt', newPrompt)
138-
139137
if (!newPrompt) {
140138
setActivePrompt(undefined)
141139
setSystemMessage(DEFAULT_ASSISTANT_INSTRUCTIONS)

src/client/components/Courses/Course/EditCourseForm.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ const EditCourseForm = forwardRef(({ course, setOpen, user }: { course: Course;
4646
}
4747
}
4848

49-
console.log('admin', user.isAdmin)
50-
5149
return (
5250
<Box ref={ref} display="flex" tabIndex={-1}>
5351
<Paper variant="outlined" sx={{ margin: 'auto', padding: 5, mt: '20vh' }}>

src/client/components/Rag/api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { RagFileAttributes, RagIndexAttributes } from '../../../shared/types'
55
export const useCreateRagIndexMutation = () => {
66
const mutation = useMutation({
77
mutationFn: async ({ chatInstanceId, indexName, language }: { chatInstanceId: string; indexName: string; language: string }) => {
8-
console.log(language)
98
const response = await apiClient.post('/rag/indices', {
109
name: indexName,
1110
chatInstanceId,

src/server/routes/ai/v3.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ router.post('/stream', upload.single('file'), async (r, res) => {
129129

130130
const searchTool = model === 'mock' ? getMockRagIndexSearchTool(ragIndex) : getRagIndexSearchTool(ragIndex)
131131

132-
console.log('Tool given: ' + searchTool.name)
133-
134132
tools.push(searchTool)
135133
}
136134

src/server/routes/feedback.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const feedbackRouter = express.Router()
88

99
feedbackRouter.post('/', async (req, res) => {
1010
const { user } = req as RequestWithUser
11-
console.log(req.body)
1211
const feedbackBody = FeedbackPostSchema.parse(req.body)
1312

1413
const fb = await Feedback.create({

src/server/util/azure/client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ export const streamCompletion = async (events: EventStream<ChatCompletions>, opt
7878
for (const choice of event.choices) {
7979
const delta = choice.delta?.content
8080

81-
if (!inProduction) logger.info(delta)
82-
8381
if (delta) {
8482
await new Promise((resolve) => {
8583
if (

0 commit comments

Comments
 (0)