Python

2024

在Python脚本中集成OpenAI o1-preview模型并处理LaTeX表达式

Logo

了解如何在Python脚本中集成新的OpenAI o1-preview模型,以丰富您的人工智能项目。该脚本允许您使用o1-preview模型与OpenAI API进行交互,并可以通过网络抓取功能在提示中包含网页内容。此外,它能够正确处理模型响应中的LaTeX数学表达式,将其转换为可在终端中读取的Unicode文本。

Lire la suite →

ओपनएआई o1-preview मॉडल को एक Python स्क्रिप्ट में LaTeX अभिव्यक्तियों के प्रबंधन के साथ एकीकृत करें

Logo

यह जानें कि नए OpenAI o1-preview मॉडल को अपने आर्टिफिशियल इंटेलिजेंस प्रोजेक्ट्स में समृद्ध करने के लिए एक Python स्क्रिप्ट में कैसे एकीकृत किया जाए। यह स्क्रिप्ट आपको o1-preview मॉडल का उपयोग करके OpenAI API के साथ इंटरैक्ट करने की अनुमति देती है, जिसमें वेब स्क्रैपिंग की कार्यक्षमता के माध्यम से प्रम्प्ट्स में वेब सामग्री शामिल करने की संभावना है। इसके अलावा, यह मॉडल के उत्तरों में गणितीय LaTeX अभिव्यक्तियों का सही प्रबंधन करता है, उन्हें टर्मिनल में पठनीय यूनिकोड टेक्स्ट में बदलकर।

Lire la suite →

دمج نموذج OpenAI o1-preview في سكريبت بايثون مع إدارة التعابير من LaTeX

Logo

اكتشف كيف يمكنك دمج النموذج الجديد OpenAI o1-preview في سكريبت بايثون لتعزيز مشاريعك في الذكاء الاصطناعي. يسمح لك هذا السكريبت بالتفاعل مع واجهة برمجة التطبيقات OpenAI باستخدام النموذج o1-preview، مع إمكانية تضمين محتوى الويب في الطلبات باستخدام خاصية الويب سكرايبينغ. بالإضافة إلى ذلك، يقوم بإدارة التعابير الرياضية من LaTeX في ردود النموذج، وتحويلها إلى نص يونيكود قابل للقراءة في المحطة الطرفية.

Lire la suite →

Wdrażanie modelu OpenAI o1-preview w skrypcie Pythona z obsługą wyrażeń LaTeX

Logo

Dowiedz się, jak zintegrować nowy model OpenAI o1-preview w skrypcie Pythona, aby wzbogacić swoje projekty sztucznej inteligencji. Ten skrypt pozwala na interakcję z API OpenAI za pomocą modelu o1-preview, z możliwością włączania treści z sieci do promptów dzięki funkcji web scrapingu. Ponadto, skrypt poprawnie obsługuje wyrażenia matematyczne LaTeX w odpowiedziach modelu, przekształcając je w czytelny tekst Unicode do wyświetlania w terminalu.

Lire la suite →

PythonスクリプトにおけるLaTeX式の管理を伴ったOpenAI o1-previewモデルの統合

Logo

新しいOpenAI o1-previewモデルをPythonスクリプトに統合し、AIプロジェクトを充実させる方法をご紹介します。このスクリプトでは、o1-previewモデルを使用してOpenAI APIとやりとりをし、ウェブスクレイピング機能を活用してプロンプトにウェブコンテンツを組み込むことができます。さらに、モデルの応答に含まれるLaTeX数学式をターミナルで読みやすいUnicodeテキストに変換する機能を備えています。

Lire la suite →

Python 스크립트에 OpenAI o1-preview 모델을 통합하고 LaTeX 표현식을 관리하기

Logo

새로운 OpenAI o1-preview 모델을 Python 스크립트에 통합하여 인공지능 프로젝트를 풍부하게 만드는 방법을 알아보세요. 이 스크립트는 o1-preview 모델을 사용하여 OpenAI API와 상호 작용할 수 있게 하며, 웹 스크래핑 기능을 통해 프롬프트에 웹 콘텐츠를 포함할 수 있는 가능성을 제공합니다. 또한, 모델의 응답에서 LaTeX 수학 표현식을 올바르게 관리하고, 이를 터미널에서 읽을 수 있는 유니코드 텍스트로 변환합니다.

Lire la suite →

Integrera OpenAI o1-preview-modellen i ett Python-skript med hantering av LaTeX-uttryck

Logo

Upptäck hur man integrerar den nya modellen OpenAI o1-preview i ett Python-skript för att berika dina AI-projekt. Detta skript låter dig interagera med OpenAI API genom att använda modellen o1-preview, med möjlighet att inkludera webb-innehåll i promptarna tack vare en web scraping-funktion. Dessutom hanterar den korrekt de matematiska LaTeX-uttrycken i modellens svar, genom att konvertera dem till Unicode-text som är läsbar i terminalen.

Lire la suite →

Intégrer le modèle OpenAI o1-preview dans un script Python avec gestion des expressions LaTeX

Logo

Découvrez comment intégrer le nouveau modèle OpenAI o1-preview dans un script Python pour enrichir vos projets d’intelligence artificielle. Ce script vous permet d’interagir avec l’API OpenAI en utilisant le modèle o1-preview, avec la possibilité d’inclure du contenu web dans les prompts grâce à une fonctionnalité de web scraping. De plus, il gère correctement les expressions mathématiques LaTeX dans les réponses du modèle, en les convertissant en texte Unicode lisible dans le terminal.

Lire la suite →

Integreer het OpenAI o1-preview model in een Python script met LaTeX expressiebeheer

Logo

Ontdek hoe je het nieuwe OpenAI o1-preview model kunt integreren in een Python script om je kunstmatige intelligentie projecten te verrijken. Dit script stelt je in staat te communiceren met de OpenAI API met behulp van het o1-preview model, met de mogelijkheid om webinhoud op te nemen in prompts dankzij een web scraping functionaliteit. Bovendien beheert het correct wiskundige LaTeX expressies in de reacties van het model, door ze te converteren naar leesbare Unicode tekst in de terminal.

Lire la suite →

Integration des OpenAI o1-preview-Modells in ein Python-Skript mit LaTeX-Ausdrucksverwaltung

Logo

Erfahren Sie, wie Sie das neue OpenAI o1-preview-Modell in ein Python-Skript integrieren können, um Ihre KI-Projekte zu bereichern. Dieses Skript ermöglicht die Interaktion mit der OpenAI-API unter Verwendung des Modells o1-preview, mit der Möglichkeit, Webinhalte in die Eingabeaufforderungen einzubinden dank einer Web-Scraping-Funktionalität. Zudem verwaltet es korrekt LaTeX-Mathematikausdrücke in den Antworten des Modells, indem es diese in lesbaren Unicode-Text im Terminal konvertiert.

Lire la suite →

Integrate the OpenAI o1-preview model into a Python script with LaTeX expression handling

Logo

Discover how to integrate the new OpenAI o1-preview model into a Python script to enhance your artificial intelligence projects. This script allows you to interact with the OpenAI API using the o1-preview model, with the possibility of including web content in prompts through a web scraping feature. Moreover, it correctly handles LaTeX mathematical expressions in the model’s responses, converting them into Unicode text readable in the terminal.

Lire la suite →

Integrarea modelului OpenAI o1-preview într-un script Python cu gestionare a expresiilor LaTeX

Logo

Descoperiți cum să integrați noul model OpenAI o1-preview într-un script Python pentru a îmbogăți proiectele dumneavoastră de inteligență artificială. Acest script vă permite să interacționați cu API-ul OpenAI folosind modelul o1-preview, cu posibilitatea de a include conținut web în prompturi datorită unei funcționalități de web scraping. În plus, gestionează corect expresiile matematice LaTeX în răspunsurile modelului, transformându-le în text Unicode lizibil în terminal.

