1
0
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:
源文雨
2025-09-24 00:18:32 +08:00
parent e3d1b92cc3
commit 8757564fe7
10 changed files with 376 additions and 98 deletions

View File

@@ -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 {