Skip to content

Commit

Permalink
More emensions
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Feb 3, 2025
1 parent d2613d1 commit e3afd89
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const main = async (): Promise<void> => {
// Let's imagine that LLM has selected a function to call
const func: IHttpLlmFunction<"chatgpt"> | undefined =
application.functions.find(
// (f) => f.name === "llm_selected_fuction_name"
// (f) => f.name === "llm_selected_function_name"
(f) => f.path === "/bbs/articles" && f.method === "post",
);
if (func === undefined) throw new Error("No matched function exists.");
Expand Down Expand Up @@ -324,7 +324,7 @@ const main = async (): Promise<void> => {
// Let's imagine that LLM has selected a function to call
const func: IHttpLlmFunction<"chatgpt"> | undefined =
application.functions.find(
// (f) => f.name === "llm_selected_fuction_name"
// (f) => f.name === "llm_selected_function_name"
(f) => f.path === "/shoppings/sellers/sale" && f.method === "post",
);
if (func === undefined) throw new Error("No matched function exists.");
Expand Down Expand Up @@ -433,7 +433,7 @@ const main = async (): Promise<void> => {
// Let's imagine that LLM has selected a function to call
const func: IHttpLlmFunction<"claude"> | undefined =
application.functions.find(
// (f) => f.name === "llm_selected_fuction_name"
// (f) => f.name === "llm_selected_function_name"
(f) => f.path === "/shoppings/sellers/sale" && f.method === "post",
);
if (func === undefined) throw new Error("No matched function exists.");
Expand Down
4 changes: 2 additions & 2 deletions src/OpenApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ export namespace OpenApi {
/**
* Minimum items restriction.
*
* Restriction of minumum number of items in the array.
* Restriction of minimum number of items in the array.
*
* @type uint64
*/
Expand Down Expand Up @@ -929,7 +929,7 @@ export namespace OpenApi {
/**
* Minimum items restriction.
*
* Restriction of minumum number of items in the tuple.
* Restriction of minimum number of items in the tuple.
*
* @type uint64
*/
Expand Down
2 changes: 1 addition & 1 deletion src/structures/IHttpConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface IHttpConnection {
}
export namespace IHttpConnection {
/**
* Addiotional options for the `fetch` function.
* Additional options for the `fetch` function.
*
* Almost same with {@link RequestInit} type of the {@link fetch} function,
* but `body`, `headers` and `method` properties are omitted.
Expand Down
6 changes: 3 additions & 3 deletions src/structures/ILlmSchemaV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* using the tuple array type in the LLM function calling.
*
* Also, if you configure {@link ILlmSchemaV3.IConfig.constraint} to `false`,
* tehse properties would be banned and written to the
* these properties would be banned and written to the
* {@link ILlmSchemaV3.__IAttribute.description} property instead. It's because
* there are some LLM models which does not support the constraint properties.
*
Expand Down Expand Up @@ -290,7 +290,7 @@ export namespace ILlmSchemaV3 {
/**
* Minimum items restriction.
*
* Restriction of minumum number of items in the array.
* Restriction of minimum number of items in the array.
*
* @type uint64
*/
Expand Down Expand Up @@ -467,7 +467,7 @@ export namespace ILlmSchemaV3 {
*/
export interface IConfig {
/**
* Whether to allow contraint properties or not.
* Whether to allow constraint properties or not.
*
* If you configure this property to `false`, the schemas do not contain
* the constraint properties of below. Instead, below properties would be
Expand Down
4 changes: 2 additions & 2 deletions src/structures/ILlmSchemaV3_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export namespace ILlmSchemaV3_1 {
/**
* Minimum items restriction.
*
* Restriction of minumum number of items in the array.
* Restriction of minimum number of items in the array.
*
* @type uint64
*/
Expand Down Expand Up @@ -510,7 +510,7 @@ export namespace ILlmSchemaV3_1 {
*/
export interface IConfig {
/**
* Whether to allow contraint properties or not.
* Whether to allow constraint properties or not.
*
* If you configure this property to `false`, the schemas do not contain
* the constraint properties of below. Instead, below properties would be
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TestValidator } from "@nestia/e2e";
import { HttpLlm, IHttpLlmApplication, OpenApi } from "@samchon/openapi";

export const test_http_llm_application_funtion_name_length =
export const test_http_llm_application_function_name_length =
async (): Promise<void> => {
const document: OpenApi.IDocument = OpenApi.convert(
await fetch(
Expand Down

0 comments on commit e3afd89

Please sign in to comment.