Skip to content

Instantly share code, notes, and snippets.

View hongbo-miao's full-sized avatar
❣️

Hongbo Miao hongbo-miao

❣️
View GitHub Profile
@hongbo-miao
hongbo-miao / gist:b10b9785997e6078b9290cb30af5ccf2
Last active October 15, 2024 21:39
LiteLLM log for Continue
21:18:26 - LiteLLM Proxy:DEBUG: litellm_pre_call_utils.py:195 - Request Headers: Headers({'host': 'litellm.example.com', 'user-agent': 'node-fetch', 'content-length': '3883', 'accept': '*/*', 'accept-encoding': 'gzip, deflate, br', 'api-key': 'anything', 'authorization': 'Bearer anything', 'content-type': 'application/json', 'x-forwarded-for': '172.31.191.224', 'x-forwarded-host': 'litellm.example.com', 'x-forwarded-port': '443', 'x-forwarded-proto': 'https', 'x-forwarded-server': 'horizon-traefik-7765cbd49c-cm5n6', 'x-real-ip': '172.31.191.224'})
21:18:26 - LiteLLM Proxy:DEBUG: litellm_pre_call_utils.py:201 - receiving data: {'model': 'claude-3-5-sonnet', 'max_tokens': 2048, 'temperature': 0.01, 'stream': True, 'stop': ['</COMPLETION>', '\n\n', '\r\n\r\n', '/src/', '#- coding: utf-8', '```', '\ndef', '\nclass', '\n"""#'], 'prompt': 'You are a HOLE FILLER. You are provided with a file containing holes, formatted as \'{{HOLE_NAME}}\'. Your TASK is to complete with a string to replace this hol
@hongbo-miao
hongbo-miao / gist:03b3bb1dd9585d185611e4b848123df6
Created October 7, 2024 23:32
LiteLLM bug: Conversation blocks and tool result blocks cannot be provided in the same turn.
This file has been truncated, but you can view the full file.
22:34:16 - LiteLLM Proxy:DEBUG: proxy_server.py:3113 - Request received by LiteLLM:
{
"model": "claude-3-opus",
"messages": [
{
"role": "system",
"content": "You are Claude Dev, a highly skilled software developer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.\n\n====\n \nCAPABILITIES\n\n- You can read and analyze code in various programming languages, and can write clean, efficient, and well-documented code.\n- You can debug complex issues and providing detailed explanations, offering architectural insights and design patterns.\n- You have access to tools that let you execute CLI commands on the user's computer, list files, view source code definitions, regex search, inspect websites, read and write files, and ask follow-up questions. These tools help you effectively accomplish a wide range of tasks, such as writing code, making edits or improvements to existing files, understanding the current state of
@hongbo-miao
hongbo-miao / gist:8577107aba2db2cff0b577cede63e12b
Created October 4, 2024 04:23
LiteLLM error log: Conversation blocks and tool result blocks cannot be provided in the same turn.
This file has been truncated, but you can view the full file.
04:20:27 - LiteLLM Proxy:DEBUG: proxy_server.py:3122 - Request received by LiteLLM:
{
"model": "claude-3-opus",
"messages": [
{
"role": "system",
"content": "You are Claude Dev, a highly skilled software developer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.\n\n====\n \nCAPABILITIES\n\n- You can read and analyze code in various programming languages, and can write clean, efficient, and well-documented code.\n- You can debug complex issues and providing detailed explanations, offering architectural insights and design patterns.\n- You have access to tools that let you execute CLI commands on the user's computer, list files, view source code definitions, regex search, inspect websites, read and write files, and ask follow-up questions. These tools help you effectively accomplish a wide range of tasks, such as writing code, making edits or improvements to existing files, understanding the current state of
This file has been truncated, but you can view the full file.
22:12:36 - LiteLLM Proxy:DEBUG: proxy_server.py:3109 - Request received by LiteLLM:
{
"model": "claude-3-opus",
"messages": [
{
"role": "system",
"content": "You are Claude Dev, a highly skilled software developer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.\n\n====\n \nCAPABILITIES\n\n- You can read and analyze code in various programming languages, and can write clean, efficient, and well-documented code.\n- You can debug complex issues and providing detailed explanations, offering architectural insights and design patterns.\n- You have access to tools that let you execute CLI commands on the user's computer, list files, view source code definitions, regex search, inspect websites, read and write files, and ask follow-up questions. These tools help you effectively accomplish a wide range of tasks, such as writing code, making edits or improvements to existing files, understanding the current state of
@hongbo-miao
hongbo-miao / gist:feff6f441727b6db7c7104784eb7e3f4
Created July 16, 2024 17:23
Clang v18.1.8 default LLVM .clang-format
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveAssignments:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
>> ATTEMPT 1/1
2024-07-14 08:08:51 platform > Cloud storage job log path: /workspace/924/0/logs.log
2024-07-14 08:09:04 INFO i.m.r.Micronaut(start):101 - Startup completed in 2249ms. Server Running: http://orchestrator-repl-job-924-attempt-0:9000
2024-07-14 08:09:05 replication-orchestrator > Writing async status INITIALIZING for KubePodInfo[namespace=production-hm-airbyte, name=orchestrator-repl-job-924-attempt-0, mainContainerInfo=KubeContainerInfo[image=airbyte/container-orchestrator:0.63.6, pullPolicy=IfNotPresent]]...
2024-07-14 08:08:51 platform > Executing worker wrapper. Airbyte version: 0.63.6
2024-07-14 08:08:51 platform > Creating orchestrator-repl-job-924-attempt-0 for attempt number: 0
2024-07-14 08:08:51 platform > Successfully deleted all running pods for the connection!
2024-07-14 08:08:56 platform > Waiting for pod to be running...
2024-07-14 08:08:58 platform > Pod production-hm-airbyte/orchestrator-repl-job-924-attempt-
@hongbo-miao
hongbo-miao / gist:c65bb869eb9c52bd275bcb9607251d66
Last active July 15, 2024 01:06
Airbyte sync succeed log
>> ATTEMPT 1/1
2024-07-14 07:46:41 platform > Cloud storage job log path: /workspace/923/0/logs.log
2024-07-14 07:47:20 INFO i.m.r.Micronaut(start):101 - Startup completed in 2263ms. Server Running: http://orchestrator-repl-job-923-attempt-0:9000
2024-07-14 07:47:22 replication-orchestrator > Writing async status INITIALIZING for KubePodInfo[namespace=production-hm-airbyte, name=orchestrator-repl-job-923-attempt-0, mainContainerInfo=KubeContainerInfo[image=airbyte/container-orchestrator:0.63.6, pullPolicy=IfNotPresent]]...
2024-07-14 07:46:41 platform > Executing worker wrapper. Airbyte version: 0.63.6
2024-07-14 07:46:41 platform >
2024-07-14 07:46:41 platform > Using default value for environment variable SIDECAR_KUBE_CPU_LIMIT: '2.0'
2024-07-14 07:46:41 platform > ----- START CHECK -----
2024-07-14 07:46:41 platform > Using default value for environment variable SOCAT_KUBE_CPU_LIMIT: '2.0'
@hongbo-miao
hongbo-miao / gist:860afd1e482ef6227876d979b4c0aa0b
Last active July 11, 2024 01:58
MSK KRaft connector error log
```sh
[Worker-0b87c1d131f888840] No sanity checks script found. Ignoring.
[Worker-0b87c1d131f888840] Waiting for resolving bootstrap servers address ...
[Worker-0b87c1d131f888840] Successfully resolved bootstrap servers address.
[Worker-0b87c1d131f888840] Starting MSK Connect...
[Worker-0b87c1d131f888840] [2024-07-10 20:45:15,092] INFO WorkerInfo values:
[Worker-0b87c1d131f888840] jvm.args = JVM_ARGS
[Worker-0b87c1d131f888840] jvm.spec = Amazon.com Inc., OpenJDK 64-Bit Server VM, 11.0.22, 11.0.22+7-LTS
[Worker-0b87c1d131f888840] jvm.classpath = CLASSPATH
[Worker-0b87c1d131f888840] os.spec = Linux, amd64, 5.10.215-203.850.amzn2.x86_64
@hongbo-miao
hongbo-miao / code_line_count.json
Last active December 2, 2024 10:33
hongbomiao.com code line count
{"label":"code lines","message":"211.6k","schemaVersion":1,"color":"blue","labelColor":"gray"}
#if defined(ESP32)
#include <WiFiMulti.h>
WiFiMulti wifiMulti;
#define DEVICE "ESP32"
#elif defined(ESP8266)
#include <ESP8266WiFiMulti.h>
ESP8266WiFiMulti wifiMulti;
#define DEVICE "ESP8266"
#endif