forked from phoenix/litellm-mirror
(test) proxy server update caching tests
This commit is contained in:
parent
e7eb495a3a
commit
7f7802ec1b
1 changed files with 4 additions and 3 deletions
|
@ -3,12 +3,13 @@ openai.api_base = "http://0.0.0.0:8000"
|
|||
dotenv.load_dotenv()
|
||||
openai.api_key = os.getenv("ANTHROPIC_API_KEY") # this gets passed as a header
|
||||
|
||||
|
||||
response1 = openai.ChatCompletion.create(
|
||||
model = "claude-instant-1",
|
||||
messages = [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "this is a test message, what model / llm are you"
|
||||
"content": "write a short poem about litellm"
|
||||
}
|
||||
],
|
||||
)
|
||||
|
@ -25,7 +26,7 @@ response2 = openai.ChatCompletion.create(
|
|||
messages = [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "this is a test message, what model / llm are you"
|
||||
"content": "write a short poem about litellm"
|
||||
}
|
||||
],
|
||||
)
|
||||
|
@ -43,7 +44,7 @@ try:
|
|||
messages = [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "this is a test message, what model / llm are you"
|
||||
"content": "write a short poem about litellm"
|
||||
}
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue