Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for VLLM #792

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/docs/snippets/clients/providers/other.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,21 @@ client<llm> MyClient {
}
}
```


### VLLM

https://docs.vllm.ai/ - Easy, fast, and cheap LLM serving for everyone

See https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html for more information.

```baml BAML
client<llm> MyClient {
provider openai
options {
base_url "http://localhost:8000/v1"
api_key "token-abc123"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: Consider using an environment variable for the API key instead of hardcoding it.

Suggested change
api_key "token-abc123"
api_key env.VLLM_API_KEY

model "NousResearch/Meta-Llama-3-8B-Instruct"
}
}
```
Loading