First version running with npm run dev
This commit is contained in:
commit
f90ec06a4f
28 files changed
+12042
No files matched your search
@@ -0,0 +1,31 @@
|
||||
export interface Language {
|
||||
code: string;
|
||||
name: string;
|
||||
nativeName?: string;
|
||||
}
|
||||
|
||||
export interface TranslationRequest {
|
||||
text: string;
|
||||
source: string;
|
||||
target: string;
|
||||
}
|
||||
|
||||
export interface TranslationResponse {
|
||||
translatedText: string;
|
||||
source: string;
|
||||
target: string;
|
||||
originalText: string;
|
||||
}
|
||||
|
||||
export interface OllamaTranslateRequest {
|
||||
model: string;
|
||||
prompt: string;
|
||||
stream: boolean;
|
||||
}
|
||||
|
||||
export interface OllamaTranslateResponse {
|
||||
model: string;
|
||||
created_at: string;
|
||||
response: string;
|
||||
done: boolean;
|
||||
}
|
||||
Reference in new issue
Block a user