Skip to content

openai-scheduler is a simple scheduler for OpenAI client. It contains auto detector of Client status.

License

Notifications You must be signed in to change notification settings

promptc/openai-scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI Scheduler

This is a simple scheduler for OpenAI Client in Go.

It contains auto detected OpenAI client status and handle the wrong status.

Usage

package main

import (
    "github.com/promptc/openai-scheduler"
)

var scheduler *openai_scheduler.Scheduler

func main() {
	tokens := []string{"token1", "token2"}
	scheduler = openai_scheduler.NewScheduler(tokens)
	scheduler.StartDaemon()
	// Some codes
}

func feedPrompt() {
	gpt := scheduler.GetClient()
	// Do codes just like do on *openai.Client
}

About

openai-scheduler is a simple scheduler for OpenAI client. It contains auto detector of Client status.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages