Remove extra logs from OpenAI provider

This commit is contained in:
Waleed Latif
2025-02-14 20:16:50 -08:00
parent 058b68186c
commit bf6e91fcbb
2 changed files with 0 additions and 9 deletions
-4
View File
@@ -49,8 +49,6 @@ export const openaiProvider: ProviderConfig = {
},
transformRequest: (request: ProviderRequest, functions?: any) => {
console.log('OpenAI transformRequest - Input:', JSON.stringify(request, null, 2))
const isO1Model = request.model?.startsWith('o1')
const isO1Mini = request.model === 'o1-mini'
@@ -139,8 +137,6 @@ export const openaiProvider: ProviderConfig = {
payload.functions = functions
payload.function_call = 'auto'
}
console.log('OpenAI transformRequest - Output:', JSON.stringify(payload, null, 2))
return payload
},
-5
View File
@@ -93,8 +93,6 @@ export async function executeProviderRequest(
try {
while (iterationCount < MAX_ITERATIONS) {
console.log(`Processing iteration ${iterationCount + 1}`)
// Transform the response using provider-specific logic
const transformedResponse = provider.transformResponse(currentResponse)
content = transformedResponse.content
@@ -251,8 +249,6 @@ export async function executeProviderRequest(
}
async function makeProxyRequest(providerId: string, payload: any, apiKey: string) {
console.log('Making proxy request for provider:', providerId)
const response = await fetch('/api/proxy', {
method: 'POST',
headers: {
@@ -273,6 +269,5 @@ async function makeProxyRequest(providerId: string, payload: any, apiKey: string
throw new Error(data.error || 'Provider API error')
}
console.log('Proxy request for provider:', providerId, 'completed')
return data.output
}