Create an HTTP LLM application instance.

Create an IHttpLlmApplication instance which represents the LLM (Large Language Model) function calling application schema from the given Swagger/OpenAPI document and the target LLM model.

By the way, even though this createHttpLlmApplication function supports every version of Swagger/OpenAPI specification, there can be a type error in the given document. In that case, the function will return IValidation.IFailure instance with detailed type error tracing information.

Samchon

  • Parameters

    • props: {
          document: IDocument | IDocument | IDocument | IDocument;
          model: "chatgpt";
          options?: Partial<IOptions<"chatgpt">>;
      }

      Properties to create the HTTP LLM application instance

      • document: IDocument | IDocument | IDocument | IDocument

        Swagger/OpenAPI document.

      • model: "chatgpt"

        Target LLM model.

      • Optionaloptions?: Partial<IOptions<"chatgpt">>

        Options for the LLM function calling schema composition.

    Returns IValidation<IHttpLlmApplication<"chatgpt">>

    Validation result of the HTTP LLM application composition