The TypeScript library for building AI applications.
MIT License
Bot releases are hidden (Show)
Published by lgrammel 11 months ago
generateToolCallsOrText
function for generating a multiple parallel tool call using the OpenAI chat/tools API.Published by lgrammel 11 months ago
ChatPrompt
structure and terminology has changed to align more closely with OpenAI and similar chat prompts. This is also in preparation for integrating images and function calls results into chat prompts.Llama2PromptFormat.chat()
instead of mapChatPromptToLlama2Format()
. See Prompt Format for documentation of the new prompt formats.Published by lgrammel 11 months ago
Published by lgrammel 11 months ago
Published by lgrammel 11 months ago
parseJSON
and safeParseJSON
to securely parse JSON objects and optionally type-check them using any schema (e.g. a Zod schema).Published by lgrammel 11 months ago
format
(for forcing JSON output) and raw
settingsPublished by lgrammel 11 months ago
Published by lgrammel 11 months ago
gpt-4-0613
modelstrimWhitespace
model setting in streamText
callsPublished by lgrammel 11 months ago
Published by lgrammel 11 months ago
OpenAIChatMessage.user
mapInstructionPromptToBakLLaVA1ForLlamaCppFormat
prompt formatVisionInstructionPrompt
was replaced by an optional image
field in InstructionPrompt
.Published by lgrammel 11 months ago
examples/basic/src/model-provider/openai/openai-chat-stream-text-vision-example.ts
VisionInstructionPromptFormat
: abstraction for single instruction, single image vision prompts. Mappings for Llama.cpp and OpenAI vision models available.
examples/basic/src/model-provider/llamacpp/llamacpp-stream-text-vision-with-vision-prompt-example.ts
Published by lgrammel 12 months ago
seed
and responseFormat
options.Published by lgrammel 12 months ago
gpt-3.5-turbo-1106
, gpt-4-1106-preview
, gpt-4-vision-preview
chat models.Dalle-E-3
image model.OpenAIImageGenerationModel
now requires a model
parameter.Published by lgrammel 12 months ago
.withTextPrompt()
to get a text prompt format.Published by lgrammel 12 months ago
eleven_turbo_v2
support.Published by lgrammel 12 months ago
{ returnType: "full" }
option instead of calling .asFullResponse()
on the result.Published by lgrammel 12 months ago
Published by lgrammel 12 months ago
Published by lgrammel 12 months ago