Pāreja no DeepL
Pārejiet no DeepL API uz VibeQL, nomainot servera URL un atslēgu savā DeepL klienta bibliotēkā.
VibeQL nodrošina DeepL API formātu. Saglabājiet savu kodu un DeepL klienta bibliotēku. Nomainiet divas lietas:
- Servera URL:
https://vibeql.com. - Atslēgu: VibeQL atslēgu no API lapas.
Servera URL maiņa
client = deepl.DeepLClient(os.environ["VIBEQL_API_KEY"], server_url="https://vibeql.com")const client = new deepl.DeepLClient(process.env.VIBEQL_API_KEY, { serverUrl: "https://vibeql.com" });var client = new DeepLClient(apiKey, new DeepLClientOptions { ServerUrl = "https://vibeql.com" });DeepLClient client = new DeepLClient(apiKey, new DeepLClientOptions().setServerUrl("https://vibeql.com"));$client = new \DeepL\DeepLClient($apiKey, ['server_url' => 'https://vibeql.com']);// DeepL has no official Go library. Change the base URL in your HTTP code.
const baseURL = "https://vibeql.com" // was https://api.deepl.com or https://api-free.deepl.com
req, _ := http.NewRequest("POST", baseURL+"/v2/translate", body)
req.Header.Set("Authorization", "DeepL-Auth-Key "+os.Getenv("VIBEQL_API_KEY"))client = DeepL::Client.new(ENV.fetch('VIBEQL_API_KEY'), server_url: 'https://vibeql.com')Vecākā Translator klase pieņem to pašu opciju. Ar vecāko Ruby API moduļa līmenī iestatiet config.host = 'https://vibeql.com' failā DeepL.configure.
Ja API izsaucat pa vienkāršu HTTP, aizstājiet https://api.deepl.com vai https://api-free.deepl.com ar https://vibeql.com. Ceļi un parametri paliek tie paši.
Kas paliek nemainīgs
- Galapunkti:
POST /v2/translate,POST /v2/document,POST /v2/document/{id},POST /v2/document/{id}/result,GET|POST /v2/usage,GET|POST /v2/languagesunGET /v3/languages. Authorization: DeepL-Auth-Keygalvene un mantotaisauth_keylauks.- JSON lauku nosaukumi, piemēram,
translations,detected_source_language,document_id,document_key,seconds_remainingunbilled_characters. - Dokumenta statusi:
queued,translating,done,error. - Statusa kodi:
400,403,404,413,456,503. - Valodu kodi, tostarp
EN-US,PT-BR,ES-419unZH-HANT. Skatiet Valodas.
Kas atšķiras
| DeepL | VibeQL | |
|---|---|---|
| Minimums dokumentā | 50 000 rakstzīmju | Nav. Dokuments izmanto tos rakstzīmes, kas tajā ir. |
| Glosāriji | Jā | Nav. glossary_id tiek ignorēts, un glosāriju galapunkti nepastāv. |
| Formalitāte | Jā, dažām valodām | Nav. formality tiek ignorēts, un supports_formality ir false. |
detected_source_language ieslēgts /v2/translate |
Noteiktā valoda | Jūsu source_lang vai EN, ja to neiekļaujat |
| Citi DeepL API, piemēram, DeepL Write | Jā | Nav pieejams |
| Dokumentu formāti | Daudzi | DOCX, PPTX, PDF, TXT |
| Cena | Skatiet DeepL | Skatiet Cenas |
Tulkojumi nāk no AI tulkošanas modeļiem, tāpēc formulējums var atšķirties no DeepL izvades tam pašam tekstam. Pirms visu plūsmu pārslēgšanas pārbaudiet sava satura paraugu.
Pārbaudiet pārslēgšanos
curl https://vibeql.com/v2/usage \
-H "Authorization: DeepL-Auth-Key $VIBEQL_API_KEY"
200 atbilde ar character_count un character_limit apstiprina, ka URL un atslēga darbojas.