Lire la suite →

Integrare il modello OpenAI o1-preview in uno script Python con gestione delle espressioni LaTeX

Logo

Scopri come integrare il nuovo modello OpenAI o1-preview in uno script Python per arricchire i tuoi progetti di intelligenza artificiale. Questo script ti permette di interagire con l’API OpenAI utilizzando il modello o1-preview, con la possibilità di includere contenuti web nei prompt grazie a una funzionalità di web scraping. Inoltre, gestisce correttamente le espressioni matematiche LaTeX nelle risposte del modello, convertendole in testo Unicode leggibile nel terminale.

Lire la suite →

Integrar o modelo OpenAI o1-preview em um script Python com gestão de expressões LaTeX

Logo

Descubra como integrar o novo modelo OpenAI o1-preview em um script Python para enriquecer seus projetos de inteligência artificial. Este script permite que você interaja com a API OpenAI usando o modelo o1-preview, com a possibilidade de incluir conteúdo web nos prompts através de uma funcionalidade de web scraping. Além disso, ele gerencia corretamente as expressões matemáticas LaTeX nas respostas do modelo, convertendo-as em texto Unicode legível no terminal.

Lire la suite →

Integrar el modelo OpenAI o1-preview en un script de Python con gestión de expresiones LaTeX

Logo

Descubra cómo integrar el nuevo modelo OpenAI o1-preview en un script de Python para enriquecer sus proyectos de inteligencia artificial. Este script le permite interactuar con la API de OpenAI utilizando el modelo o1-preview, con la posibilidad de incluir contenido web en los prompts gracias a una funcionalidad de web scraping. Además, gestiona correctamente las expresiones matemáticas LaTeX en las respuestas del modelo, convirtiéndolas en texto Unicode legible en el terminal.

Lire la suite →

通过Python POC脚本探索Anthropic AI的Claude API

在这篇文章中,我们将通过创建一个Python概念验证(POC)脚本来探索Anthropic AI的Claude API。该脚本突出了Claude API的功能,并展示了如何将AI集成到您的应用程序和工作流程中。

Lire la suite →

探索 Anthropic AI 的 Claude API 通过一个 Python POC 脚本

Logo

在这篇文章中,我们将通过创建一个 Python 概念验证 (POC) 脚本来探索 Anthropic AI 的 Claude API。该脚本突显了 Claude API 的能力,并展示了如何将 AI 集成到您的应用程序和工作流程中。

Lire la suite →

एंथ्रोपिक एआई के क्लॉड एपीआई का एक पायथन POC स्क्रिप्ट के माध्यम से अन्वेषण

Logo

इस लेख में, हम एंथ्रोपिक एआई के क्लॉड एपीआई का अन्वेषण करेंगे और एक पायथन प्रूफ ऑफ कांसेप्ट (POC) स्क्रिप्ट बनाएंगे। यह स्क्रिप्ट क्लॉड एपीआई की क्षमताओं को उजागर करती है और दिखाती है कि कैसे एआई को आपके एप्लिकेशन और वर्कफ्लो में एकीकृत किया जा सकता है।

Lire la suite →

استكشاف واجهة برمجة التطبيقات Claude من Anthropic AI من خلال سكريبت POC بايثون

Logo

في هذه المقالة، سنستكشف واجهة برمجة التطبيقات Claude من Anthropic AI من خلال إنشاء سكريبت بايثون لإثبات المفهوم (POC). هذا السكريبت يسلط الضوء على قدرات واجهة برمجة التطبيقات Claude ويظهر كيفية دمج الذكاء الاصطناعي في تطبيقاتك ومسارات العمل الخاصة بك.

Lire la suite →

Verkenning van de API Claude van Anthropic AI via een Python POC-script

Logo

In dit artikel gaan we de API Claude van Anthropic AI verkennen door een Python Proof of Concept (POC) script te maken. Dit script benadrukt de mogelijkheden van de API Claude en laat zien hoe je AI kunt integreren in je applicaties en workflows.

Lire la suite →

Utforska Claudes API av Anthropic AI genom ett Python POC-skript

Logo

I den här artikeln ska vi utforska Claudes API från Anthropic AI genom att skapa ett konceptbevis (POC) i Python. Detta skript belyser funktionerna i Claudes API och visar hur man integrerar AI i dina applikationer och arbetsflöden.

Lire la suite →

Untersuchung der Claude API von Anthropic AI durch ein Python-POC-Skript

Logo

In diesem Artikel werden wir die Claude API von Anthropic AI untersuchen, indem wir ein Proof of Concept (POC)-Python-Skript erstellen. Dieses Skript hebt die Fähigkeiten der Claude API hervor und zeigt, wie man KI in Ihre Anwendungen und Arbeitsabläufe integrieren kann.

Lire la suite →

Exploring Anthropic AI's Claude API through a Python POC script

In this article, we will explore Anthropic AI’s Claude API by creating a Python Proof of Concept (POC) script. This script highlights the capabilities of the Claude API and shows how to integrate AI into your applications and workflows.

Lire la suite →

Exploration of Anthropic AI's Claude API through a Python POC Script

Logo

In this article, we will explore Anthropic AI’s Claude API by creating a Python Proof of Concept (POC) script. This script highlights the capabilities of the Claude API and demonstrates how to integrate AI into your applications and workflows.

Lire la suite →

Exploration de l'API Claude d'Anthropic AI à travers un script Python POC

Logo

Dans cet article, nous allons explorer l’API Claude d’Anthropic AI en créant un script Python Proof of Concept (POC). Ce script met en lumière les capacités de l’API Claude et montre comment intégrer l’IA dans vos applications et flux de travail.

Lire la suite →

Exploration API Claude de Anthropic AI printr-un script Python POC

Logo

În acest articol, vom explora API Claude de Anthropic AI prin crearea unui script Python Proof of Concept (POC). Acest script evidențiază capacitățile API Claude și arată cum să integrați IA în aplicațiile și fluxurile dvs. de lucru.

Lire la suite →

Exploración de la API Claude de Anthropic AI a través de un script Python POC

Logo

En este artículo, vamos a explorar la API Claude de Anthropic AI creando un script Python Proof of Concept (POC). Este script destaca las capacidades de la API Claude y muestra cómo integrar la IA en sus aplicaciones y flujos de trabajo.

Lire la suite →

Exploración de la API Claude de Anthropic AI a través de un script Python POC

En este artículo, exploraremos la API Claude de Anthropic AI creando un script Python Proof of Concept (POC). Este script destaca las capacidades de la API Claude y muestra cómo integrar la IA en sus aplicaciones y flujos de trabajo.

Lire la suite →

Exploração da API Claude da Anthropic AI através de um script Python POC

Logo

Neste artigo, vamos explorar a API Claude da Anthropic AI criando um script Python Proof of Concept (POC). Este script destaca as capacidades da API Claude e mostra como integrar a IA nas suas aplicações e fluxos de trabalho.

Lire la suite →

Esplorazione dell'API Claude di Anthropic AI attraverso uno script Python POC

Logo

In questo articolo, esploreremo l’API Claude di Anthropic AI creando uno script Python Proof of Concept (POC). Questo script mette in luce le capacità dell’API Claude e mostra come integrare l’IA nelle tue applicazioni e flussi di lavoro.

Lire la suite →

Badanie API Claude od Anthropic AI za pomocą skryptu Python POC

Logo

W tym artykule zbadamy API Claude od Anthropic AI poprzez stworzenie skryptu Python Proof of Concept (POC). Ten skrypt podkreśla możliwości API Claude i pokazuje, jak zintegrować AI w twoich aplikacjach i przepływach pracy.

Lire la suite →

Anthropic AIのClaude APIをPython POCスクリプトで探検

Logo

