Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
justin1121 committed Sep 26, 2023
1 parent 1bb6b5b commit e4a36de
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/llama/llama.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
from pycape.llms import Cape
import os

from pycape.llms import Cape

c = Cape(url="https://api.capeprivacy.com")

token = c.token(os.getenv("CAPE_TOKEN", ""))

for msg in c.chat_completions(
[
{"role": "user", "content": "<s>[INST] <<SYS>>You are a helpful Assistant.<</SYS>>\n\nWhat is the Capital of France? [/INST]"},
{
"role": "user",
"content": "<s>[INST] <<SYS>>You are a helpful Assistant.<</SYS>>"
"\n\nWhat is the Capital of France? [/INST]",
},
{"role": "system", "content": "you are a happy helpful assistant"},
],
token,
Expand Down

0 comments on commit e4a36de

Please sign in to comment.