mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 17:14:28 +00:00
Add OpenAI-compatible endpoints and instance creation timestamp
This commit is contained in:
13
pkg/openai.go
Normal file
13
pkg/openai.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package llamactl
|
||||
|
||||
type OpenAIListInstancesResponse struct {
|
||||
Object string `json:"object"`
|
||||
Data []OpenAIInstance `json:"data"`
|
||||
}
|
||||
|
||||
type OpenAIInstance struct {
|
||||
ID string `json:"id"`
|
||||
Object string `json:"object"`
|
||||
Created int64 `json:"created"`
|
||||
OwnedBy string `json:"owned_by"`
|
||||
}
|
||||
Reference in New Issue
Block a user