File size: 1,394 Bytes
1f1b4db |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
syntax = "proto3";
package windsurf;
import "clientinfo.proto";
// Main message structure
message ChatRequestMessage {
ClientInfo client_info = 1;
string system_prompt = 2;
repeated ChatMessage chat_messages = 3;
uint32 model_id = 6; // 170 for gpt-4o, 171 for claude
uint32 idk_id= 7; // 5
ModelConfig model_config = 8;
ToolConfig tool_config = 10;
ToolUse tool_use = 12; // "auto"
IDK13n idk13 = 13; // 1
}
message ToolUse {
string mode = 1;
}
message IDK13n {
uint32 idk13nn = 1;
}
// Chat message structure
message ChatMessage {
uint32 role = 2; // 1 for user, 2 for assistant
string content = 3;
sint32 tokens = 4;
uint32 idk2 = 5; // 1 ?
msgIDK idk3 = 8; // 1 ?
repeated ImagePart image_parts = 10;
}
message msgIDK {
uint32 idk4 = 1; // 1 ?
}
message ImagePart {
string image_data = 1; // 1 string /9j/4AAQSkZJRg....
string image_mime_type = 2; // "image/png"
}
// Model configuration
message ModelConfig {
int32 parallel_stream = 1;
int32 max_tokens = 2;
// int32 idk9 = 3; // 200
double temperature = 5;
// double idk2 = 6; // 1.0
int32 top_k = 7;
double top_P = 8;
repeated string special_tokens = 9;
// double idk4 = 11; // 1.0
}
// Tool configuration
message ToolConfig {
string tool_name = 1;
string description = 2;
string schema = 3;
}
|