Skip to content

Commit

Permalink
Merge pull request #2456 from Dimitrolito/fix/spelling
Browse files Browse the repository at this point in the history
Fix spelling error
  • Loading branch information
tcm390 authored Jan 17, 2025
2 parents 7ac4645 + f38aded commit ba4752b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const dateRangeTemplate = `# Messages we are summarizing (the conversatio
{{recentMessages}}
# Instructions: {{senderName}} is requesting a summary of the conversation. Your goal is to determine their objective, along with the range of dates that their request covers.
The "objective" is a detailed description of what the user wants to summarize based on the conversation. If they just ask for a general summary, you can either base it off the converation if the summary range is very recent, or set the object to be general, like "a detailed summary of the conversation between all users".
The "objective" is a detailed description of what the user wants to summarize based on the conversation. If they just ask for a general summary, you can either base it off the conversation if the summary range is very recent, or set the object to be general, like "a detailed summary of the conversation between all users".
The "start" and "end" are the range of dates that the user wants to summarize, relative to the current time. The start and end should be relative to the current time, and measured in seconds, minutes, hours and days. The format is "2 days ago" or "3 hours ago" or "4 minutes ago" or "5 seconds ago", i.e. "<integer> <unit> ago".
If you aren't sure, you can use a default range of "0 minutes ago" to "2 hours ago" or more. Better to err on the side of including too much than too little.
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-birdeye/src/actions/token-search-symbol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const tokenSearchSymbolAction = {
)
);

// get filter the resuls to only include the token results and then filter the results to only include the ones that match the symbol
// get filter the results to only include the token results and then filter the results to only include the ones that match the symbol
const validResults = results.map((r, i) =>
r.data.items
.filter((item) => item.type === "token" && item.result)
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-bootstrap/src/providers/boredom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const cringeWords = [
"uncharted",
"multifaceted",
"comprehensive",
"multi-dimentional",
"multi-dimensional",
"explore",
"elevate",
"leverage",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-obsidian/src/actions/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const searchAction: Action = {
"FULL_SEARCH_VAULT",
"FULL_SEARCH_NOTES",
"FULL_SEARCH_FILES",
"SERCH_ALL",
"SEARCH_ALL",
"SEARCH_ALL_NOTES",
"SEARCH_ALL_FILES",
"SEARCH_VAULT",
Expand Down
10 changes: 5 additions & 5 deletions packages/plugin-starknet/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ export const getPercent = (amount: string | number, decimals: number) => {
return new Percent(amount, decimals);
};

export const parseFormatedAmount = (amount: string) => amount.replace(/,/g, "");
export const parseFormattedAmount = (amount: string) => amount.replace(/,/g, "");

export const PERCENTAGE_INPUT_PRECISION = 2;

export const parseFormatedPercentage = (percent: string) =>
export const parseFormattedPercentage = (percent: string) =>
new Percent(
+percent * 10 ** PERCENTAGE_INPUT_PRECISION,
100 * 10 ** PERCENTAGE_INPUT_PRECISION
Expand All @@ -65,12 +65,12 @@ export const formatCurrenyAmount = (
};

export const formatPercentage = (percentage: Percent) => {
const formatedPercentage = +percentage.toFixed(2);
const formattedPercentage = +percentage.toFixed(2);
const exact = percentage.equalTo(
new Percent(Math.round(formatedPercentage * 100), 10000)
new Percent(Math.round(formattedPercentage * 100), 10000)
);

return `${exact ? "" : "~"}${formatedPercentage}%`;
return `${exact ? "" : "~"}${formattedPercentage}%`;
};

export type RetryConfig = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import { tavily } from "@tavily/core";
import { IWebSearchService, SearchOptions, SearchResponse } from "../types";

export type TavilyClient = ReturnType<typeof tavily>; // declaring manually because orginal package does not export its types
export type TavilyClient = ReturnType<typeof tavily>; // declaring manually because original package does not export its types

export class WebSearchService extends Service implements IWebSearchService {
public tavilyClient: TavilyClient
Expand Down

0 comments on commit ba4752b

Please sign in to comment.