この記事では、Anthropic AIのClaude APIを探検し、Python Proof of Concept(POC)スクリプトを作成します。このスクリプトは、Claude APIの能力を明らかにし、アプリケーションやワークフローにAIを統合する方法を示します。

Lire la suite →

Anthropic AI의 Claude API를 Python POC 스크립트를 통해 탐색하기

Logo

이 글에서는 Proof of Concept (POC) Python 스크립트를 만들어 Anthropic AI의 Claude API를 탐구할 것입니다. 이 스크립트는 Claude API의 능력을 강조하고, AI를 애플리케이션과 워크플로에 통합하는 방법을 보여줍니다.

Lire la suite →

改进我的 AI 驱动的 Markdown 翻译脚本中的代码块检测

在使用我的 AI 驱动的 Markdown 翻译脚本(使用 Mistral AI 和 Open AI)翻译我的 GitLab 上的 Stable Diffusion 项目的 README 时,我遇到了一个主要问题。某些部分的文本没有被翻译,某些代码块被错误地翻译。本文介绍了为解决这一关键问题而进行的改进。

Lire la suite →

在我的由AI驱动的Markdown翻译脚本中改进代码块检测

Logo

在使用我的由AI驱动的Markdown翻译脚本(Mistral AI 和 Open AI)翻译我在 GitLab上的Stable Diffusion项目的README时,我遇到了一个重大问题。有些文本部分没有被翻译,而且某些代码块被错误翻译。本文介绍了为解决这一关键问题所做的改进。

Lire la suite →

मेरे AI-संचालित Markdown अनुवाद स्क्रिप्ट में कोड ब्लॉकों की पहचान में सुधार

Logo

मेरे AI (Mistral AI और Open AI) संचालित Markdown अनुवाद स्क्रिप्ट का उपयोग करते हुए मेरे परियोजना के README GitLab पर स्थिर प्रसार के लिए, मुझे एक प्रमुख समस्या का सामना करना पड़ा। कुछ हिस्से अनुवादित नहीं हुए और कुछ कोड ब्लॉक गलत तरीके से अनुवादित हुए। यह लेख इस समस्या को हल करने के लिए किए गए सुधार को प्रस्तुत करता है।

Lire la suite →

تحسين اكتشاف كتل الكود في سكربت الترجمة الخاص بي بعلامة تنسيق Markdown المعتمد على الذكاء الاصطناعي

Logo

أثناء استخدامي لسكربت الترجمة الخاص بي بعلامة تنسيق Markdown المعتمد على الذكاء الاصطناعي (Mistral AI و Open AI) من أجل ملف README لمشروعي Stable Diffusion على GitLab، واجهت مشكلة كبيرة. لم تتم ترجمة بعض أجزاء النص وتمت ترجمة بعض كتل الكود بشكل غير صحيح. يعرض هذا المقال التحسين الذي تم إدخاله لحل هذه المشكلة الحرجة.

Lire la suite →

Verbetering van de Detectie van Codeblokken in mijn door AI Aangedreven Markdown-Translatiescript

Logo

Bij het gebruik van mijn door AI aangedreven Markdown-vertalingscript (Mistral AI en Open AI) voor de README van mijn project Stable Diffusion op GitLab, stuitte ik op een groot probleem. Sommige delen van de tekst werden niet vertaald en sommige codeblokken werden onjuist vertaald. Dit artikel beschrijft de verbetering die is aangebracht om dit kritieke probleem op te lossen.

Lire la suite →

Verbesserung der Erkennung von Codeblöcken in meinem AI-unterstützten Markdown-Übersetzungsskript

Logo

Durch die Nutzung meines AI-unterstützten Markdown-Übersetzungsskripts (Mistral AI und Open AI) für das README meines Projekts Stable Diffusion auf GitLab, bin ich auf ein großes Problem gestoßen. Einige Teile des Textes wurden nicht übersetzt und einige Codeblöcke wurden falsch übersetzt. Dieser Artikel stellt die Verbesserung vor, die vorgenommen wurde, um dieses kritische Problem zu lösen.

Lire la suite →

Ulepszenie Wykrywania Bloków Kodów w moim Skrypcie do Tłumaczenia Markdown zasilanym przez SI

Logo

Korzystając z mojego skryptu do tłumaczenia Markdown zasilanego przez SI (Mistral AI i Open AI) do README mojego projektu Stable Diffusion na GitLab, napotkałem poważny problem. Niektóre części tekstu nie były tłumaczone i niektóre bloki kodu były błędnie tłumaczone. Ten artykuł przedstawia ulepszenie wprowadzone w celu rozwiązania tego krytycznego problemu.

Lire la suite →

Miglioramento del Rilevamento dei Blocchi di Codice nel mio Script di Traduzione Markdown alimentato dall'IA

Logo

Utilizzando il mio script di traduzione Markdown alimentato dall’IA (Mistral AI e Open AI) per il README del mio progetto Stable Diffusion su GitLab, ho incontrato un problema importante. Alcune parti del testo non venivano tradotte e alcuni blocchi di codice erano tradotti in modo errato. Questo articolo presenta il miglioramento apportato per risolvere questo problema critico.

Lire la suite →

Melhoria na Detecção de Blocos de Código no meu Script de Tradução Markdown alimentado por IA

Logo

Utilizando meu script de tradução Markdown alimentado por IA (Mistral AI e Open AI) para o README do meu projeto Stable Diffusion no GitLab, encontrei um problema importante. Algumas partes do texto não eram traduzidas e alguns blocos de código eram traduzidos incorretamente. Este artigo apresenta a melhoria feita para resolver esse problema crítico.

Lire la suite →

Mejora de la Detección de Bloques de Código en mi Script de Traducción Markdown Alimentado por IA

Al utilizar mi script de traducción Markdown alimentado por IA (Mistral AI y Open AI) para el README de mi proyecto Stable Diffusion en GitLab, me encontré con un problema importante. Algunas partes del texto no se tradujeron y algunos bloques de código se tradujeron incorrectamente. Este artículo presenta la mejora realizada para resolver este problema crítico.

Lire la suite →

Improving Code Block Detection in my AI-Powered Markdown Translation Script

While using my AI-powered Markdown translation script (Mistral AI and Open AI) for the README of my Stable Diffusion on GitLab project, I encountered a major issue. Some parts of the text were not translated and some code blocks were incorrectly translated. This article presents the improvement made to solve this critical problem.

Lire la suite →

Improvement of Code Block Detection in my AI-Powered Markdown Translation Script

Logo

While using my AI-powered Markdown translation script (Mistral AI and Open AI) for the README of my project Stable Diffusion on GitLab, I encountered a major problem. Some parts of the text were not translated and some code blocks were incorrectly translated. This article presents the improvement made to resolve this critical issue.

Lire la suite →

Îmbunătățirea Detectării Blocurilor de Cod în Scriptul meu de Traducere Markdown alimentat de AI

Logo

Folosind scriptul meu de traducere Markdown alimentat de AI (Mistral AI și Open AI) pentru README-ul proiectului meu Stable Diffusion pe GitLab, am întâmpinat o problemă majoră. Unele părți ale textului nu erau traduse și unele blocuri de cod erau traduse incorect. Acest articol prezintă îmbunătățirea adusă pentru a rezolva această problemă critică.

Lire la suite →

Förbättring av kodblockdetektering i mitt AI-drivna Markdown-översättningsskript

Logo

Vid användning av mitt AI-drivna Markdown-översättningsskript (Mistral AI och Open AI) för README-filen i mitt projekt Stable Diffusion på GitLab, stötte jag på ett stort problem. Vissa delar av texten översattes inte och en del kodblock översattes felaktigt. Denna artikel presenterar förbättringen som gjorts för att lösa detta kritiska problem.

Lire la suite →

Amélioration de la Détection des Blocs de Code dans mon Script de Traduction Markdown alimenté par l'IA

Logo

