mirror of https://github.com/sigoden/aichat
feat: support perplexity (#444)
parent
503ec98bd1
commit
a21e1213cc
@ -0,0 +1,19 @@
|
||||
openai_compatible_module!(
|
||||
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),
|
||||
]
|
||||
);
|
Loading…
Reference in New Issue