Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix (docs): correct spelling of 'fahrenheit' across getting started guides #3941

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions content/docs/02-getting-started/02-nextjs-app-router.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export async function POST(req: Request) {
messages,
tools: {
weather: tool({
description: 'Get the weather in a location (farenheit)',
description: 'Get the weather in a location (fahrenheit)',
parameters: z.object({
location: z.string().describe('The location to get the weather for'),
}),
Expand Down Expand Up @@ -321,7 +321,7 @@ export async function POST(req: Request) {
messages,
tools: {
weather: tool({
description: 'Get the weather in a location (farenheit)',
description: 'Get the weather in a location (fahrenheit)',
parameters: z.object({
location: z.string().describe('The location to get the weather for'),
}),
Expand All @@ -333,12 +333,12 @@ export async function POST(req: Request) {
};
},
}),
convertFarenheitToCelsius: tool({
description: 'Convert a temperature in farenheit to celsius',
convertFahrenheitToCelsius: tool({
description: 'Convert a temperature in fahrenheit to celsius',
parameters: z.object({
temperature: z
.number()
.describe('The temperature in farenheit to convert'),
.describe('The temperature in fahrenheit to convert'),
}),
execute: async ({ temperature }) => {
const celsius = Math.round((temperature - 32) * (5 / 9));
Expand Down
10 changes: 5 additions & 5 deletions content/docs/02-getting-started/03-nextjs-pages-router.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export async function POST(req: Request) {
messages,
tools: {
weather: tool({
description: 'Get the weather in a location (farenheit)',
description: 'Get the weather in a location (fahrenheit)',
parameters: z.object({
location: z.string().describe('The location to get the weather for'),
}),
Expand Down Expand Up @@ -317,7 +317,7 @@ export async function POST(req: Request) {
messages,
tools: {
weather: tool({
description: 'Get the weather in a location (farenheit)',
description: 'Get the weather in a location (fahrenheit)',
parameters: z.object({
location: z.string().describe('The location to get the weather for'),
}),
Expand All @@ -329,12 +329,12 @@ export async function POST(req: Request) {
};
},
}),
convertFarenheitToCelsius: tool({
description: 'Convert a temperature in farenheit to celsius',
convertFahrenheitToCelsius: tool({
description: 'Convert a temperature in fahrenheit to celsius',
parameters: z.object({
temperature: z
.number()
.describe('The temperature in farenheit to convert'),
.describe('The temperature in fahrenheit to convert'),
}),
execute: async ({ temperature }) => {
const celsius = Math.round((temperature - 32) * (5 / 9));
Expand Down
10 changes: 5 additions & 5 deletions content/docs/02-getting-started/04-svelte.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const POST = (async ({ request }) => {
messages,
tools: {
weather: tool({
description: 'Get the weather in a location (farenheit)',
description: 'Get the weather in a location (fahrenheit)',
parameters: z.object({
location: z.string().describe('The location to get the weather for'),
}),
Expand Down Expand Up @@ -309,7 +309,7 @@ export const POST = (async ({ request }) => {
messages,
tools: {
weather: tool({
description: 'Get the weather in a location (farenheit)',
description: 'Get the weather in a location (fahrenheit)',
parameters: z.object({
location: z.string().describe('The location to get the weather for'),
}),
Expand All @@ -321,12 +321,12 @@ export const POST = (async ({ request }) => {
};
},
}),
convertFarenheitToCelsius: tool({
description: 'Convert a temperature in farenheit to celsius',
convertFahrenheitToCelsius: tool({
description: 'Convert a temperature in fahrenheit to celsius',
parameters: z.object({
temperature: z
.number()
.describe('The temperature in farenheit to convert'),
.describe('The temperature in fahrenheit to convert'),
}),
execute: async ({ temperature }) => {
const celsius = Math.round((temperature - 32) * (5 / 9));
Expand Down
10 changes: 5 additions & 5 deletions content/docs/02-getting-started/05-nuxt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export default defineLazyEventHandler(async () => {
messages,
tools: {
weather: tool({
description: 'Get the weather in a location (farenheit)',
description: 'Get the weather in a location (fahrenheit)',
parameters: z.object({
location: z
.string()
Expand Down Expand Up @@ -330,7 +330,7 @@ export default defineLazyEventHandler(async () => {
messages,
tools: {
weather: tool({
description: 'Get the weather in a location (farenheit)',
description: 'Get the weather in a location (fahrenheit)',
parameters: z.object({
location: z
.string()
Expand All @@ -344,12 +344,12 @@ export default defineLazyEventHandler(async () => {
};
},
}),
convertFarenheitToCelsius: tool({
description: 'Convert a temperature in farenheit to celsius',
convertFahrenheitToCelsius: tool({
description: 'Convert a temperature in fahrenheit to celsius',
parameters: z.object({
temperature: z
.number()
.describe('The temperature in farenheit to convert'),
.describe('The temperature in fahrenheit to convert'),
}),
execute: async ({ temperature }) => {
const celsius = Math.round((temperature - 32) * (5 / 9));
Expand Down
Loading