LLMs

class ClaudeInstant1(auth_token: str = None, api_key: str = None)

Class for Claude-Instant-1 LLM by Anthropic.

Parameters:
  • auth_token (str | None) – Authentication token for accessing Claude-Instant-1 LLM

  • api_key (str | None) – API Key for accessing Claude-Instant-1 LLM

Example:

from llmbox.llms import ClaudeInstant1

llm = ClaudeInstant1()
response = llm.generate(prompt='\n\nHuman: How big is the earth? \n\nAssistant:')
print(response)
class Claude2(auth_token: str = None, api_key: str = None)

Class for Claude-2 LLM by Anthropic.

Parameters:
  • auth_token (str | None) – Authentication token for accessing Claude-2 LLM

  • api_key (str | None) – API Key for accessing Claude-2 LLM

Example:

from llmbox.llms import ClaudeInstant1

llm = Claude2()
response = llm.generate(prompt='\n\nHuman: How big is the earth? \n\nAssistant:')
print(response)