Skip to content

Commit

Permalink
feat: add phi4 and deepseek in model list (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored Jan 21, 2025
1 parent eb27f0b commit f335865
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/frontend/pages/prompts/[[...id]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,11 @@ function Playground() {
citations = parsedLine.citations;
}

setOutput({ ...parsedLine.choices[0]?.message, citations });
let output = parsedLine.choices[0]?.message;
if (citations) {
output.citations = citations;
}
setOutput(output);
setOutputTokens(parsedLine.usage?.completion_tokens || 0);
setError(null);
} catch (error) {
Expand All @@ -383,8 +387,6 @@ function Playground() {
},
);

// setOutput({ ...output, citations });

// scroll template-input-area to the end
const element = document.getElementById("template-input-area");
element.scrollTop = element.scrollHeight;
Expand Down
10 changes: 10 additions & 0 deletions packages/shared/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,14 @@ export const MODELS = [
name: "perplexity-llama-3.1-sonar-large-128k-online",
provider: "openrouter",
},
{
id: "deepseek/deepseek-r1",
name: "deepseek-r1",
provider: "openrouter",
},
{
id: "microsoft/phi-4",
name: "phi-4",
provider: "openrouter",
},
];

0 comments on commit f335865

Please sign in to comment.