En utilisant mon script de traduction Markdown alimenté par l’IA (Mistral AI et Open AI) pour le README de mon projet Stable Diffusion sur GitLab, j’ai rencontré un problème majeur. Certaines parties du texte n’étaient pas traduites et certains blocs de code étaient incorrectement traduits. Cet article présente l’amélioration apportée pour résoudre ce problème critique.

Lire la suite →

AIによるMarkdown翻訳スクリプトにおけるコードブロック検出の改善

Logo

私のプロジェクト「GitLab上のStable Diffusion」のREADMEをAI(Mistral AIとOpen AI)で翻訳するMarkdownスクリプトを使用している際に、大きな問題に直面しました。テキストの一部が翻訳されず、コードブロックが誤って翻訳されることがありました。この記事では、この重大な問題を解決するために行った改善点について紹介します。

Lire la suite →

AI의 Markdown 번역 스크립트에서 코드 블록 감지 개선

Logo

Mistral AI와 Open AI로 구동되는 내 Markdown 번역 스크립트를 사용하여 GitLab의 Stable Diffusion 프로젝트 README를 번역하는 동안 큰 문제에 직면했다. 텍스트의 일부가 번역되지 않았고 일부 코드 블록이 잘못 번역되었다. 이 글에서는 이 중요한 문제를 해결하기 위한 개선점을 소개한다.

Lire la suite →

我的博客翻译脚本的演进:整合 Mistral AI

Logo

在这篇文章中,我将向您介绍我使用人工智能进行博客翻译的脚本的演进,以及整合 Mistral AI 技术的过程。要查看所有语言的结果,我邀请您访问这个页面:使用 Mistral AI 的翻译

Lire la suite →

我的博客翻译脚本的演变:集成Mistral AI

在这篇文章中,我将与您分享我的博客翻译脚本的演变,该脚本使用人工智能,并集成了Mistral AI技术。要查看所有语言的结果,请访问此页面:Mistral AI翻译

Lire la suite →

博客翻译脚本的演进:整合 Mistral AI

在本文中,我将与您分享使用人工智能的博客翻译脚本的演进,并整合了 Mistral AI 技术。要在所有语言中查看结果,请访问此页面:使用 Mistral AI 进行翻译

为什么要这个脚本?

我的翻译脚本的目标是使我的博客文章能够在多种语言中获得,通过自动化其翻译。想象一下一个智能翻译器,能够阅读法语文章并忠实地将其还原为英语、西班牙语或其他语言,同时保留原始格式。这就是我的脚本所做的,它利用了最新的人工智能进步。

初始脚本的主要功能

  1. 自动翻译:使用 OpenAI 或 Mistral AI API 进行精确翻译。
  2. 保留格式:脚本保留了原始格式,包括代码块和链接。
  3. 多语言:能够翻译成多种语言。
  4. 支持 Markdown:适用于常用于博客中的 Markdown 文件。
  5. 自动化:通过单个命令翻译多篇文章。

整合 Mistral AI 的新功能

Mistral AI 整合

Mistral AI 是一个提供自然语言处理服务的先进人工智能平台。通过整合 Mistral AI,我可以扩大我的脚本的翻译和自动化能力,充分利用另一个强大的人工智能资源。此外,Mistral AI 是一家法国公司!

智能文本分段

脚本现在可以将长文本分段,以便更好地适应 AI 模型的令牌限制,从而更有效地管理大量文本的翻译。

添加翻译说明

新功能可以在翻译后的文档末尾添加翻译说明,告知读者翻译过程。

选择 OpenAI 和 Mistral AI

脚本现在提供了选择 OpenAI 和 Mistral AI 进行翻译的灵活性,根据用户的具体需求和首选项。

文件和目录管理

改进了文件和目录的管理,允许在必要时排除某些部分的翻译过程。

脚本代码

更新后的脚本可以在 我的 GitLab 上查找。

您还可以在此处找到它的当前版本:

#!/usr/bin/env python3

import os
import argparse
import time
from openai import OpenAI
import re
from mistralai.client import MistralClient
from mistralai.models.chat_completion import ChatMessage

EXCLUDE_PATTERNS = ["traductions_"]

# Initialisation de la configuration avec les valeurs par défaut
DEFAULT_OPENAI_API_KEY = "votre-clé-api-openai-par-défaut"
DEFAULT_MISTRAL_API_KEY = "votre-clé-api-mistral-par-défaut"
DEFAULT_MODEL_OPENAI = "gpt-4-1106-preview"
DEFAULT_MODEL_MISTRAL = "mistral-medium"
DEFAULT_SOURCE_LANG = "fr"
DEFAULT_TARGET_LANG = "en"
DEFAULT_SOURCE_DIR = "content/posts"
DEFAULT_TARGET_DIR = "traductions_en"
MODEL_TOKEN_LIMITS = {
    "gpt-4-1106-preview": 4096,
    "gpt-4-vision-preview": 4096,
    "gpt-4": 8192,
    "gpt-4-32k": 32768,
    "gpt-4-0613": 8192,
    "gpt-4-32k-0613": 32768,
}


def segment_text(text, max_length):
    """
    Divise un texte Markdown en segments ne dépassant pas la longueur maximale spécifiée,
    en essayant de conserver des points de coupure naturels.

    Args:
        text (str): Texte Markdown à diviser.
        max_length (int): Longueur maximale de chaque segment.

    Returns:
        list[str]: Liste des segments de texte Markdown.
    """
    segments = []
    while text:
        if len(text) <= max_length:
            segments.append(text)
            break
        segment = text[:max_length]
        next_index = max_length

        # Recherche de points de coupure naturels (fin de phrase, fin de paragraphe, fin de titre)
        last_good_break = max(
            segment.rfind(". "), segment.rfind("\n\n"), segment.rfind("\n#")
        )
        if last_good_break != -1:
            next_index = last_good_break + 1

        segments.append(text[:next_index])
        text = text[next_index:]

    return segments


def translate(text, client, args, use_mistral=False, is_translation_note=False):
    """
    Traduit un texte en utilisant les services de traduction d'OpenAI ou Mistral AI.
    Cette fonction segmente d'abord le texte pour s'assurer qu'il respecte la limite de tokens du modèle.
    Elle utilise un argument optionnel 'is_translation_note' pour gérer différemment les notes de traduction.

    Args:
        text (str): Texte à traduire.
        client: Client de l'API de traduction (OpenAI ou Mistral AI).
        args: Arguments contenant les informations de configuration.
        use_mistral (bool): Indique si l'API Mistral AI doit être utilisée (True) ou l'API OpenAI (False).
        is_translation_note (bool): Indique si le texte est une note de traduction, ce qui nécessite un traitement spécial.

    Returns:
        str: Texte traduit.
    """
    model_limit = MODEL_TOKEN_LIMITS.get(args.model, 4096)

    segments = segment_text(text, model_limit)
    translated_segments = []

    for segment in segments:
        try:
            prompt_message = ""
            if is_translation_note:
                prompt_message = f"Translate this exact sentence to {args.target_lang}, without any additions or explanations: '{segment}'"
            else:
                prompt_message = f"Please translate this text from {args.source_lang} to {args.target_lang}, and do not translate or change URLs, image paths, and code blocks (delimited by ```) : {segment}"

            if use_mistral:
                messages = [ChatMessage(role="user", content=prompt_message)]
                response = client.chat(model=args.model, messages=messages)
            else:
                messages = [
                    {"role": "system", "content": prompt_message},
                    {"role": "user", "content": segment},
                ]
                response = client.chat.completions.create(
                    model=args.model, messages=messages
                )
            translated_text = response.choices[0].message.content.strip()
        except Exception as e:
            raise RuntimeError(f"Erreur lors de la traduction : {e}")

        translated_segments.append(translated_text)

    return " ".join(translated_segments)


