Skip to content

Commit

Permalink
chore: Fix Style
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon committed Mar 2, 2024
1 parent e012797 commit 553f547
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@

- [x] [OpenAI](https://platform.openai.com/)
- [x] [智谱 AI](https://www.zhipuai.cn/)
- [x] [Gemini Pro](https://gemini.google.com/)
- [x] [Ollama](https://www.ollama.com/) (离线)
- [x] [阿里翻译](https://www.aliyun.com/product/ai/alimt)
- [x] [百度翻译](https://fanyi.baidu.com/)
- [x] [彩云小译](https://fanyi.caiyunapp.com/)
Expand Down
2 changes: 2 additions & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@

- [x] [OpenAI](https://platform.openai.com/)
- [x] [ChatGLM](https://www.zhipuai.cn/)
- [x] [Gemini Pro](https://gemini.google.com/)
- [x] [Ollama](https://www.ollama.com/) (Offline)
- [x] [Ali Translate](https://www.aliyun.com/product/ai/alimt)
- [x] [Baidu Translate](https://fanyi.baidu.com/)
- [x] [Caiyun](https://fanyi.caiyunapp.com/)
Expand Down
3 changes: 0 additions & 3 deletions src/services/translate/ollama/Config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ export function Config(props) {
const [installedModels, setInstalledModels] = useState(null);
const { t } = useTranslation();
const toastStyle = useToastStyle();
console.log(serviceConfig);
console.log(installedModels);

async function getModles() {
try {
Expand All @@ -55,7 +53,6 @@ export function Config(props) {
const ollama = new Ollama({ host: serviceConfig.requestPath });
const stream = await ollama.pull({ model: serviceConfig.model, stream: true });
for await (const part of stream) {
console.log(part);
if (part.digest) {
let percent = 0;
if (part.completed && part.total) {
Expand Down
1 change: 0 additions & 1 deletion src/services/translate/ollama_custom/Config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export function Config(props) {
const ollama = new Ollama({ host: serviceConfig.requestPath });
const stream = await ollama.pull({ model: serviceConfig.model, stream: true });
for await (const part of stream) {
console.log(part);
if (part.digest) {
let percent = 0;
if (part.completed && part.total) {
Expand Down
3 changes: 0 additions & 3 deletions src/services/translate/ollama_polish/Config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ export function Config(props) {
const [installedModels, setInstalledModels] = useState(null);
const { t } = useTranslation();
const toastStyle = useToastStyle();
console.log(serviceConfig);
console.log(installedModels);

async function getModles() {
try {
Expand All @@ -54,7 +52,6 @@ export function Config(props) {
const ollama = new Ollama({ host: serviceConfig.requestPath });
const stream = await ollama.pull({ model: serviceConfig.model, stream: true });
for await (const part of stream) {
console.log(part);
if (part.digest) {
let percent = 0;
if (part.completed && part.total) {
Expand Down
3 changes: 0 additions & 3 deletions src/services/translate/ollama_summary/Config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ export function Config(props) {
const [installedModels, setInstalledModels] = useState(null);
const { t } = useTranslation();
const toastStyle = useToastStyle();
console.log(serviceConfig);
console.log(installedModels);

async function getModles() {
try {
Expand All @@ -54,7 +52,6 @@ export function Config(props) {
const ollama = new Ollama({ host: serviceConfig.requestPath });
const stream = await ollama.pull({ model: serviceConfig.model, stream: true });
for await (const part of stream) {
console.log(part);
if (part.digest) {
let percent = 0;
if (part.completed && part.total) {
Expand Down

0 comments on commit 553f547

Please sign in to comment.