|
1 | 1 | interactions: |
2 | | -- request: |
3 | | - body: '{"message": "Tell me a story in 3 sentences or less?", "stream": false, |
4 | | - "model": "command", "preamble": "answer like a pirate", "chat_history": [{"role": |
5 | | - "USER", "message": "Who discovered gravity?"}, {"role": "CHATBOT", "message": |
6 | | - "The man who is widely credited with discovering gravity is Sir Isaac Newton"}], |
7 | | - "connectors": [{"id": "web-search"}], "temperature": 0.1}' |
8 | | - headers: |
9 | | - accept: |
10 | | - - '*/*' |
11 | | - accept-encoding: |
12 | | - - gzip, deflate |
13 | | - connection: |
14 | | - - keep-alive |
15 | | - content-length: |
16 | | - - '370' |
17 | | - content-type: |
18 | | - - application/json |
19 | | - host: |
20 | | - - api.cohere.com |
21 | | - user-agent: |
22 | | - - python-httpx/0.27.0 |
23 | | - x-fern-language: |
24 | | - - Python |
25 | | - x-fern-sdk-name: |
26 | | - - cohere |
27 | | - x-fern-sdk-version: |
28 | | - - 5.5.3 |
29 | | - method: POST |
30 | | - uri: https://api.cohere.com/v1/chat |
31 | | - response: |
32 | | - body: |
33 | | - string: '{"response_id":"6b2a2c29-2cd4-4e79-a05a-db8a6019b757","text":"Argh, |
34 | | - many years ago, a bold explorer named Isaac Newton sat beneath an apple tree |
35 | | - for many hours, contemplating the nature of the universe. Suddenly, an apple |
36 | | - fell from the sky, striking him on the head. This inspired him to devise a |
37 | | - theory about the forces that govern objects on Earth and altered our understanding |
38 | | - of the universe forevermore.","generation_id":"f3b5a0d7-409b-45a7-9324-5b89c944457e","chat_history":[{"role":"USER","message":"Who |
39 | | - discovered gravity?"},{"role":"CHATBOT","message":"The man who is widely credited |
40 | | - with discovering gravity is Sir Isaac Newton"},{"role":"USER","message":"Tell |
41 | | - me a story in 3 sentences or less?"},{"role":"CHATBOT","message":"Argh, many |
42 | | - years ago, a bold explorer named Isaac Newton sat beneath an apple tree for |
43 | | - many hours, contemplating the nature of the universe. Suddenly, an apple fell |
44 | | - from the sky, striking him on the head. This inspired him to devise a theory |
45 | | - about the forces that govern objects on Earth and altered our understanding |
46 | | - of the universe forevermore."}],"finish_reason":"COMPLETE","meta":{"api_version":{"version":"1"},"billed_units":{"input_tokens":31,"output_tokens":69},"tokens":{"input_tokens":49,"output_tokens":69}},"documents":[]}' |
47 | | - headers: |
48 | | - Alt-Svc: |
49 | | - - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 |
50 | | - Via: |
51 | | - - 1.1 google |
52 | | - access-control-expose-headers: |
53 | | - - X-Debug-Trace-ID |
54 | | - cache-control: |
55 | | - - no-cache, no-store, no-transform, must-revalidate, private, max-age=0 |
56 | | - content-length: |
57 | | - - '1270' |
58 | | - content-type: |
59 | | - - application/json |
60 | | - date: |
61 | | - - Fri, 24 May 2024 09:38:02 GMT |
62 | | - expires: |
63 | | - - Thu, 01 Jan 1970 00:00:00 UTC |
64 | | - num_chars: |
65 | | - - '220' |
66 | | - num_tokens: |
67 | | - - '100' |
68 | | - pragma: |
69 | | - - no-cache |
70 | | - server: |
71 | | - - envoy |
72 | | - vary: |
73 | | - - Origin |
74 | | - x-accel-expires: |
75 | | - - '0' |
76 | | - x-debug-trace-id: |
77 | | - - 68cf0a1a2924c2a2534e350092097d49 |
78 | | - x-endpoint-monthly-call-limit: |
79 | | - - '1000' |
80 | | - x-envoy-upstream-service-time: |
81 | | - - '2573' |
82 | | - x-trial-endpoint-call-limit: |
83 | | - - '10' |
84 | | - x-trial-endpoint-call-remaining: |
85 | | - - '9' |
86 | | - status: |
87 | | - code: 200 |
88 | | - message: OK |
| 2 | + - request: |
| 3 | + body: |
| 4 | + '{"message": "Tell me a story in 3 sentences or less?", "stream": false, |
| 5 | + "model": "command", "preamble": "answer like a pirate", "chat_history": [{"role": |
| 6 | + "USER", "message": "Who discovered gravity?"}, {"role": "CHATBOT", "message": |
| 7 | + "The man who is widely credited with discovering gravity is Sir Isaac Newton"}], |
| 8 | + "connectors": [{"id": "web-search"}], "temperature": 0.1}' |
| 9 | + headers: |
| 10 | + accept: |
| 11 | + - "*/*" |
| 12 | + accept-encoding: |
| 13 | + - gzip, deflate |
| 14 | + connection: |
| 15 | + - keep-alive |
| 16 | + content-length: |
| 17 | + - "370" |
| 18 | + content-type: |
| 19 | + - application/json |
| 20 | + host: |
| 21 | + - api.cohere.com |
| 22 | + user-agent: |
| 23 | + - python-httpx/0.27.2 |
| 24 | + x-fern-language: |
| 25 | + - Python |
| 26 | + x-fern-sdk-name: |
| 27 | + - cohere |
| 28 | + x-fern-sdk-version: |
| 29 | + - 5.5.3 |
| 30 | + method: POST |
| 31 | + uri: https://api.cohere.com/v1/chat |
| 32 | + response: |
| 33 | + body: |
| 34 | + string: |
| 35 | + '{"response_id":"6b2a2c29-2cd4-4e79-a05a-db8a6019b757","text":"Argh, |
| 36 | + many years ago, a bold explorer named Isaac Newton sat beneath an apple tree |
| 37 | + for many hours, contemplating the nature of the universe. Suddenly, an apple |
| 38 | + fell from the sky, striking him on the head. This inspired him to devise a |
| 39 | + theory about the forces that govern objects on Earth and altered our understanding |
| 40 | + of the universe forevermore.","generation_id":"f3b5a0d7-409b-45a7-9324-5b89c944457e","chat_history":[{"role":"USER","message":"Who |
| 41 | + discovered gravity?"},{"role":"CHATBOT","message":"The man who is widely credited |
| 42 | + with discovering gravity is Sir Isaac Newton"},{"role":"USER","message":"Tell |
| 43 | + me a story in 3 sentences or less?"},{"role":"CHATBOT","message":"Argh, many |
| 44 | + years ago, a bold explorer named Isaac Newton sat beneath an apple tree for |
| 45 | + many hours, contemplating the nature of the universe. Suddenly, an apple fell |
| 46 | + from the sky, striking him on the head. This inspired him to devise a theory |
| 47 | + about the forces that govern objects on Earth and altered our understanding |
| 48 | + of the universe forevermore."}],"finish_reason":"COMPLETE","meta":{"api_version":{"version":"1"},"billed_units":{"input_tokens":31,"output_tokens":69},"tokens":{"input_tokens":49,"output_tokens":69}},"documents":[]}' |
| 49 | + headers: |
| 50 | + Alt-Svc: |
| 51 | + - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 |
| 52 | + Via: |
| 53 | + - 1.1 google |
| 54 | + access-control-expose-headers: |
| 55 | + - X-Debug-Trace-ID |
| 56 | + cache-control: |
| 57 | + - no-cache, no-store, no-transform, must-revalidate, private, max-age=0 |
| 58 | + content-length: |
| 59 | + - "1270" |
| 60 | + content-type: |
| 61 | + - application/json |
| 62 | + date: |
| 63 | + - Fri, 24 May 2024 09:38:02 GMT |
| 64 | + expires: |
| 65 | + - Thu, 01 Jan 1970 00:00:00 UTC |
| 66 | + num_chars: |
| 67 | + - "220" |
| 68 | + num_tokens: |
| 69 | + - "100" |
| 70 | + pragma: |
| 71 | + - no-cache |
| 72 | + server: |
| 73 | + - envoy |
| 74 | + vary: |
| 75 | + - Origin |
| 76 | + x-accel-expires: |
| 77 | + - "0" |
| 78 | + x-debug-trace-id: |
| 79 | + - 68cf0a1a2924c2a2534e350092097d49 |
| 80 | + x-endpoint-monthly-call-limit: |
| 81 | + - "1000" |
| 82 | + x-envoy-upstream-service-time: |
| 83 | + - "2573" |
| 84 | + x-trial-endpoint-call-limit: |
| 85 | + - "10" |
| 86 | + x-trial-endpoint-call-remaining: |
| 87 | + - "9" |
| 88 | + status: |
| 89 | + code: 200 |
| 90 | + message: OK |
89 | 91 | version: 1 |
0 commit comments