mirror of
https://github.com/fumiama/deepinfra.git
synced 2026-06-11 13:30:35 +08:00
feat: support image upload
This commit is contained in:
10
model/api.go
10
model/api.go
@@ -12,8 +12,8 @@ type Inputer interface {
|
||||
}
|
||||
|
||||
type Outputer interface {
|
||||
Output() string
|
||||
OutputRaw() string
|
||||
Output() Contents
|
||||
OutputRaw() Contents
|
||||
}
|
||||
|
||||
type Requester interface {
|
||||
@@ -22,9 +22,9 @@ type Requester interface {
|
||||
}
|
||||
|
||||
type MessageBuilder[T any] interface {
|
||||
System(prompt string) T
|
||||
User(prompt string) T
|
||||
Assistant(prompt string) T
|
||||
System(prompt ...Content) T
|
||||
User(prompt ...Content) T
|
||||
Assistant(prompt ...Content) T
|
||||
}
|
||||
|
||||
type Protocol interface {
|
||||
|
||||
Reference in New Issue
Block a user