Files
hack/tools/scripts/llm-key-hunter/results/_cache/content/chaunceyliu_learn-web3-back-end.json

1 line
909 B
JSON

{"repo": "chaunceyliu/learn-web3-back-end", "files": {"src/ai/ai.service.ts": {"473a35bc1221d59954f93fb09db58cd10c6e878e": {"t": 1785745581.683183, "n": 691, "h": "f6137e6c9f5e5b2b", "c": "import { HttpService } from '@/http/http.service';\nimport { Injectable } from '@nestjs/common';\nimport { ConfigService } from '@nestjs/config'; \n\n@Injectable()\nexport class AiService {\n constructor(\n private readonly httpService: HttpService,\n private readonly configService: ConfigService,\n ) {}\n\n async analyzeMarketData(prompt: string) {\n const response = await this.httpService.postWithAuth(\n this.configService.get('DEEPSEEK_API_URL') || '',\n {\n model: 'deepseek-chat',\n messages: [{ role: 'user', content: prompt }],\n },\n this.configService.get('DEEPSEEK_API_KEY') || '',\n );\n\n return response.data.choices[0].message.content;\n }\n}\n"}}}}