Local branch had diverged from origin/master (sibling commits on the same base). Rewrote local history linearly on top of origin/master, folding in all local content: exa/hot-platform discovery hunters, leaks ledger, nightly sweep orchestrator, updated .gitignore and skill docs, plus the latest hunt output and vault state. Remote-only files (vault keys, channel scripts) were restored rather than dropped, so the resulting tree is a full union of both sides.
1 line
3.4 KiB
JSON
1 line
3.4 KiB
JSON
{"repo": "aslier16/csharpplayground", "files": {"CSharpPlayground/Models/DeepseekRequest.cs": {"0b8ee61c5f1376ca1169e1a05c27686e349a5df8": {"t": 1786067640.336816, "n": 3160, "h": "3f69725bae754400", "c": "using System;\nusing System.Collections.Generic;\nusing System.Net.Http;\nusing System.Text;\nusing System.Text.Json;\nusing System.Threading.Tasks;\n\nnamespace CSharpPlayground.Models;\n\npublic class DeepseekRequest\n{\n public async Task<string> SendRequest(string userContent, string token)\n {\n var client = new HttpClient();\n var drequest = new HttpRequestMessage(HttpMethod.Post, \"https://api.deepseek.com/chat/completions\");\n drequest.Headers.Add(\"Accept\", \"application/json\");\n drequest.Headers.Add(\"Authorization\", $\"Bearer {token}\");\n\n var chatRequest = new ChatRequest\n {\n messages = new List<RequestMessage>\n {\n new RequestMessage { role = \"system\", content = \"You are a helpful assistant\" },\n new RequestMessage { role = \"user\", content = userContent }\n },\n model = \"deepseek-chat\",\n frequency_penalty = 0,\n max_tokens = 2048,\n presence_penalty = 0,\n response_format = new ResponseFormat { type = \"text\" },\n stop = null,\n stream = false,\n stream_options = null,\n temperature = 1,\n top_p = 1,\n tools = null,\n tool_choice = \"none\",\n logprobs = false,\n top_logprobs = null\n };\n\n var json = JsonSerializer.Serialize(chatRequest, new JsonSerializerOptions { IgnoreNullValues = true });\n drequest.Content = new StringContent(json, Encoding.UTF8, \"application/json\");\n var dresponse = await client.SendAsync(drequest);\n dresponse.EnsureSuccessStatusCode();\n return await dresponse.Content.ReadAsStringAsync();\n }\n}\n\npublic class ChatRequest\n{\n public List<RequestMessage> messages { get; set; }\n public string model { get; set; }\n public double frequency_penalty { get; set; }\n public int max_tokens { get; set; }\n public double presence_penalty { get; set; }\n public ResponseFormat response_format { get; set; }\n public object stop { get; set; }\n public bool stream { get; set; }\n public object stream_options { get; set; }\n public double temperature { get; set; }\n public double top_p { get; set; }\n public object tools { get; set; }\n public string tool_choice { get; set; }\n public bool logprobs { get; set; }\n public object top_logprobs { get; set; }\n}\n\npublic class ResponseFormat\n{\n public string type { get; set; }\n}\n\npublic class RequestMessage\n{\n public string content { get; set; }\n public string role { get; set; }\n}\n\npublic class Response\n{\n public string id { get; set; }\n public Choice[] choices { get; set; }\n public int created { get; set; }\n public string model { get; set; }\n}\n\npublic class Choice\n{\n public string finish_reason { get; set; }\n public int index { get; set; }\n public ResponseMessage message { get; set; }\n public int created { get; set; }\n public string model { get; set; }\n}\n\npublic class ResponseMessage\n{\n public string content { get; set; }\n public string reasoning_content { get; set; }\n public string role { get; set; }\n}\n\n"}}}} |