Mercurial Hosting > lang
comparison src/lib/ai/claude/Claude.luan @ 40:6cdb2c761e08
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 10 Aug 2025 11:29:02 +0900 |
parents | df72d5d5d9dc |
children |
comparison
equal
deleted
inserted
replaced
39:df72d5d5d9dc | 40:6cdb2c761e08 |
---|---|
46 local options = { | 46 local options = { |
47 method = "POST" | 47 method = "POST" |
48 headers = headers | 48 headers = headers |
49 content = json_string(thread) | 49 content = json_string(thread) |
50 } | 50 } |
51 local response = uri(url,options).read_text() | 51 try |
52 return response | 52 local response = uri(url,options).read_text() |
53 return response | |
54 catch e | |
55 logger.error(options.content) | |
56 e.throw() | |
57 end | |
53 end | 58 end |
54 | 59 |
55 return Claude | 60 return Claude |