Open Maelstrom602 opened 1 year ago
Hello. If you are using Windows, you can use text editors like notepad++ or sublime text to edit the configuration. It's not necessary to use vim in Windows.
Oh, I used notepad to put down the various lines- but for some reason I wasn't able to make it a toml file. Currently using Windows 11.
I'm a bit of a newbie.
You can enable the display of file extension first, and then create a txt file and rename it to toml. Google for 'show file extension windows 11'.
Changed it to tmol file. Fired up the python external/api.py command.
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\xxxx\poe-openai-proxy\external\..\config.toml'
(I copypasted the code lines individually instead of copying the entire prompt while making it.)
This means that the program cannot find the configuration file. Did you put it in the right folder (in the same folder as go.mod) and ensure the file name is correct?
I think I got it running. Must've typed in the file name wrong.
Do I still need to build the go backend?
Yes you need. The go backend will call apis of the python backend.
"'chmod' is not recognized as an internal or external command, operable program or batch file."
On Windows you don't need the chmod step.
Oh damn. Which parts do I keep in? It says go isn't recognized as a command.
Thanks for your patience btw. I sometimes have trouble interpreting instructions.
Never mind. You should install golang the programming language first.
Alright, I resolved step 5. Will I be able to recieve an api at this point? Or do I have to fetch one for the curl command.
Something like 'register... ok' in the output of the go backend should indicate the successful start of the program. After that you can use curl to do a test referring to the openai document or connect other apps to it by changing the openai endpoint of the corresponding app.
It says it's running, but I didn't get "register...ok"
Tried to redo the go build command and it didn't work for some reason. It worked initially, but now I'm getting a blank response, and errors if I pair the top line with "./poe-openai-proxy"
Did you fill in your poe tokens? The tokens written in the README are for demostration purposes only and invalid.
Yes. Though I could only fill in one. I removed the other. Couldn't get two separate tokens.
Could you provide the full output of the python and the go backend?
C:\Users\xxxx\poe-openai-proxy>python external/api.py # Running on port 5000
main module (test3) does not contain package test3/poe-openai-proxy
Seems that the go program cannot be compile normally. Are this error main module (test3) does not contain package test3/poe-openai-proxy
occured when you ran go build
? The code do not have a package named test3
. Weired. Try to run go mod tidy
and re-run go build
.
Ran -go mod tidy- and got this:
"test3/go/pkg/mod/github.com/op/go-logging@v0.0.0-20160315200505-970db520ece7: import path "test3/go/pkg/mod/github.com/op/go-logging@v0.0.0-20160315200505-970db520ece7" should not have @version test3/go/pkg/mod/github.com/op/go-logging@v0.0.0-20160315200505-970db520ece7/examples: import path "test3/go/pkg/mod/github.com/op/go-logging@v0.0.0-20160315200505-970db520ece7/examples" should not have @version"
I've not seen this type of error before. Please do a git pull as I have just commited a new go mod
file. Also could you please run go version
and provide the version of your go installation?
If this does not help, try this pre-compiled executable file: https://wormhole.app/0WJMP#wMVd6O-jIxQYgy9CSyTujA
(for Windows x86_64, downloadable in 24 hours)
vim config.toml doesn't seem to be a valid command in powershell, command prompt, or python. I tried installing Vim but I couldn't figure out how to use it. How do I make this config.toml file?