test: remove local test

This commit is contained in:
Krrish Dholakia 2023-12-05 12:45:52 -08:00
parent a9b50a12c5
commit 397eefabe1

View file

@ -1,38 +1,39 @@
from langchain.chat_models import ChatOpenAI ## LOCAL TEST
from langchain.prompts.chat import ( # from langchain.chat_models import ChatOpenAI
ChatPromptTemplate, # from langchain.prompts.chat import (
HumanMessagePromptTemplate, # ChatPromptTemplate,
SystemMessagePromptTemplate, # HumanMessagePromptTemplate,
) # SystemMessagePromptTemplate,
from langchain.schema import HumanMessage, SystemMessage # )
# from langchain.schema import HumanMessage, SystemMessage
chat = ChatOpenAI( # chat = ChatOpenAI(
openai_api_base="http://0.0.0.0:8000", # openai_api_base="http://0.0.0.0:8000",
model = "gpt-3.5-turbo", # model = "gpt-3.5-turbo",
temperature=0.1 # temperature=0.1
) # )
messages = [ # messages = [
SystemMessage( # SystemMessage(
content="You are a helpful assistant that im using to make a test request to." # content="You are a helpful assistant that im using to make a test request to."
), # ),
HumanMessage( # HumanMessage(
content="test from litellm. tell me why it's amazing in 1 sentence" # content="test from litellm. tell me why it's amazing in 1 sentence"
), # ),
] # ]
response = chat(messages) # response = chat(messages)
print(response) # print(response)
claude_chat = ChatOpenAI( # claude_chat = ChatOpenAI(
openai_api_base="http://0.0.0.0:8000", # openai_api_base="http://0.0.0.0:8000",
model = "claude-v1", # model = "claude-v1",
temperature=0.1 # temperature=0.1
) # )
response = claude_chat(messages) # response = claude_chat(messages)
print(response) # print(response)