Skip to content

Commit

Permalink
litellm with aws bedrock (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyliu513 authored Sep 16, 2024
1 parent fe1cbfb commit 488bc88
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions litellm/litellm-bedrock.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

from dotenv import load_dotenv
load_dotenv()

from litellm import completion

response = completion(
model="bedrock/amazon.titan-text-express-v1",
messages=[{ "content": "Tell me sth about IBM?","role": "user"}]
)

print(response)

0 comments on commit 488bc88

Please sign in to comment.