wangym
wangym
我订阅了 ollama.com 的 Pro 套餐,用 cc-switch 把 Ollama 的 DeepSeek 接到 Claude Code 里用。现在看剩余额度只能上 ollama.com/settings 网页查,卡片上看不到,想跟 Copilot 一样直接在卡片显示剩余额度。 **涉及应用**:Claude Code **问题/动机** Ollama 订阅按 token 计费,额度查起来不方便。Ollama 有现成的查询接口:`GET https://ollama.com/api/balance`(Bearer API Key)返回 `balance_usd`、`allowance_usd`、`period.until`,还有...
hi,i have one questtion in server,define a controller ``` @RequestMapping(value = "/helloWorld", method = RequestMethod.GET) public void helloWorld(@RequestParam("isEnable") Integer isEnable) { log.info("status:{}",isEnable); } ``` in client,define feign interface ``` @RequestMapping(value...
in my controller ``` @RequestMapping(value = "/hello", method = RequestMethod.POST) public ResponseEntity hello(@RequestBody Model pojo) ``` in model ``` @Data public class Model{ @ApiParam(value = "nick name", required = true)...
when i modify class name finish and save to a file , i find that the code style will be change , but i want to keep the same style...
if the class not exist import before .if add import and use LexicalPreservingPrinter to print, it look like that missing EOL ; the code like that ``` @Test public void...
i using spring-cloud-sleuth in project, i want to do some thing after `TraceLoadBalancerFeignClient.execute` finish. so,i try configuration spring aspect,like that ``` @Around("execution (* org.springframework.cloud.sleuth.instrument.web.client.feign.TraceLoadBalancerFeignClient.execute(..))") public Object feignClientWasCalled(final ProceedingJoinPoint pjp) throws...
i try define myLoadBalancerFeignClient extend of LoadBalancerFeignClient , and override the LBFC.execute, ``` @Configuration @Slf4j public class LoadBalancerConf { @Bean public Client myLoadBalancerFeignClient(CachingSpringLoadBalancerFactory lbClientFactory, SpringClientFactory clientFactory) { return new MyLoadBalancerFeignClient(new...