def add_translation_note(client, args, use_mistral):
    """
    Génère et traduit une note de traduction.

    Args:
        client: Objet client de traduction.
        args: Arguments contenant les informations de langue source et cible, et le modèle utilisé.
        use_mistral (bool): Indique si l'API Mistral AI doit être utilisée pour la traduction.

    Returns:
        str: Note de traduction traduite.
    """
    translation_note_src = f"Ce document a été traduit de la version {args.source_lang} par le modèle {args.model}."
    try:
        # Utiliser un prompt très spécifique pour Mistral AI
        if use_mistral:
            prompt_message = f"Translate this exact sentence to {args.target_lang}, without any additions or explanations: '{translation_note_src}'"
            messages = [ChatMessage(role="user", content=prompt_message)]
            response = client.chat(model=args.model, messages=messages)
            translated_note = response.choices[0].message.content.strip()
        else:
            # Pour OpenAI
            messages = [
                {
                    "role": "system",
                    "content": f"Translate this exact sentence to {args.target_lang}, without any additions or explanations: '{translation_note_src}'",
                },
                {"role": "user", "content": translation_note_src},
            ]
            response = client.chat.completions.create(
                model=args.model, messages=messages
            )
            translated_note = response.choices[0].essage.content.strip()

        return f"\n\n**{translated_note}**\n\n"
    except Exception as e:
        raise RuntimeError(f"Erreur lors de l'ajout de la note de traduction : {e}")


def translate_markdown_file(
    file_path, output_path, client, args, use_mistral, add_translation_note=False
):
    """
    Traduit un fichier Markdown en utilisant les modèles de traitement du langage naturel de OpenAI ou Mistral AI.

    Args:
        file_path (str): Chemin complet vers le fichier d'entrée.
        output_path (str): Chemin complet vers le fichier de sortie.
        client: Objet client de traduction.
        args: Arguments supplémentaires pour la traduction.
        use_mistral (bool): Indique si l'API Mistral AI doit être utilisée pour la traduction.
        add_translation_note (bool): Indique si une note de traduction doit être ajoutée.

    Returns:
        None
    """
    try:
        # Calcul des chemins relatifs pour un affichage plus lisible
        relative_file_path = os.path.join(
            args.source_dir, os.path.relpath(file_path, start=args.source_dir)
        )
        relative_output_path = os.path.join(
            args.target_dir, os.path.relpath(output_path, start=args.target_dir)
        )

        print(f"Traitement du fichier : {relative_file_path}")
        start_time = time.time()

        # Lecture du contenu du fichier
        with open(file_path, "r", encoding="utf-8") as f:
            content = f.read()

        # Extraction et remplacement temporaire des blocs de code pour éviter leur traduction
        code_blocks = re.findall(
            r"(^```[a-zA-Z]*\n.*?\n^```)", content, flags=re.MULTILINE | re.DOTALL
        )
        placeholders = [f"#CODEBLOCK{index}#" for index, _ in enumerate(code_blocks)]
        for placeholder, code_block in zip(placeholders, code_blocks):
            content = content.replace(code_block, placeholder)

        # Traduction du contenu
        translated_content = translate(content, client, args, use_mistral)

        # Restauration des blocs de code dans le contenu traduit
        for placeholder, code_block in zip(placeholders, code_blocks):
            translated_content = translated_content.replace(placeholder, code_block)

        # Ajout de la note de traduction si nécessaire
        if add_translation_note:
            translation_note = translate(
                "Ce document a été traduit de la version "
                + args.source_lang
                + " par le modèle "
                + args.model
                + ".",
                client,
                args,
                use_mistral,
                True,
            )
            translated_content += "\n\n**" + translation_note + "**\n\n"

        # Écriture du contenu traduit dans le fichier de sortie
        clean_output_path = os.path.normpath(output_path)
        with open(clean_output_path, "w", encoding="utf-8") as f:
            f.write(translated_content)

        end_time = time.time()
        print(
            f"Fichier '{relative_file_path}' traduit en {end_time - start_time:.2f} secondes et enregistré sous : {relative_output_path}"
        )
    except IOError as e:
        print(f"Erreur lors du traitement du fichier '{relative_file_path}': {e}")
    except Exception as e:
        print(
            f"Une erreur inattendue est survenue lors de la traduction du fichier '{relative_file_path}': {e}"
        )


def is_excluded(path):
    """
    Vérifie si le chemin donné correspond à l'un des motifs d'exclusion.

    Cette fonction parcourt la liste des motifs d'exclusion définis dans EXCLUDE_PATTERNS.
    Si l'un de ces motifs est trouvé dans le chemin fourni, la fonction renvoie True,
    indiquant que le chemin doit être exclu du processus de traduction.

    Args:
        path (str): Le chemin du fichier ou du répertoire à vérifier.

    Returns:
        bool: True si le chemin correspond à l'un des motifs d'exclusion, False sinon.
    """
    for pattern in EXCLUDE_PATTERNS:
        if pattern in path:
            return True
    return False


def translate_directory(
    input_dir, output_dir, client, args, use_mistral, add_translation_note
):
    """
    Traduit tous les fichiers markdown dans le répertoire d'entrée et ses sous-répertoires.

    Args:
        input_dir (str): Chemin vers le répertoire d'entrée.
        output_dir (str): Chemin vers le répertoire de sortie.
        client: Objet client de traduction.
        args: Arguments supplémentaires pour la traduction.
        use_mistral (bool): Indique si l'API Mistral AI doit être utilisée pour la traduction.
        add_translation_note (bool): Indique si une note de traduction doit être ajoutée.

    Returns:
        None
    """
    input_dir = os.path.abspath(input_dir)
    output_dir = os.path.abspath(output_dir)

    if not os.path.exists(output_dir):
        os.makedirs(output_dir)

    output_base_dir = os.path.basename(output_dir)

    for root, dirs, files in os.walk(input_dir, topdown=True):
        if is_excluded(root) or root.startswith(output_dir):
            continue

        if (
            os.path.basename(root) == output_base_dir
            and os.path.abspath(os.path.join(root, "..")) == input_dir
        ):
            continue

        for file in files:
            if file.endswith(".md") and not is_excluded(file):
                file_path = os.path.join(root, file)
                base, _ = os.path.splitext(file)
                output_file = f"{base}-{args.model}-{args.target_lang}.md"
                relative_path = os.path.relpath(root, input_dir)
                output_path = os.path.join(output_dir, relative_path, output_file)

                os.makedirs(os.path.dirname(output_path), exist_ok=True)

                if not os.path.exists(output_path):
                    translate_markdown_file(
                        file_path,
                        output_path,
                        client,
                        args,
                        use_mistral,
                        add_translation_note,
                    )
                    print(f"Fichier '{file}' traité.")


