mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-02-12 23:15:05 -05:00
Update version to v..1 and commit
This commit is contained in:
@@ -29,8 +29,8 @@ type PromptRequest struct {
|
||||
}
|
||||
|
||||
type ChatRequest struct {
|
||||
Prompts []PromptRequest `json:"prompts"`
|
||||
common.ChatOptions // Embed the ChatOptions from common package
|
||||
Prompts []PromptRequest `json:"prompts"`
|
||||
common.ChatOptions // Embed the ChatOptions from common package
|
||||
}
|
||||
|
||||
type StreamResponse struct {
|
||||
|
||||
@@ -12,13 +12,13 @@ import (
|
||||
|
||||
// ConfigHandler defines the handler for configuration-related operations
|
||||
type ConfigHandler struct {
|
||||
db *fsdb.Db
|
||||
db *fsdb.Db
|
||||
// configurations *fsdb.EnvFilePath("$HOME/.config/fabric/.env")
|
||||
}
|
||||
|
||||
func NewConfigHandler(r *gin.Engine, db *fsdb.Db) *ConfigHandler {
|
||||
handler := &ConfigHandler{
|
||||
db: db,
|
||||
db: db,
|
||||
// configurations: db.Configurations,
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package restapi
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/danielmiessler/fabric/plugins/ai"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type ModelsHandler struct {
|
||||
|
||||
Reference in New Issue
Block a user