Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tech-knights-ai-challenge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Siva Mirrapalli
tech-knights-ai-challenge
Merge requests
!43
open ai models replaced and moved configs to envs
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
open ai models replaced and moved configs to envs
sm-replacement-of-models
into
dev
Overview
0
Commits
1
Pipelines
0
Changes
15
Merged
Siva Mirrapalli
requested to merge
sm-replacement-of-models
into
dev
4 weeks ago
Overview
0
Commits
1
Pipelines
0
Changes
15
Expand
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
1a00d40a
1 commit,
4 weeks ago
15 files
+
193
−
56
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
15
Search (e.g. *.vue) (Ctrl+P)
frontend/src/app/api/transcript/create/route.ts
+
2
−
2
Options
import
{
getProfileRating
}
from
"
@/lib/utils/prompts
"
;
import
{
NextRequest
,
NextResponse
}
from
"
next/server
"
;
import
{
getGeminiResponse
}
from
"
@/lib/utils/gemini
"
;
import
{
textResponseExtractor
}
from
"
@/lib/utils/helpers/text-response-extractor
"
;
import
{
connect
}
from
"
@/lib/utils/mongo-connection
"
;
import
{
validateToken
}
from
"
@/lib/utils/jwt
"
;
import
{
InterviewModel
}
from
"
@/schemas/interviews
"
;
import
{
Roles
}
from
"
@/lib/enums/Roles
"
;
import
{
User
}
from
"
@/lib/types/User
"
;
import
{
getAIResponse
}
from
"
@/lib/utils/ai
"
;
interface
RequestBody
{
interviewId
:
string
;
@@ -41,7 +41,7 @@ export async function POST(req: NextRequest) {
}
const
completePrompt
=
getProfileRating
(
reqBody
.
transcription
);
const
extractedText
=
await
get
Gemini
Response
(
completePrompt
,
""
);
const
extractedText
=
await
get
AI
Response
(
completePrompt
,
""
);
console
.
log
(
"
Extracted data of the rating:
"
,
extractedText
);
const
cleanedString
=
textResponseExtractor
(
extractedText
);
console
.
log
(
"
Cleaned Text from PDF:
"
,
cleanedString
);
Loading