def main():
    """
    Point d'entrée principal du script de traduction de fichiers Markdown.

    Ce script traduit des fichiers Markdown d'une langue source à une langue cible en utilisant
    les services de traduction de l'API OpenAI ou Mistral AI. Il prend en charge la segmentation
    des textes longs et peut également ajouter une note de traduction en fin de document.

    Arguments du script:
    --source_dir: Répertoire contenant les fichiers Markdown à traduire.
    --target_dir: Répertoire de destination pour les fichiers traduits.
    --model: Modèle de traduction GPT à utiliser.
    --target_lang: Langue cible pour la traduction.
    --source_lang: Langue source des documents.
    --use_mistral: Indicateur pour utiliser l'API Mistral AI pour la traduction.
    --add_translation_note: Indicateur pour ajouter une note de traduction au contenu traduit.
    """
    parser = argparse.ArgumentParser(description="Traduit les fichiers Markdown.")
    parser.add_argument(
        "--source_dir",
        type=str,
        default=DEFAULT_SOURCE_DIR,
        help="Répertoire source contenant les fichiers Markdown",
    )
    parser.add_argument(
        "--target_dir",
        type=str,
        default=DEFAULT_TARGET_DIR,
        help="Répertoire cible pour sauvegarder les traductions",
    )
    parser.add_argument(
        "--model", type=str, help="Modèle GPT à utiliser pour la traduction"
    )
    parser.add_argument(
        "--target_lang",
        type=str,
        default=DEFAULT_TARGET_LANG,
        help="Langue cible pour la traduction",
    )
    parser.add_argument(
        "--source_lang",
        type=str,
        default=DEFAULT_SOURCE_LANG,
        help="Langue source pour la traduction",
    )
    parser.add_argument(
        "--use_mistral",
        action="store_true",
        help="Utiliser l'API Mistral AI pour la traduction",
    )
    parser.add_argument(
        "--add_translation_note",
        action="store_true",
        help="Ajouter une note de traduction au contenu traduit",
    )

    args = parser.parse_args()

    if not os.path.isdir(args.source_dir):
        raise ValueError(
            f"Le répertoire source spécifié n'existe pas : {args.source_dir}"
        )
    if not os.path.exists(args.target_dir):
        os.makedirs(args.target_dir)

    if args.use_mistral:
        args.model = args.model if args.model else DEFAULT_MODEL_MISTRAL
        api_key = os.getenv("MISTRAL_API_KEY", DEFAULT_MISTRAL_API_KEY)
        if not api_key:
            raise ValueError("Clé API Mistral non spécifiée.")
        client = MistralClient(api_key=api_key)
    else:
        args.model = args.model if args.model else DEFAULT_MODEL_OPENAI
        openai_api_key = os.getenv("OPENAI_API_KEY", DEFAULT_OPENAI_API_KEY)
        if not openai_api_key:
            raise ValueError("Clé API OpenAI non spécifiée.")
        client = OpenAI(api_key=openai_api_key)

    translate_directory(
        args.source_dir,
        args.target_dir,
        client,
        args,
        args.use_mistral,
        args.add_translation_note,
    )

    if args.use_mistral:
        try:
            del client
        except TypeError:
            pass


if __name__ == "__main__":
    main()

请继续关注更多关于人工智能有趣世界的更新和创新!

Lire la suite →

ブログ翻訳スクリプトの進化:Mistral AIの統合

Logo

この記事では、人工知能を利用したブログ翻訳スクリプトの進化について、Mistral AI技術の統合を交えてお話しします。すべての言語での結果を確認するには、こちらのページをご覧ください:Mistral AIによる翻訳

Lire la suite →

블로그 번역 스크립트의 진화: Mistral AI 통합

Logo

이 글에서는 인공지능을 사용한 블로그 번역 스크립트의 진화와 Mistral AI 기술 통합에 대해 이야기하겠습니다. 모든 언어로 된 결과를 보려면 이 페이지를 방문해 주세요: Mistral AI 번역.

Lire la suite →

मेरे ब्लॉग अनुवाद स्क्रिप्ट का विकास: मिस्त्रल एआई का एकीकरण

Logo

इस लेख में, मैं कृत्रिम बुद्धिमत्ता का उपयोग करके अपने ब्लॉग अनुवाद स्क्रिप्ट के विकास के बारे में बात करूंगा, जिसमें मिस्त्रल एआई तकनीक का एकीकरण शामिल है। सभी भाषाओं में परिणाम देखने के लिए, कृपया इस पृष्ठ पर जाएं: मिस्त्रल एआई के साथ अनुवाद

Lire la suite →

تطور سكريبت ترجمة المدونة الخاص بي: دمج Mistral AI

Logo

في هذه المقالة، سأتحدث عن تطور سكريبت ترجمة المدونة الخاص بي باستخدام الذكاء الاصطناعي، مع دمج تكنولوجيا Mistral AI. لاكتشاف النتائج بجميع اللغات، أدعوكم لزيارة هذه الصفحة: الترجمات مع Mistral AI.

Lire la suite →

Utveckling av mitt Bloggöversättningsscript: Integrering av Mistral AI

Logo

I den här artikeln kommer jag att prata om utvecklingen av mitt bloggöversättningsscript som använder artificiell intelligens, med integrering av Mistral AI-teknologi. För att upptäcka resultaten på alla språk, besök denna sida: Översättningar med Mistral AI.

Lire la suite →

Ewolucja mojego Skryptu Tłumaczenia Bloga: Integracja z Mistral AI

Logo

W tym artykule opowiem o ewolucji mojego skryptu tłumaczenia bloga z wykorzystaniem sztucznej inteligencji, integrując technologię Mistral AI. Aby odkryć wyniki we wszystkich językach, zapraszam na tę stronę: Tłumaczenia z Mistral AI.

Lire la suite →

Evoluzione del mio Script di Traduzione del Blog: Integrazione di Mistral AI

Logo

In questo articolo, parlerò dell’evoluzione del mio script di traduzione del blog utilizzando l’intelligenza artificiale, con l’integrazione della tecnologia Mistral AI. Per scoprire i risultati in tutte le lingue, vi invito a visitare questa pagina: Traduzioni con Mistral AI.

Lire la suite →

Evolution of my Blog Translation Script: Integration of Mistral AI

In this article, I will talk to you about the evolution of my blog translation script using artificial intelligence, with the integration of Mistral AI technology. To discover the results in all languages, I invite you to visit this page: Translations with Mistral AI.

Why this Script?

The goal of my translation script is to make my blog articles accessible in several languages, by automating their translation. Imagine an intelligent translator capable of reading an article in French and restoring it faithfully in English, Spanish or other languages, while preserving the original format. That’s what my script does, by leveraging the latest advances in AI.

Lire la suite →

Evolution of my Blog Translation Script: Integration of Mistral AI

Logo

In this article, I will talk about the evolution of my blog translation script using artificial intelligence, with the integration of Mistral AI technology. To see results in all languages, I invite you to visit this page: Translations with Mistral AI.

Lire la suite →

Evolution of my Blog Translation Script: Integration of Mistral AI

In this article, I will talk about the evolution of my blog translation script using artificial intelligence, with the integration of Mistral AI technology. To discover the results in all languages, I invite you to visit this page: Translations with Mistral AI.

Lire la suite →

Évolution de mon Script de Traduction de Blog : Intégration de Mistral AI

Logo

Dans cet article, je vais vous parler de l’évolution de mon script de traduction de blog utilisant l’intelligence artificielle, avec l’intégration de la technologie Mistral AI. Pour découvrir les résultats dans toutes les langues, je vous invite à visiter cette page : Traductions avec Mistral AI.

Lire la suite →

Evolutie van mijn Blog Vertalingsscript: Integratie van Mistral AI

Logo

In dit artikel zal ik het hebben over de evolutie van mijn blogvertaalscript dat gebruikmaakt van kunstmatige intelligentie, met de integratie van de Mistral AI-technologie. Om de resultaten in alle talen te ontdekken, nodig ik je uit om deze pagina te bezoeken: Vertalingen met Mistral AI.

Lire la suite →

Evoluția Scriptului meu de Traducere a Blogului: Integrarea Mistral AI

Logo

În acest articol, vă voi vorbi despre evoluția scriptului meu de traducere a blogului utilizând inteligența artificială, cu integrarea tehnologiei Mistral AI. Pentru a descoperi rezultatele în toate limbile, vă invit să vizitați această pagină: Traduceri cu Mistral AI.

Lire la suite →

Evolución de mi Script de Traducción de Blog: Integración de Mistral AI

En este artículo, te hablaré sobre la evolución de mi script de traducción de blog utilizando la inteligencia artificial, con la integración de la tecnología Mistral AI. Para descubrir los resultados en todos los idiomas, te invito a visitar esta página: Traducciones con Mistral AI.

Por qué este Script?

