databingo / aih Goto Github PK
View Code? Open in Web Editor NEWTalk to AI modes in terminal. Bard|GPT3.5|Llama2
License: MIT License
Talk to AI modes in terminal. Bard|GPT3.5|Llama2
License: MIT License
Seems like a useful tool! :) Can you please add a license for it?
Best,
Niklas
Something like ./aih --chat "print helloworld in go" --output file.txy
to ask web chatGpt for answers
like reset in bard and Claude. System message, temperature for api mode
go 1.20
.bard> .key
✔ Set Google Bard Cookie
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xa0 pc=0x8a9950]
goroutine 1 [running]:
main.main()
aih/main.go:516 +0x1d90
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/Databingo/EdgeGPT-Go/internal/CookieManager.(*Manager).findMinIndex(...)
/Users/chengang/go/pkg/mod/github.com/!databingo/!edge!g!p!t-![email protected]/internal/CookieManager/manager.go:92
github.com/Databingo/EdgeGPT-Go/internal/CookieManager.(*Manager).GetBestCookie(0x1?)
/Users/chengang/go/pkg/mod/github.com/!databingo/!edge!g!p!t-![email protected]/internal/CookieManager/manager.go:76 +0x131
github.com/Databingo/EdgeGPT-Go.NewGPT(0xc0000baf80)
/Users/chengang/go/pkg/mod/github.com/!databingo/!edge!g!p!t-![email protected]/gpt.go:46 +0x3d
github.com/Databingo/EdgeGPT-Go.(*Storage).GetOrSet(0xc00011d4b8, {0xa359d1, 0x7})
/Users/chengang/go/pkg/mod/github.com/!databingo/!edge!g!p!t-![email protected]/storage.go:31 +0xab
main.main()
/usr/local/projects/aih/main.go:166 +0xbd8
first of all, we should add '@claude ' before message, and then, we can not get response from claude.
Since 0.2 all 12 provided binaries are identical.
E.g. I download windows binary, and see aih.exe file, but it is not EXE inside, it is impossible to execute it.
P.S.
I have tried to build it myself, but:
vi.go:6:12: pattern vi: no matching files found
Bard now has an issue, when invoking it returns this error:
json: cannot unmarshal array into Go value of type string
I follow the step create a app and get the user oauth token. but can't get it work. Do i need to create a channel ,and add my app and claude app into the new channel ,use the new channel id?
For Cloude in Slack, create an Slack App by click Create New App, then click From scratch, then click Create App, find OAuth & Permissions->Scope->User Token Scope, add these promisions:
channels:history
channels:read
chat:write
files:write
groups:history
groups:read
im:history
im:read
im:write
mpim:history
mpim:read
team:read
users:read
then click Install to Workspace to find your User OAuth Token; You can obtain your channel_id by open the webside of chating with Claude in Slack via format of https://app.slack.com/client/xxxxx/yyyyy, then yyyyy is it.
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.