Giter VIP home page Giter VIP logo

ai-code-translator's Introduction

AI Code Translator

Use AI to translate code from one language to another.

AI Code Translator

Running Locally

1. Clone Repo

git clone https://github.com/mckaywrigley/ai-code-translator.git

2. Install Dependencies

npm i

3. Run App

npm run dev

Contact

If you have any questions, feel free to reach out to me on Twitter.

ai-code-translator's People

Contributors

dreamyiz avatar fredvs avatar freestatman avatar jambo2018 avatar mckaywrigley avatar rahul-yadav-dev avatar transitive-bullshit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ai-code-translator's Issues

GPT long text code processing, which I think is desperately needed

GPT long text code processing, which I think is desperately needed
GPT长文本代码处理,这功能我觉得是迫切需要的

程序自动化的按照最大值的切割函数中的类,然后输出 而不是需要人工手动切割文本,这个功能确实很刚需
The program automatically cuts the classes in the function according to the maximum value, and then outputs the text rather than requiring manual cutting, this function is really just needed

tRPC Implementation

Overview

I think that tRPC offers a very high value to DX and will allow the project to become more standardized with Zod integration as well.

Drawbacks

The only drawback with this is that to support streaming OpenAI's response, it cannot be hosted in a serverless environment.

Add SwiftUI

Could someone add SwiftUI as a language option?

npm run dev error

[email protected] dev
next dev

/root/ai-code-translator/node_modules/next/dist/cli/next-dev.js:362
showAll: args["--show-all"] ?? false,
^

SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.dev (/root/ai-code-translator/node_modules/next/dist/lib/commands.js:10:30)
at Object. (/root/ai-code-translator/node_modules/next/dist/bin/next:141:28)
at Module._compile (internal/modules/cjs/loader.js:999:30)

GPT-4 does not exist

Hi, when I try to use GPT-4 with my API Key it returns the next error:

image

GPT-3.5 works well, so I assume this is not a problem of the API key, maybe something changed in the API?

abort generation

Would it be cool to add an abort generation button? I see you got something in the code, but no button.

idea: optional automatic language detection

could be cool to add a second api endpoint to take in a string and detect the language which auto-updates the UI and language variable used for the translate completions.

just a fun lil idea if anyone wants to build a PR for it 😄

GAMS programming language

Hi! I'm ready to help but what would be required to add the GAMS programming language to the tool? (supported by ChatGPT)

Pascal language?

Hello.

Nice project!
Do you have plan for conversion from/to Pascal language?
Pascal is still highly used ( Delphi, Free Pascal, Turbo Pascal, ...)
( And ChatGPT can deal with it. )
Fre;D

Improving drop down menu

The theme of the overall application is dark, and hence the dropdown menu which is in white looks quite odd.
I can upgrade it with a menu much better.
I request the maintainer of this repo to assign this issue to me

ENV issue

could this solve it? ENV isn't working I cannot use without key.

Authorization: Bearer ${key || process.env.OPENAI_API_KEY || ''},

Add ActionScript 2

so sorry, I'm old and this seems like a great way to help me not be so old?

ConnectTimeoutError

[TypeError: fetch failed] {
cause: [ConnectTimeoutError: Connect Timeout Error] {
name: 'ConnectTimeoutError',
code: 'UND_ERR_CONNECT_TIMEOUT',
message: 'Connect Timeout Error'
}

fetch failed

event - compiled successfully in 125 ms (47 modules) [TypeError: fetch failed] { cause: [ConnectTimeoutError: Connect Timeout Error] { name: 'ConnectTimeoutError', code: 'UND_ERR_CONNECT_TIMEOUT', message: 'Connect Timeout Error' }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.