Mercurial Hosting > lang
comparison src/lib/ai/claude/Chat.luan @ 11:003a90ce72d7
minor fix
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 22 Jul 2025 15:30:10 -0600 |
parents | 46097e607701 |
children | 2d4b3f003ec2 |
comparison
equal
deleted
inserted
replaced
10:b0b325565d30 | 11:003a90ce72d7 |
---|---|
11 local json_string = Parsers.json_string or error() | 11 local json_string = Parsers.json_string or error() |
12 local Claude = require "site:/lib/ai/claude/Claude.luan" | 12 local Claude = require "site:/lib/ai/claude/Claude.luan" |
13 local claude_chat = Claude.chat or error() | 13 local claude_chat = Claude.chat or error() |
14 local Logging = require "luan:logging/Logging.luan" | 14 local Logging = require "luan:logging/Logging.luan" |
15 local logger = Logging.logger "claude/Chat" | 15 local logger = Logging.logger "claude/Chat" |
16 local Thread = require "luan:Thread.luan" | |
17 | 16 |
18 | 17 |
19 local Chat = {} | 18 local Chat = {} |
20 | 19 |
21 function Chat.output_system_prompt(thread) | 20 function Chat.output_system_prompt(thread) |
106 - 7 | 105 - 7 |
107 - 8 | 106 - 8 |
108 - 9 | 107 - 9 |
109 - 10 | 108 - 10 |
110 ]] | 109 ]] |
111 Thread.sleep(5000) | |
112 } | 110 } |
113 if true then | 111 if true then |
114 return json_string(thread) | 112 return json_string(thread) |
115 end | 113 end |
116 --]=] | 114 --]=] |