El objetivo de mi script de traducción es hacer que mis artículos de blog sean accesibles en varios idiomas, automatizando su traducción. Imagina un traductor inteligente capaz de leer un artículo en francés y devolverlo fielmente en inglés, español u otros idiomas, manteniendo el formato original. Eso es lo que hace mi script, aprovechando los últimos avances de la IA.

Lire la suite →

Evolución de mi Script de Traducción de Blog: Integración de Mistral AI

Logo

En este artículo, voy a hablarles sobre la evolución de mi script de traducción de blog que utiliza la inteligencia artificial, con la integración de la tecnología Mistral AI. Para descubrir los resultados en todos los idiomas, les invito a visitar esta página: Traducciones con Mistral AI.

Lire la suite →

Evolución de mi Script de Traducción de Blog: Integración de Mistral AI

En este artículo, les hablaré sobre la evolución de mi script de traducción de blog utilizando la inteligencia artificial, con la integración de la tecnología Mistral AI. Para descubrir los resultados en todos los idiomas, los invito a visitar esta página: Traducciones con Mistral AI.

Lire la suite →

Evolução do Meu Script de Tradução de Blog: Integração do Mistral AI

Logo

Neste artigo, vou falar sobre a evolução do meu script de tradução de blog utilizando a inteligência artificial, com a integração da tecnologia Mistral AI. Para descobrir os resultados em todas as línguas, eu convido você a visitar esta página: Traduções com Mistral AI.

Lire la suite →

Entwicklung meines Blog-Übersetzungsskripts: Integration von Mistral AI

Logo

In diesem Artikel werde ich über die Entwicklung meines Blog-Übersetzungsskripts unter Verwendung künstlicher Intelligenz sprechen, mit der Integration der Technologie von Mistral AI. Um die Ergebnisse in allen Sprachen zu sehen, lade ich Sie ein, diese Seite zu besuchen: Übersetzungen mit Mistral AI.

Lire la suite →

用人工智能革新博客文章翻译

Logo

在这篇文章中,我分享了一个作为概念验证(POC)开发的Python脚本,用于自动化翻译我的博客帖子,利用OpenAI的GPT-4语言模型。这个脚本专为处理我的Hugo博客结构中的Markdown文件设计,使管理我的文章的多语言变得更加容易。这些文章可用英语西班牙语中文查阅。

Lire la suite →

用IA革新博客文章翻译

在这篇文章中,我分享了一个作为概念证明(POC)开发的Python脚本,用于自动化翻译我的博客文章,使用OpenAI的GPT-4语言模型。这个脚本专门设计用于处理Hugo博客的Markdown文件结构,便于管理多语言文章。它们可以在英文西班牙文中文中获得。

Lire la suite →

用AI彻底改变博客文章翻译

在这篇文章中,我分享了一个Python脚本,作为一个概念验证(POC),使用OpenAI的GPT-4语言模型自动翻译我的博客文章。这个脚本专门设计用于处理我的Hugo博客结构中的Markdown文件,方便管理我文章的多语言版本。它们有英文西班牙文中文版本。

Lire la suite →

ブログ記事の翻訳をAIで革命する

Logo

この記事では、OpenAI の GPT-4 言語モデルを使用してブログの投稿を自動翻訳するために作成された Proof of Concept (POC) 用の Python スクリプトを共有します。このスクリプトは、Hugo ブログ構造内の Markdown ファイルを処理するために特別に設計されており、記事の多言語管理を容易にします。これらの記事は 英語スペイン語中国語 で利用可能です。

Lire la suite →

블로그 게시물 번역의 혁신: AI와 함께하는 변화

Logo

이 기사에서는 OpenAI의 GPT-4 언어 모델을 사용하여 블로그 게시물의 번역을 자동화하기 위해 개발된 Proof of Concept (POC) Python 스크립트를 공유합니다. 이 스크립트는 특히 제 Hugo 블로그 구조에서 Markdown 파일을 처리하도록 설계되어 다국어 관리가 용이합니다. 이들은 영어, 스페인어, 중국어로 제공됩니다.

Lire la suite →

एआई के साथ ब्लॉग लेखों के अनुवाद में क्रांति

Logo

इस लेख में, मैं एक पीओसी (प्रूफ़ ऑफ़ कॉन्सेप्ट) के रूप में एक पाइथन स्क्रिप्ट साझा कर रहा हूँ, जो ओपनएआई के GPT-4 भाषा मॉडल का उपयोग करके मेरे ब्लॉग पोस्टों के अनुवाद को स्वचालित करने के लिए विकसित की गई है। यह स्क्रिप्ट विशेष रूप से मेरे ह्यूगो ब्लॉग की संरचना में मार्कडाउन फाइलों को प्रोसेस करने के लिए डिज़ाइन की गई है, जिससे मेरे लेखों की बहुभाषी प्रबंधन में सुविधा हो। वे अंग्रेजी, स्पेनिश और चीनी में उपलब्ध हैं।

Lire la suite →

إحداث ثورة في ترجمة مقالات المدونة باستخدام الذكاء الاصطناعي

Logo

في هذه المقالة، أشارك سكربت بايثون طورته كعرض مفهوم (POC) لأتمتة ترجمة منشورات مدونتي، باستخدام نموذج اللغة GPT-4 من OpenAI. هذا السكربت مصمم خصيصاً لمعالجة ملفات Markdown في هيكل مدونتي Hugo، مما يسهل إدارة المقالات متعددة اللغات. وهي متاحة باللغات الإنجليزية، الإسبانية و الصينية.

Lire la suite →

Rivoluzionare le Traduzioni degli Articoli del Blog con l'IA

Logo

In questo articolo, condivido uno script Python sviluppato come Proof of Concept (POC) per automatizzare la traduzione dei post del mio blog, utilizzando il modello di linguaggio GPT-4 di OpenAI. Questo script è specificamente progettato per trattare file Markdown nella struttura del mio blog Hugo, facilitando la gestione multilingue dei miei articoli. Sono disponibili in Inglese, Spagnolo e Cinese.

Lire la suite →

Rewolucjonizowanie Tłumaczeń Artykułów Blogowych za pomocą SI

Logo

W tym artykule dzielę się skryptem Python opracowanym jako Proof of Concept (POC) do automatyzacji tłumaczeń postów mojego bloga, wykorzystując model językowy GPT-4 od OpenAI. Ten skrypt jest specjalnie zaprojektowany do przetwarzania plików Markdown w strukturze mojego bloga Hugo, ułatwiając zarządzanie wielojęzycznymi artykułami. Są one dostępne po Angielsku, Hiszpańsku i Chińsku.

Lire la suite →

Révolutionner les Traductions d'articles de Blog avec l'IA

Logo

Dans cet article, je partage un script Python développé comme un Proof of Concept (POC) pour automatiser la traduction des posts de mon blog, en utilisant le modèle de langage GPT-4 d’OpenAI. Ce script est spécifiquement conçu pour traiter des fichiers Markdown dans la structure de mon blog Hugo, facilitant la gestion multilingue de mes articles. Ils sont disponibles en Anglais, Espagnol et Chinois.

Lire la suite →

Revolutionizing Blog Post Translations with AI

In this article, I share a Python script developed as a Proof of Concept (POC) to automate the translation of my blog posts using OpenAI’s GPT-4 language model. This script is specifically designed to handle Markdown files in the structure of my Hugo blog, making it easy to manage multilingual articles. They are available in English, Spanish, and Chinese.

Lire la suite →

Revolutionizing Blog Post Translations with AI

In this article, I share a Python script developed as a Proof of Concept (POC) to automate the translation of my blog posts, using OpenAI’s GPT-4 language model. This script is specifically designed to process Markdown files in my Hugo blog’s structure, facilitating multilingual management of my articles. They are available in English, Spanish and Chinese.

Lire la suite →

Revolutionizing Blog Article Translations with AI

Logo

