-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because - Instill Format needs a more flexible, user-friendly way to handle diverse data types and conversions. - Binary data support and format standardization improve functionality and allow smoother developer and user experiences. This commit - Introduces support for unstructured data formats, with auto-conversion for image, audio, and video codec. - Enables data attributes access in file-type data. - Adds support for default values in the variable section, allowing fields to be optionally omitted in requests if a default is set. - Adds URL-based file upload support with a flexible workflow for base64 and URL uploads. - Separates data structs and format interfaces, ensuring Instill Format effectively differentiates data content from usage intent. - Updates components (openai, anthropic, mistral, text, document, image, collection) to align with the new interface structures.
- Loading branch information
Showing
203 changed files
with
8,849 additions
and
2,735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ linters: | |
linters-settings: | ||
stylecheck: | ||
checks: [ "all" ] | ||
staticcheck: | ||
checks: [ "all", "-SA1019" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ RUN --mount=target=. --mount=type=cache,target=/root/.cache/go-build --mount=typ | |
|
||
# k6 | ||
RUN go install go.k6.io/xk6/cmd/xk6@v${XK6_VERSION} | ||
RUN go install github.com/mfridman/[email protected] | ||
RUN xk6 build v${K6_VERSION} --with github.com/grafana/xk6-sql --output /usr/bin/k6 | ||
|
||
# -- set up Go | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package anthropic | ||
|
||
type MessagesInput struct { | ||
ChatHistory []ChatMessage `instill:"chat-history"` | ||
MaxNewTokens int `instill:"max-new-tokens"` | ||
ModelName string `instill:"model-name"` | ||
Prompt string `instill:"prompt"` | ||
PromptImages []string `instill:"prompt-images"` | ||
Seed int `instill:"seed"` | ||
SystemMsg string `instill:"system-message"` | ||
Temperature float32 `instill:"temperature"` | ||
TopK int `instill:"top-k"` | ||
} | ||
|
||
type ChatMessage struct { | ||
Role string `instill:"role"` | ||
Content []MultiModalContent `instill:"content"` | ||
} | ||
|
||
type MultiModalContent struct { | ||
ImageURL URL `instill:"image-url"` | ||
Text string `instill:"text"` | ||
Type string `instill:"type"` | ||
} | ||
|
||
type URL struct { | ||
URL string `instill:"url"` | ||
} | ||
|
||
type MessagesOutput struct { | ||
Text string `instill:"text"` | ||
Usage messagesUsage `instill:"usage"` | ||
} | ||
|
||
type messagesUsage struct { | ||
InputTokens int `instill:"input-tokens"` | ||
OutputTokens int `instill:"output-tokens"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.