You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
{% else if key == "system" or key == "model" or key == "temperature" or key == "store" or key == "max_tokens" or key == "stream" or key == "presence_penalty" or key == "metadata" or key == "frequency_penalty" or key == "tools" or key == "tool_choice" or key == "logprobs" or key == "top_logprobs" or key == "logit_bias" or key == "n" or key == "modalities" or key == "prediction" or key == "response_format" or key == "service_tier" or key == "seed" or key == "stop" or key == "stream_options" or key == "top_p" or key == "parallel_tool_calls" or key == "user" %}
29
30
"{{ key }}": {{ tojson(value) }}
31
+
{% if not loop.is_last %},{% endif %}
30
32
{% endif %}
31
-
{% if not loop.is_last %},{% endif %}
32
33
{% endfor %} })";
33
34
{
34
35
std::string message_with_system = R"({
36
+
"engine" : "anthropic",
37
+
"max_tokens" : 1024,
35
38
"messages": [
36
39
{"role": "system", "content": "You are a seasoned data scientist at a Fortune 500 company."},
37
40
{"role": "user", "content": "Hello, world"}
38
41
],
39
42
"model": "claude-3-5-sonnet-20241022",
40
-
"max_tokens": 1024,
43
+
"stream" : true
41
44
})";
42
45
43
46
auto data = json_helper::ParseJsonString(message_with_system);
0 commit comments