Skip to content

Commit

Permalink
fix types for build
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Węgliński authored and Krzysztof Węgliński committed Jan 14, 2025
1 parent 9f2876f commit 923da43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/translate/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const API = () => {
model: window.ollama_model ?? "llama3.2",
};
const getOllamaTranslation = (
source: LangChoice,
_source: LangChoice,
target: LangChoice,
text: string
) =>
Expand Down
1 change: 1 addition & 0 deletions src/translate/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export type LangChoice = Lang & History;
export type TranslationResponse = {
alternatives: string[];
translatedText: string;
notableWords?: string;
detectedLanguage?: {
language: string;
};
Expand Down

0 comments on commit 923da43

Please sign in to comment.