MCPcopy
hub / github.com/showlab/Code2Video / generate_log_id

Function generate_log_id

src/gpt_request.py:22–24  ·  view source on GitHub ↗

Generate a log ID with 'tkb' prefix and current timestamp.

()

Source from the content-addressed store, hash-verified

20
21
22def generate_log_id():
23 """Generate a log ID with 'tkb' prefix and current timestamp."""
24 return f"tkb{int(time.time() * 1000)}"
25
26
27def request_claude(prompt, log_id=None, max_tokens=16384, max_retries=3):

Callers 15

request_claudeFunction · 0.85
request_claude_tokenFunction · 0.85
request_gemini_video_imgFunction · 0.85
request_geminiFunction · 0.85
request_gemini_tokenFunction · 0.85
request_gpt4oFunction · 0.85
request_gpt4o_tokenFunction · 0.85
request_o4miniFunction · 0.85
request_o4mini_tokenFunction · 0.85
request_gpt5Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected