import fireworks.client
fireworks.client.api_key = "your-key"
completion = fireworks.client.Completion.create(
"accounts/fireworks/models/llama-v2-7b",
"Once upon a time",
max_tokens=16
)
curl --request POST \
--url https://api.fireworks.ai/inference/v1/chat/completions \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN_HERE' \
--data '
{
"messages": [
{
"role": "user",
"content": "hello there!"
}
],
"model": "accounts/fireworks/models/llama-v2-7b-chat"
}'
We will also support uploading your own addons to the platform, so that you can share it with everyone. Here are a few example addons that we got from the open source community.
© 2023 Fireworks AI. All rights reserved. | Privacy Policy | Terms of Service