Skip to content

Commit

Permalink
fixing python example syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jmansdorfer committed Jun 10, 2024
1 parent 4a45e9c commit ca75615
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fern/docs/pages/sdks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ from predictionguard import PredictionGuard
os.environ["PREDICTIONGUARD_API_KEY"]

client = PredictionGuard(
api_key="<your Prediction Guard API Key"
api_key="<your Prediction Guard API Key>"
)

messages = [
Expand All @@ -57,9 +57,9 @@ messages = [
]

result = client.chat.completions.create(
"model": "Hermes-2-Pro-Llama-3-8B",
"messages": messages,
"max_tokens": 100
model="Hermes-2-Pro-Llama-3-8B",
messages=messages,
max_tokens=100
)

print(json.dumps(
Expand Down

0 comments on commit ca75615

Please sign in to comment.