- 👋 Hi, I’m @mckaywrigley
mckaywrigley / ai-code-translator Goto Github PK
View Code? Open in Web Editor NEWUse AI to translate code from one language to another.
Home Page: https://ai-code-translator.vercel.app
Use AI to translate code from one language to another.
Home Page: https://ai-code-translator.vercel.app
[TypeError: fetch failed] {
cause: [ConnectTimeoutError: Connect Timeout Error] {
name: 'ConnectTimeoutError',
code: 'UND_ERR_CONNECT_TIMEOUT',
message: 'Connect Timeout Error'
}
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 😄
Hi! I'm ready to help but what would be required to add the GAMS programming language to the tool? (supported by ChatGPT)
tried x4 to add the key from openai https://platform.openai.com/account/api-keys and it fails maybe because the keuy i get is only got v4? have no idea.
so sorry, I'm old and this seems like a great way to help me not be so old?
Would it be cool to add an abort generation button? I see you got something in the code, but no button.
[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)
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
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.
The only drawback with this is that to support streaming OpenAI's response, it cannot be hosted in a serverless environment.
Could someone add SwiftUI as a language option?
Update this please?
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' }
Warning: React Hook useEffect has missing dependencies: 'handleTranslate' and 'hasTranslated'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
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
as a language option?
Would it be possible to use AutoIt to the list of languages? Thanks!
translate <path_to_file> -js (code options)
Can I use other Large Language Model interfaces like deepseek?
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
could this solve it? ENV isn't working I cannot use without key.
Authorization: Bearer ${key || process.env.OPENAI_API_KEY || ''}
,
Hello, when I try running the web app I get the error "Something went wrong". This happens both with https://ai-code-translator.vercel.app/ and if I use the app locally (tested: Windows 10). Is there anything I should do to fix the issue? Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.