In this article, I share a Python script developed as a Proof of Concept (POC) for automating the translation of my blog posts, using OpenAI’s GPT-4 language model. This script is specifically designed to process Markdown files in the structure of my Hugo blog, facilitating the multilingual management of my articles. They are available in English, Spanish and Chinese.

Lire la suite →

Revolutionieren Sie die Übersetzungen von Blogartikeln mit KI

Logo

In diesem Artikel teile ich ein Python-Skript, das als Proof of Concept (POC) entwickelt wurde, um die Übersetzung meiner Blogbeiträge zu automatisieren, indem das Sprachmodell GPT-4 von OpenAI verwendet wird. Dieses Skript ist speziell darauf ausgelegt, Markdown-Dateien in der Struktur meines Hugo-Blogs zu verarbeiten und die mehrsprachige Verwaltung meiner Artikel zu erleichtern. Sie sind verfügbar in Englisch, Spanisch und Chinesisch.

Lire la suite →

Revolutionera Bloggartikelöversättningar med AI

Logo

I den här artikeln delar jag ett Python-skript utvecklat som ett Proof of Concept (POC) för att automatisera översättningen av mina blogginlägg, med hjälp av OpenAI:s GPT-4 språkmodell. Detta skript är specifikt utformat för att hantera Markdown-filer i strukturen av min Hugo-blogg, vilket underlättar flerspråkig hantering av mina artiklar. De finns tillgängliga på Engelska, Spanska och Kinesiska.

Lire la suite →

Revoluționați Traducerile Articolelor de Blog cu IA

Logo

În acest articol, împărtășesc un script Python dezvoltat ca un Proof of Concept (POC) pentru automatizarea traducerii postărilor de pe blogul meu, folosind modelul de limbaj GPT-4 de la OpenAI. Acest script este special conceput pentru a procesa fișiere Markdown în structura blogului meu Hugo, facilitând gestionarea multilingvă a articolelor mele. Ele sunt disponibile în Engleză, Spaniolă și Chineză.

Lire la suite →

Revolutionaire Blog Artikelen Vertalen met AI

Logo

In dit artikel deel ik een Python-script dat ontwikkeld is als een Proof of Concept (POC) om de vertaling van mijn blogposts te automatiseren, met behulp van het GPT-4-taalmodel van OpenAI. Dit script is specifiek ontworpen om Markdown-bestanden in de structuur van mijn Hugo-blog te verwerken, wat het beheer van meertalige artikelen vergemakkelijkt. Ze zijn beschikbaar in het Engels, Spaans en Chinees.

Lire la suite →

Revolucionar las Traducciones de Entradas de Blog con IA

En este artículo, comparto un script de Python desarrollado como una Prueba de Concepto (POC) para automatizar la traducción de las entradas de mi blog, utilizando el modelo de lenguaje GPT-4 de OpenAI. Este script está específicamente diseñado para procesar archivos Markdown en la estructura de mi blog Hugo, facilitando la gestión multilingüe de mis entradas. Están disponibles en Inglés, Español y Chino.

Lire la suite →

Revolucionar las Traducciones de Artículos de Blog con la IA

Logo

En este artículo, comparto un script Python desarrollado como un Proof of Concept (POC) para automatizar la traducción de posts de mi blog, utilizando el modelo de lenguaje GPT-4 de OpenAI. Este script está diseñado específicamente para tratar archivos Markdown en la estructura de mi blog Hugo, facilitando la gestión multilingüe de mis artículos. Están disponibles en Inglés, Español y Chino.

Lire la suite →

Revolucionar las Traducciones de Artículos de Blog con IA

En este artículo, comparto un script de Python desarrollado como una Prueba de Concepto (POC) para automatizar la traducción de las publicaciones de mi blog, utilizando el modelo de lenguaje GPT-4 de OpenAI. Este script está específicamente diseñado para procesar archivos Markdown en la estructura de mi blog Hugo, facilitando la gestión multilingüe de mis artículos. Están disponibles en Inglés, Español y Chino.

Lire la suite →

Revolucionando as Traduções de Artigos de Blog com IA

Logo

Neste artigo, compartilho um script Python desenvolvido como uma Prova de Conceito (POC) para automatizar a tradução dos posts do meu blog, utilizando o modelo de linguagem GPT-4 da OpenAI. Este script é especificamente projetado para tratar arquivos Markdown na estrutura do meu blog Hugo, facilitando a gestão multilíngue dos meus artigos. Eles estão disponíveis em Inglês, Espanhol e Chinês.

Lire la suite →

使用 Mistral AI API 的另一种 Python 实践方法

在 OpenAI 之后,对 Mistral AI 进行了 POC!

Lire la suite →

一种使用 Mistral AI API 的 Python 实践新方法

继 OpenAI 之后,对法国竞争对手 Mistral AI 的 POC!

Lire la suite →

파이썬에서 Mistral AI API를 사용한 또 다른 실용적인 접근법

OpenAI 다음으로 프랑스의 경쟁자인 Mistral AI를 활용한 POC!

Lire la suite →

نهج عملي آخر في بايثون ولكن مع API ميسترل AI

بعد OpenAI، إثبات مفهوم مع Mistral AI المنافس الفرنسي!

Lire la suite →

Une autre approche pratique en Python mais avec l'API de Mistral AI

Après OpenAI, POC sur Mistral AI le concurrent français !

Lire la suite →

Un altro approccio pratico in Python ma con l'API di Mistral AI

Dopo OpenAI, POC su Mistral AI il concorrente francese!

Lire la suite →

Uma outra abordagem prática em Python, mas com a API de Mistral AI

Após OpenAI, POC sobre Mistral AI, o concorrente francês!

Lire la suite →

Python中使用Mistral AI API的另一种实用方法

继OpenAI之后,在法国竞争对手Mistral AI上进行POC!

Lire la suite →

Pythonでの別の実践的アプローチ - Mistral AI APIを使う

OpenAIの後、フランスの競合相手であるMistral AIのPOC!

Lire la suite →

Python में एक और प्रैक्टिकल एप्रोच लेकिन Mistral AI के API के साथ

OpenAI के बाद, फ्रांसीसी प्रतियोगी Mistral AI पर POC!

Lire la suite →

Otro enfoque práctico en Python pero con la API de Mistral AI

¡Después de OpenAI, POC sobre Mistral AI el competidor francés!

Lire la suite →

Otro enfoque práctico en Python pero con la API de Mistral AI

¡Después de OpenAI, POC sobre Mistral AI, el competidor francés!

Lire la suite →

Otra aproximación práctica en Python pero con la API de Mistral AI

Después de OpenAI, POC en Mistral AI, el competidor francés!

Lire la suite →

O altă abordare practică în Python, dar cu API-ul Mistral AI

După OpenAI, POC pe Mistral AI, concurentul francez!

Lire la suite →

Inne praktyczne podejście w Pythonie, ale z API Mistral AI

Po OpenAI, POC na Mistral AI, francuskim konkurencie!

Lire la suite →

Ett annat praktiskt tillvägagångssätt i Python men med Mistral AI API

Efter OpenAI, proof of concept för Mistral AI, den franska konkurrenten!

Lire la suite →

Ein anderer praktischer Ansatz in Python, aber mit der Mistral AI API

Nach OpenAI, Proof of Concept über Mistral AI, den französischen Konkurrenten!

Lire la suite →

Een andere praktische benadering in Python maar met de API van Mistral AI

Na OpenAI, POC op Mistral AI, de Franse concurrent!

Lire la suite →

Another Practical Approach in Python but with the Mistral AI API

After OpenAI, POC on Mistral AI the French competitor!

Lire la suite →

Another practical approach in Python but with the Mistral AI API

After OpenAI, POC on Mistral AI the French competitor!

Lire la suite →

Another practical approach in Python but with the Mistral AI API

After OpenAI, POC on Mistral AI the French competitor!

Lire la suite →