Files

1 line
1.6 KiB
JSON

{"repo": "aarushbhutra/nusfuel", "files": {"backend/internal/config/deepseek.go": {"b8db3754fa777ad4d48ae15c445c6e3f520ad805": {"t": 1785745627.1596832, "n": 584, "h": "8da7cac7452bc275", "c": "package config\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\t\"strings\"\n)\n\nconst (\n\tDeepSeekAnthropicBaseURL = \"https://api.deepseek.com/anthropic\"\n\tDeepSeekV4FlashModel = \"deepseek-v4-flash\"\n)\n\ntype DeepSeekConfig struct {\n\tAPIKey string\n\tBaseURL string\n\tModel string\n}\n\nfunc LoadDeepSeekConfig() (DeepSeekConfig, error) {\n\tapiKey := strings.TrimSpace(os.Getenv(\"DEEPSEEK_API_KEY\"))\n\tif apiKey == \"\" {\n\t\treturn DeepSeekConfig{}, fmt.Errorf(\"DEEPSEEK_API_KEY is required\")\n\t}\n\n\treturn DeepSeekConfig{\n\t\tAPIKey: apiKey,\n\t\tBaseURL: DeepSeekAnthropicBaseURL,\n\t\tModel: DeepSeekV4FlashModel,\n\t}, nil\n}\n"}, "d718b196af6221bf3498a8028d4c5e269d550665": {"t": 1785755016.0405645, "n": 584, "h": "8da7cac7452bc275", "c": "package config\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\t\"strings\"\n)\n\nconst (\n\tDeepSeekAnthropicBaseURL = \"https://api.deepseek.com/anthropic\"\n\tDeepSeekV4FlashModel = \"deepseek-v4-flash\"\n)\n\ntype DeepSeekConfig struct {\n\tAPIKey string\n\tBaseURL string\n\tModel string\n}\n\nfunc LoadDeepSeekConfig() (DeepSeekConfig, error) {\n\tapiKey := strings.TrimSpace(os.Getenv(\"DEEPSEEK_API_KEY\"))\n\tif apiKey == \"\" {\n\t\treturn DeepSeekConfig{}, fmt.Errorf(\"DEEPSEEK_API_KEY is required\")\n\t}\n\n\treturn DeepSeekConfig{\n\t\tAPIKey: apiKey,\n\t\tBaseURL: DeepSeekAnthropicBaseURL,\n\t\tModel: DeepSeekV4FlashModel,\n\t}, nil\n}\n"}}}}