generative-ts
generative-ts
Llama3ChatOptions
Interface Llama3ChatOptions
interface
Llama3ChatOptions
{
$prompt
:
string
;
examplePairs
?:
{
assistant
:
string
;
user
:
string
;
}
[]
;
max_gen_len
?:
number
;
modelId
:
string
;
system
?:
string
;
temperature
?:
number
;
top_p
?:
number
;
}
Hierarchy
FewShotRequestOptions
ModelRequestOptions
Llama3ChatOptions
Index
Properties
$prompt
example
Pairs?
max_
gen_
len?
model
Id
system?
temperature?
top_
p?
Properties
$prompt
$prompt
:
string
Optional
example
Pairs
example
Pairs
?:
{
assistant
:
string
;
user
:
string
;
}
[]
Type declaration
assistant
:
string
user
:
string
Optional
max_
gen_
len
max_
gen_
len
?:
number
model
Id
model
Id
:
string
Optional
system
system
?:
string
Optional
temperature
temperature
?:
number
Optional
top_
p
top_
p
?:
number
Preparing search index...
The search index is not available
generative-ts - v0.1.0-alpha.7
CONTENTS
Providers
createAwsBedrockModelProvider
createCohereModelProvider
createGroqModelProvider
createHuggingfaceInferenceModelProvider
createLmStudioModelProvider
createMistralModelProvider
createOpenAiChatModelProvider
createVertexAiModelProvider
APIs
Ai21Jurassic2Api
AmazonTitanTextApi
CohereChatApi
CohereGenerateApi
GoogleGeminiApi
HfConversationalTaskApi
HfTextGenerationTaskApi
Llama2ChatApi
Llama3ChatApi
MistralAiApi
MistralBedrockApi
OpenAiChatApi
Requests
Ai21Jurassic2Options
AmazonTitanTextOptions
CohereChatOptions
CohereGenerateOptions
GoogleGeminiOptions
HfConversationalTaskOptions
HfInferenceApiOptions
HfTextGenerationTaskOptions
Llama2ChatOptions
Llama3ChatOptions
MistralAiOptions
MistralBedrockOptions
OpenAiChatOptions
Responses
Ai21Jurassic2Response
AmazonTitanTextResponse
CohereChatResponse
CohereGenerateResponse
GoogleGeminiResponse
HfConversationalTaskResponse
HfTextGenerationTaskResponse
LlamaResponse
MistralAiResponse
MistralBedrockResponse
OpenAiChatResponse
Templates
Ai21Jurassic2Template
AmazonTitanTextTemplate
CohereChatTemplate
CohereGenerateTemplate
GoogleGeminiTemplate
HfConversationalTaskTemplate
HfTextGenerationTaskTemplate
Llama2ChatTemplate
Llama3ChatTemplate
MistralAiTemplate
MistralBedrockTemplate
OpenAiChatTemplate
Core Implementations
BaseModelProvider
FnTemplate
HttpModelProvider
Core Interfaces
HttpClient
ModelApi
ModelProvider
ModelRequestOptions
Template
ModelId
Provider: AWS Bedrock
AwsBedrockAuthConfig
Ai21Jurassic2Api
AmazonTitanTextApi
CohereGenerateApi
Llama2ChatApi
Llama3ChatApi
MistralBedrockApi
createAwsBedrockModelProvider
Provider: Cohere
CohereAuthConfig
CohereChatApi
CohereGenerateApi
createCohereModelProvider
Provider: Groq
GroqAuthConfig
OpenAiChatApi
createGroqModelProvider
Provider: GCloud VertexAI
VertexAiAuthConfig
GoogleGeminiApi
createVertexAiModelProvider
Provider: Huggingface
HuggingfaceAuthConfig
HfConversationalTaskApi
HfTextGenerationTaskApi
createHuggingfaceInferenceModelProvider
Provider: LMStudio
OpenAiChatApi
createLmStudioModelProvider
Provider: Mistral
MistralAuthConfig
MistralAiApi
createMistralModelProvider
Provider: OpenAI
OpenAiAuthConfig
OpenAiChatApi
createOpenAiChatModelProvider
Ai21 Jurassic 2
Ai21Jurassic2Options
Ai21Jurassic2Response
Ai21Jurassic2Api
Ai21Jurassic2Template
Amazon Titan Text
AmazonTitanTextOptions
AmazonTitanTextResponse
AmazonTitanTextApi
AmazonTitanTextTemplate
Cohere Chat
CohereChatOptions
CohereChatResponse
CohereChatApi
CohereChatTemplate
Cohere Generate
CohereGenerateOptions
CohereGenerateResponse
CohereGenerateApi
CohereGenerateTemplate
Google Gemini
GoogleGeminiOptions
GoogleGeminiResponse
GoogleGeminiApi
GoogleGeminiTemplate
Huggingface Conversational Task
HfConversationalTaskOptions
HfConversationalTaskResponse
HfConversationalTaskApi
HfConversationalTaskTemplate
Huggingface Text Generation Task
HfTextGenerationTaskOptions
HfTextGenerationTaskResponse
HfTextGenerationTaskApi
HfTextGenerationTaskTemplate
Llama2
Llama2ChatOptions
LlamaResponse
Llama2ChatApi
Llama2ChatTemplate
Llama3
Llama3ChatOptions
LlamaResponse
Llama3ChatApi
Llama3ChatTemplate
Mistral Bedrock
MistralBedrockOptions
MistralBedrockResponse
MistralBedrockApi
MistralBedrockTemplate
Mistral ChatCompletion
MistralAiOptions
MistralAiResponse
MistralAiApi
MistralAiTemplate
OpenAI ChatCompletion
OpenAiChatOptions
OpenAiChatResponse
OpenAiChatApi
OpenAiChatTemplate
Other
Ai21Jurassic2Api
AmazonTitanTextApi
CohereChatApi
CohereGenerateApi
GoogleGeminiApi
HfConversationalTaskApi
HfTextGenerationTaskApi
HttpClientRequest
Llama2ChatApi
Llama3ChatApi
MistralBedrockApi
InferHttpClientOptions