Website: improve speed of deliver-talk-to-us-form-submission action (#50593)
Changes: - Updated the model used in the prompt helper calls in the deliver-talk-to-us-form-submission action and the get-enriched helper to improve the speed of routing users booking a demo. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Updated location and address enrichment to use an updated language model, improving the processing of submitted information while preserving existing form behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -107,7 +107,7 @@ Only include a key when you are confident of its value. Omit any key you are uns
|
||||
locationGuessFromEmailDomain: async()=>{
|
||||
return await sails.helpers.ai.prompt.with({
|
||||
prompt: locationGuessPrompt,
|
||||
baseModel: 'gpt-5-nano-2025-08-07',
|
||||
baseModel: 'claude-haiku-4-5',
|
||||
expectJson: true,
|
||||
systemPrompt: locationGuessSystemPrompt,
|
||||
}).tolerate((err)=>{
|
||||
|
||||
+1
-1
@@ -327,7 +327,7 @@ module.exports = {
|
||||
|
||||
locationInfo = await sails.helpers.ai.prompt.with({
|
||||
prompt: locationPrompt,
|
||||
baseModel: 'gpt-5-nano-2025-08-07',
|
||||
baseModel: 'claude-haiku-4-5',
|
||||
expectJson: true,
|
||||
systemPrompt: systemPromptForAddressInformation,
|
||||
}).tolerate((err)=>{
|
||||
|
||||
Reference in New Issue
Block a user