🔍
VSCode拡張のContinueでPerplexity APIを使う方法
やり方
- WebのPerplexity上の「設定」→「API」からAPIキーを生成
- Continue内の
config.json
の"models"内に以下のコードを追加- 適宜モデルやsystemMessageなどを編集して使ってみてください
- 使用可能なモデルは公式サイトより確認できます。
{
"title": "Sonar Pro",
"model": "sonar-pro",
"systemMessage": "あなたはソフトウェア開発のエキスパートです。あなたは親切で簡潔な回答をします。引用番号や参照番号を含めず、必ず日本語で回答してください。",
"apiBase": "https://api.perplexity.ai",
"apiKey": "pplx-*******************************************",
"completionOptions": {
"temperature": 0
},
"provider": "openrouter"
}
最後に
個人的に、モデルはこんな風に使い分けてます
- Sonar Pro ≒ Pro Search
- Sonar Reasoning ≒ DeepSeek R1による推論
- (Sonar ReasoningはDeepSeek R1ベースらしいです)
- r1-1776 = 純粋なDeepSeek R1
Discussion