-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
104 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
syntax = "proto3"; | ||
|
||
package chat; | ||
|
||
// _______ ________ | | ||
// |ooooooo| ____ | __ __ | | | ||
// |[]+++[]| [____] |/ \/ \| | | ||
// |+ ___ +| ]()()[ |\__/\__/| | | ||
// |:| |:| ___\__/___ |[][][][]| | | ||
// |:|___|:| |__| |__| |++++++++| | | ||
// |[]===[]| |_|_/\_|_| | ______ | | | ||
// _ ||||||||| _ | | __ | | __ ||______|| __| | ||
// |_______| |_|[::]|_| |________| \ | ||
// \_|_||_|_/ jro\ | ||
// |_||_| \ | ||
// _|_||_|_ \ | ||
// ____ |___||___| \ | ||
// / __\ ____ \ | ||
// \( oo (___ \ \ | ||
// _\_o/ oo~)/ | ||
// / \|/ \ _\-_/_ | ||
// / / __\ \___ / \|/ \ | ||
// \ \| |__/_) / / .- \ \ | ||
// \/_) | \ \ . /_/ | ||
// ||___| \/___(_/ | ||
// | | | | | | | ||
// | | | | | | | ||
// |_|_| |_|__| | ||
// [__)_) (_(___] | ||
// Credit: https://www.asciiart.eu/ | ||
|
||
option go_package = "github.com/overmindtech/sdp-go;sdp"; | ||
|
||
// this is based on https://platform.openai.com/docs/api-reference/messages/object | ||
message ChatMessage { | ||
repeated Content content = 1; | ||
repeated Attachments attachments = 2; | ||
} | ||
|
||
message Content { | ||
string type = 1; | ||
oneof content { | ||
Text text = 2; | ||
ImageFile imageFile = 3; | ||
ImageURL imageURL = 4; | ||
} | ||
} | ||
|
||
message ImageFile { | ||
string fileID = 1; | ||
string detail = 2; | ||
} | ||
|
||
message ImageURL { | ||
string url = 1; | ||
string detail = 2; | ||
} | ||
|
||
message Text { | ||
string text = 1; | ||
} | ||
|
||
message Attachments { | ||
string fileID = 1; | ||
repeated Tools tools = 2; | ||
} | ||
|
||
message Tools { | ||
oneof tool { | ||
CodeInterpreter codeInterpreter = 1; | ||
FileSearch fileSearch = 2; | ||
} | ||
} | ||
|
||
message CodeInterpreter { | ||
string Type = 1; | ||
} | ||
|
||
message FileSearch { | ||
string Type = 1; | ||
} |
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