mirror of https://github.com/sigoden/aichat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
656 B
Rust
20 lines
656 B
Rust
openai_compatible_client!(
|
|
PerplexityConfig,
|
|
PerplexityClient,
|
|
"https://api.perplexity.ai",
|
|
[
|
|
// https://docs.perplexity.ai/docs/model-cards
|
|
("sonar-small-chat", "text", 16384),
|
|
("sonar-small-online", "text", 12000),
|
|
("sonar-medium-chat", "text", 16384),
|
|
("sonar-medium-online", "text", 12000),
|
|
|
|
("llama-3-8b-instruct", "text", 8192),
|
|
("llama-3-70b-instruct", "text", 8192),
|
|
("codellama-70b-instruct", "text", 16384),
|
|
("mistral-7b-instruct", "text", 16384),
|
|
("mixtral-8x7b-instruct", "text", 16384),
|
|
("mixtral-8x22b-instruct", "text", 16384),
|
|
]
|
|
);
|