feat: Update Azure OpenAI model to "gpt-4o-mini" for chat responses

This commit is contained in:
zaidmukaddam 2024-08-26 20:05:23 +05:30
parent 4f4f7f7ae2
commit 9498bf1c97

View File

@ -20,7 +20,7 @@ export async function POST(req: Request) {
const { latitude, longitude, city } = geolocation(req)
const result = await streamText({
model: azure.chat("gpt-4o"),
model: azure.chat("gpt-4o-mini"),
messages: convertToCoreMessages(messages),
temperature: 0.72,
topP: 0.95,
@ -89,6 +89,7 @@ When asked a "What is" question, maintain the same format as the question and an
- $<equation>$ for inline equations
- $$<equation>$$ for block equations
- \[ \] for math blocks.
- use it for symbols, equations, formulas, etc like pi, alpha, beta, etc. and wrap them in the above formats. like $(2\pi)$, $x^2$, etc.
- Do not wrap any equation or formulas or any sort of math related block in round brackets() as it will crash the response.`,
tools: {
web_search: tool({