mirror of
https://github.com/fumiama/deepinfra.git
synced 2026-06-10 21:16:55 +08:00
init: add codes
This commit is contained in:
13
README.md
13
README.md
@@ -1,2 +1,15 @@
|
||||
# deepinfra
|
||||
Call OpenAI compatible APIs, originally designed for DeepInfra.
|
||||
|
||||
## Quick Start
|
||||
```go
|
||||
api := NewAPI(APIDeepInfra, "PUT YOUR API KEY HERE")
|
||||
txt, err := api.Request(model.NewDeepSeek(0.7, 0.9, 1024).
|
||||
System("Be a good assistant.").User("Hello"),
|
||||
)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Println(txt)
|
||||
// Hello! How can I assist you today?
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user