https://github.com/fumiama/deepinfra
Lightweight OpenAI/OLLaMA/GenAI compatible caller, originally designed for DeepInfra.
https://github.com/fumiama/deepinfra
gemini-api genai genai-api golang golang-cli golang-library golang-package golang-tools google-generative-ai ollama ollama-api ollama-client openai openai-api openaiapi
Last synced: 4 days ago
JSON representation
Lightweight OpenAI/OLLaMA/GenAI compatible caller, originally designed for DeepInfra.
- Host: GitHub
- URL: https://github.com/fumiama/deepinfra
- Owner: fumiama
- License: agpl-3.0
- Created: 2025-02-14T06:11:27.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-21T16:36:13.000Z (3 months ago)
- Last Synced: 2026-02-12T10:55:29.563Z (28 days ago)
- Topics: gemini-api, genai, genai-api, golang, golang-cli, golang-library, golang-package, golang-tools, google-generative-ai, ollama, ollama-api, ollama-client, openai, openai-api, openaiapi
- Language: Go
- Homepage:
- Size: 58.6 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deepinfra
Lightweight OpenAI/OLLaMA/GenAI compatible caller, originally designed for DeepInfra.
## Quick Start
```go
api := NewAPI(OpenAIDeepInfra, "PUT YOUR API KEY HERE")
txt, err := api.Request(model.NewOpenAI(model.ModelDeepDeek, model.SeparatorThink, 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?
```