Commit de024cf
authored
[feat] Add full collector capability to Go (#2119)
- Updated `HTTPRequest` and `HTTPResponse` structs to derive `Clone` for
better usability.
- Introduced new methods in `LLMCallKind` for handling requests and
streams.
- Enhanced the `Collector` API in Go to support named collectors and
additional functionality.
- Added comprehensive tests for the collector API, including usage
tracking and log management.
This commit improves the overall functionality and usability of the
collector, making it easier to manage and track requests and responses.
```
2025-07-10T02:25:47.156 [BAML INFO] BAML (v0.201.0) loaded
=== RUN TestFooStream
=== PAUSE TestFooStream
=== CONT TestFooStream
2025-07-10T02:25:48.564 [BAML INFO] Function Foo:
Client: openai/gpt-4o-mini (gpt-4o-mini-2024-07-18) - 1394ms. StopReason: stop. Tokens(in/out): 76/49
---PROMPT---
system: Fill out this data model with some examples.
Answer in JSON using any of these schemas:
{
item: {
a: int,
b: string,
},
element: string,
element2: string,
} or {
a: int,
b: string,
}
use 8192 somewhere in the data model
---LLM REPLY---
```json
{
"item": {
"a": 8192,
"b": "Example string for item"
},
"element": "Sample element",
"element2": "Another example element"
}
```
---Parsed Response (class Example2)---
{
"item": {
"a": 8192,
"b": "Example string for item"
},
"element": "Sample element",
"element2": "Another example element"
}
main_test.go:86: Received 52 stream chunks before final result
cffi name: "test-foo-stream-collector" "test-foo-stream-collector"
name test-foo-stream-collector
main_test.go:89: Collector name: test-foo-stream-collector
main_test.go:89: Input tokens: 76
main_test.go:89: Output tokens: 49
main_test.go:89: Found 1 log entries
main_test.go:89: Log ID: bfcall_01jzstfggxfyz9txzwcf83t0dj
main_test.go:89: Function name: Foo
main_test.go:89: Log type: stream
main_test.go:89: Start time (UTC ms): 1752139547165
main_test.go:89: Duration (ms): 1399
main_test.go:89: Log input tokens: 76
main_test.go:89: Log output tokens: 49
main_test.go:89: Raw LLM response length: 153 characters
main_test.go:89: Metadata keys: [baml.language]
main_test.go:89: Calls count: 1
main_test.go:89: Call 0: Client name: openai/gpt-4o-mini
main_test.go:89: Call 0: Provider: openai
main_test.go:89: Call 0: Selected: true
main_test.go:89: Call 0: Start time: 1752139547166
main_test.go:89: Call 0: Duration: 1398 ms
main_test.go:89: Call 0: Input tokens: 76
main_test.go:89: Call 0: Output tokens: 49
main_test.go:89: Call 0: Request ID: breq_01jzstfggyf35st9d6ppz9s4rr
main_test.go:89: Call 0: URL: https://api.openai.com/v1/chat/completions
main_test.go:89: Call 0: Method: POST
main_test.go:89: Call 0: Headers count: 3
main_test.go:89: Call 0: Content-Type: application/json
main_test.go:89: Call 0: Has Authorization header
main_test.go:89: Call 0 request: Body size: 402 bytes
main_test.go:89: Call 0 request: Body text length: 402 characters
main_test.go:89: Call 0 request: Body text preview: {"model":"gpt-4o-mini","messages":[{"role":"system","content":[{"type":"text","text":"Fill out this data model with some examples.\n\nAnswer in JSON using any of these schemas:\n{\n item: {\n a: i
main_test.go:89: Call 0 request: Body contains valid JSON data
main_test.go:89: Call 0: Found 53 SSE responses
main_test.go:89: Call 0 SSE[0]: Text length: 327 characters
main_test.go:89: Call 0 SSE[0]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[0]: SSE contains: map[choices:[map[delta:map[content: refusal:<nil> role:assistant] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[1]: Text length: 296 characters
main_test.go:89: Call 0 SSE[1]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[1]: SSE contains: map[choices:[map[delta:map[content:```] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[2]: Text length: 297 characters
main_test.go:89: Call 0 SSE[2]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[2]: SSE contains: map[choices:[map[delta:map[content:json] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[3]: Text length: 295 characters
main_test.go:89: Call 0 SSE[3]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[3]: SSE contains: map[choices:[map[delta:map[content:
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[4]: Text length: 296 characters
main_test.go:89: Call 0 SSE[4]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[4]: SSE contains: map[choices:[map[delta:map[content:{
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[5]: Text length: 294 characters
main_test.go:89: Call 0 SSE[5]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[5]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[6]: Text length: 296 characters
main_test.go:89: Call 0 SSE[6]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[6]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[7]: Text length: 297 characters
main_test.go:89: Call 0 SSE[7]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[7]: SSE contains: map[choices:[map[delta:map[content:item] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[8]: Text length: 296 characters
main_test.go:89: Call 0 SSE[8]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[8]: SSE contains: map[choices:[map[delta:map[content:":] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[9]: Text length: 297 characters
main_test.go:89: Call 0 SSE[9]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[9]: SSE contains: map[choices:[map[delta:map[content: {
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[10]: Text length: 296 characters
main_test.go:89: Call 0 SSE[10]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[10]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[11]: Text length: 296 characters
main_test.go:89: Call 0 SSE[11]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[11]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[12]: Text length: 294 characters
main_test.go:89: Call 0 SSE[12]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[12]: SSE contains: map[choices:[map[delta:map[content:a] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[13]: Text length: 296 characters
main_test.go:89: Call 0 SSE[13]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[13]: SSE contains: map[choices:[map[delta:map[content:":] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[14]: Text length: 294 characters
main_test.go:89: Call 0 SSE[14]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[14]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[15]: Text length: 296 characters
main_test.go:89: Call 0 SSE[15]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[15]: SSE contains: map[choices:[map[delta:map[content:819] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[16]: Text length: 294 characters
main_test.go:89: Call 0 SSE[16]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[16]: SSE contains: map[choices:[map[delta:map[content:2] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[17]: Text length: 296 characters
main_test.go:89: Call 0 SSE[17]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[17]: SSE contains: map[choices:[map[delta:map[content:,
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[18]: Text length: 296 characters
main_test.go:89: Call 0 SSE[18]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[18]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[19]: Text length: 296 characters
main_test.go:89: Call 0 SSE[19]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[19]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[20]: Text length: 294 characters
main_test.go:89: Call 0 SSE[20]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[20]: SSE contains: map[choices:[map[delta:map[content:b] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[21]: Text length: 296 characters
main_test.go:89: Call 0 SSE[21]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[21]: SSE contains: map[choices:[map[delta:map[content:":] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[22]: Text length: 296 characters
main_test.go:89: Call 0 SSE[22]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[22]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[23]: Text length: 300 characters
main_test.go:89: Call 0 SSE[23]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[23]: SSE contains: map[choices:[map[delta:map[content:Example] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[24]: Text length: 300 characters
main_test.go:89: Call 0 SSE[24]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[24]: SSE contains: map[choices:[map[delta:map[content: string] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[25]: Text length: 297 characters
main_test.go:89: Call 0 SSE[25]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[25]: SSE contains: map[choices:[map[delta:map[content: for] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[26]: Text length: 298 characters
main_test.go:89: Call 0 SSE[26]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[26]: SSE contains: map[choices:[map[delta:map[content: item] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[27]: Text length: 297 characters
main_test.go:89: Call 0 SSE[27]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[27]: SSE contains: map[choices:[map[delta:map[content:"
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[28]: Text length: 294 characters
main_test.go:89: Call 0 SSE[28]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[28]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[29]: Text length: 298 characters
main_test.go:89: Call 0 SSE[29]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[29]: SSE contains: map[choices:[map[delta:map[content: },
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[30]: Text length: 294 characters
main_test.go:89: Call 0 SSE[30]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[30]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[31]: Text length: 296 characters
main_test.go:89: Call 0 SSE[31]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[31]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[32]: Text length: 300 characters
main_test.go:89: Call 0 SSE[32]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[32]: SSE contains: map[choices:[map[delta:map[content:element] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[33]: Text length: 296 characters
main_test.go:89: Call 0 SSE[33]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[33]: SSE contains: map[choices:[map[delta:map[content:":] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[34]: Text length: 296 characters
main_test.go:89: Call 0 SSE[34]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[34]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[35]: Text length: 299 characters
main_test.go:89: Call 0 SSE[35]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[35]: SSE contains: map[choices:[map[delta:map[content:Sample] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[36]: Text length: 301 characters
main_test.go:89: Call 0 SSE[36]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[36]: SSE contains: map[choices:[map[delta:map[content: element] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[37]: Text length: 298 characters
main_test.go:89: Call 0 SSE[37]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[37]: SSE contains: map[choices:[map[delta:map[content:",
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[38]: Text length: 294 characters
main_test.go:89: Call 0 SSE[38]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[38]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[39]: Text length: 296 characters
main_test.go:89: Call 0 SSE[39]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[39]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[40]: Text length: 300 characters
main_test.go:89: Call 0 SSE[40]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[40]: SSE contains: map[choices:[map[delta:map[content:element] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[41]: Text length: 294 characters
main_test.go:89: Call 0 SSE[41]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[41]: SSE contains: map[choices:[map[delta:map[content:2] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[42]: Text length: 296 characters
main_test.go:89: Call 0 SSE[42]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[42]: SSE contains: map[choices:[map[delta:map[content:":] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[43]: Text length: 296 characters
main_test.go:89: Call 0 SSE[43]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[43]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[44]: Text length: 300 characters
main_test.go:89: Call 0 SSE[44]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[44]: SSE contains: map[choices:[map[delta:map[content:Another] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[45]: Text length: 301 characters
main_test.go:89: Call 0 SSE[45]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[45]: SSE contains: map[choices:[map[delta:map[content: example] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[46]: Text length: 301 characters
main_test.go:89: Call 0 SSE[46]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[46]: SSE contains: map[choices:[map[delta:map[content: element] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[47]: Text length: 297 characters
main_test.go:89: Call 0 SSE[47]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[47]: SSE contains: map[choices:[map[delta:map[content:"
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[48]: Text length: 296 characters
main_test.go:89: Call 0 SSE[48]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[48]: SSE contains: map[choices:[map[delta:map[content:}
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[49]: Text length: 296 characters
main_test.go:89: Call 0 SSE[49]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[49]: SSE contains: map[choices:[map[delta:map[content:```] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[50]: Text length: 283 characters
main_test.go:89: Call 0 SSE[50]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[50]: SSE contains: map[choices:[map[delta:map[] finish_reason:stop index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Call 0 SSE[51]: Text length: 471 characters
main_test.go:89: Call 0 SSE[51]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[51]: SSE contains: map[choices:[] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:map[completion_tokens:49 completion_tokens_details:map[accepted_prediction_tokens:0 audio_tokens:0 reasoning_tokens:0 rejected_prediction_tokens:0] prompt_tokens:76 prompt_tokens_details:map[audio_tokens:0 cached_tokens:0] total_tokens:125]]
main_test.go:89: Call 0 SSE[52]: Text length: 6 characters
main_test.go:89: Call 0 SSE[52]: Text content: [DONE]
main_test.go:89: Call 0 SSE[52]: SSE JSON data is null
main_test.go:89: Found selected call
main_test.go:89: Selected call: Client name: openai/gpt-4o-mini
main_test.go:89: Selected call: Provider: openai
main_test.go:89: Selected call: Selected: true
main_test.go:89: Selected call: Start time: 1752139547166
main_test.go:89: Selected call: Duration: 1398 ms
main_test.go:89: Selected call: Input tokens: 76
main_test.go:89: Selected call: Output tokens: 49
main_test.go:89: Selected call: Request ID: breq_01jzstfggyf35st9d6ppz9s4rr
main_test.go:89: Selected call: URL: https://api.openai.com/v1/chat/completions
main_test.go:89: Selected call: Method: POST
main_test.go:89: Selected call: Headers count: 3
main_test.go:89: Selected call: Content-Type: application/json
main_test.go:89: Selected call: Has Authorization header
main_test.go:89: Selected call request: Body size: 402 bytes
main_test.go:89: Selected call request: Body text length: 402 characters
main_test.go:89: Selected call request: Body text preview: {"model":"gpt-4o-mini","messages":[{"role":"system","content":[{"type":"text","text":"Fill out this data model with some examples.\n\nAnswer in JSON using any of these schemas:\n{\n item: {\n a: i
main_test.go:89: Selected call request: Body contains valid JSON data
main_test.go:89: Selected call: Found 53 SSE responses
main_test.go:89: Selected call SSE[0]: Text length: 327 characters
main_test.go:89: Selected call SSE[0]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[0]: SSE contains: map[choices:[map[delta:map[content: refusal:<nil> role:assistant] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[1]: Text length: 296 characters
main_test.go:89: Selected call SSE[1]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[1]: SSE contains: map[choices:[map[delta:map[content:```] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[2]: Text length: 297 characters
main_test.go:89: Selected call SSE[2]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[2]: SSE contains: map[choices:[map[delta:map[content:json] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[3]: Text length: 295 characters
main_test.go:89: Selected call SSE[3]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[3]: SSE contains: map[choices:[map[delta:map[content:
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[4]: Text length: 296 characters
main_test.go:89: Selected call SSE[4]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[4]: SSE contains: map[choices:[map[delta:map[content:{
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[5]: Text length: 294 characters
main_test.go:89: Selected call SSE[5]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[5]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[6]: Text length: 296 characters
main_test.go:89: Selected call SSE[6]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[6]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[7]: Text length: 297 characters
main_test.go:89: Selected call SSE[7]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[7]: SSE contains: map[choices:[map[delta:map[content:item] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[8]: Text length: 296 characters
main_test.go:89: Selected call SSE[8]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[8]: SSE contains: map[choices:[map[delta:map[content:":] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[9]: Text length: 297 characters
main_test.go:89: Selected call SSE[9]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[9]: SSE contains: map[choices:[map[delta:map[content: {
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[10]: Text length: 296 characters
main_test.go:89: Selected call SSE[10]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[10]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[11]: Text length: 296 characters
main_test.go:89: Selected call SSE[11]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[11]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[12]: Text length: 294 characters
main_test.go:89: Selected call SSE[12]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[12]: SSE contains: map[choices:[map[delta:map[content:a] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[13]: Text length: 296 characters
main_test.go:89: Selected call SSE[13]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[13]: SSE contains: map[choices:[map[delta:map[content:":] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[14]: Text length: 294 characters
main_test.go:89: Selected call SSE[14]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[14]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[15]: Text length: 296 characters
main_test.go:89: Selected call SSE[15]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[15]: SSE contains: map[choices:[map[delta:map[content:819] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[16]: Text length: 294 characters
main_test.go:89: Selected call SSE[16]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[16]: SSE contains: map[choices:[map[delta:map[content:2] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[17]: Text length: 296 characters
main_test.go:89: Selected call SSE[17]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[17]: SSE contains: map[choices:[map[delta:map[content:,
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[18]: Text length: 296 characters
main_test.go:89: Selected call SSE[18]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[18]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[19]: Text length: 296 characters
main_test.go:89: Selected call SSE[19]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[19]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[20]: Text length: 294 characters
main_test.go:89: Selected call SSE[20]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[20]: SSE contains: map[choices:[map[delta:map[content:b] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[21]: Text length: 296 characters
main_test.go:89: Selected call SSE[21]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[21]: SSE contains: map[choices:[map[delta:map[content:":] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[22]: Text length: 296 characters
main_test.go:89: Selected call SSE[22]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[22]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[23]: Text length: 300 characters
main_test.go:89: Selected call SSE[23]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[23]: SSE contains: map[choices:[map[delta:map[content:Example] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[24]: Text length: 300 characters
main_test.go:89: Selected call SSE[24]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[24]: SSE contains: map[choices:[map[delta:map[content: string] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[25]: Text length: 297 characters
main_test.go:89: Selected call SSE[25]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[25]: SSE contains: map[choices:[map[delta:map[content: for] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[26]: Text length: 298 characters
main_test.go:89: Selected call SSE[26]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[26]: SSE contains: map[choices:[map[delta:map[content: item] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[27]: Text length: 297 characters
main_test.go:89: Selected call SSE[27]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[27]: SSE contains: map[choices:[map[delta:map[content:"
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[28]: Text length: 294 characters
main_test.go:89: Selected call SSE[28]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[28]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[29]: Text length: 298 characters
main_test.go:89: Selected call SSE[29]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[29]: SSE contains: map[choices:[map[delta:map[content: },
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[30]: Text length: 294 characters
main_test.go:89: Selected call SSE[30]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[30]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[31]: Text length: 296 characters
main_test.go:89: Selected call SSE[31]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[31]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[32]: Text length: 300 characters
main_test.go:89: Selected call SSE[32]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[32]: SSE contains: map[choices:[map[delta:map[content:element] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[33]: Text length: 296 characters
main_test.go:89: Selected call SSE[33]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[33]: SSE contains: map[choices:[map[delta:map[content:":] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[34]: Text length: 296 characters
main_test.go:89: Selected call SSE[34]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[34]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[35]: Text length: 299 characters
main_test.go:89: Selected call SSE[35]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[35]: SSE contains: map[choices:[map[delta:map[content:Sample] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[36]: Text length: 301 characters
main_test.go:89: Selected call SSE[36]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[36]: SSE contains: map[choices:[map[delta:map[content: element] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[37]: Text length: 298 characters
main_test.go:89: Selected call SSE[37]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[37]: SSE contains: map[choices:[map[delta:map[content:",
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[38]: Text length: 294 characters
main_test.go:89: Selected call SSE[38]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[38]: SSE contains: map[choices:[map[delta:map[content: ] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[39]: Text length: 296 characters
main_test.go:89: Selected call SSE[39]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[39]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[40]: Text length: 300 characters
main_test.go:89: Selected call SSE[40]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[40]: SSE contains: map[choices:[map[delta:map[content:element] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[41]: Text length: 294 characters
main_test.go:89: Selected call SSE[41]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[41]: SSE contains: map[choices:[map[delta:map[content:2] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[42]: Text length: 296 characters
main_test.go:89: Selected call SSE[42]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[42]: SSE contains: map[choices:[map[delta:map[content:":] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[43]: Text length: 296 characters
main_test.go:89: Selected call SSE[43]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[43]: SSE contains: map[choices:[map[delta:map[content: "] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[44]: Text length: 300 characters
main_test.go:89: Selected call SSE[44]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[44]: SSE contains: map[choices:[map[delta:map[content:Another] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[45]: Text length: 301 characters
main_test.go:89: Selected call SSE[45]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[45]: SSE contains: map[choices:[map[delta:map[content: example] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[46]: Text length: 301 characters
main_test.go:89: Selected call SSE[46]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[46]: SSE contains: map[choices:[map[delta:map[content: element] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[47]: Text length: 297 characters
main_test.go:89: Selected call SSE[47]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[47]: SSE contains: map[choices:[map[delta:map[content:"
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[48]: Text length: 296 characters
main_test.go:89: Selected call SSE[48]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[48]: SSE contains: map[choices:[map[delta:map[content:}
] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[49]: Text length: 296 characters
main_test.go:89: Selected call SSE[49]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[49]: SSE contains: map[choices:[map[delta:map[content:```] finish_reason:<nil> index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[50]: Text length: 283 characters
main_test.go:89: Selected call SSE[50]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[50]: SSE contains: map[choices:[map[delta:map[] finish_reason:stop index:0 logprobs:<nil>]] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:<nil>]
main_test.go:89: Selected call SSE[51]: Text length: 471 characters
main_test.go:89: Selected call SSE[51]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Selected call SSE[51]: SSE contains: map[choices:[] created:1.752139547e+09 id:chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b model:gpt-4o-mini-2024-07-18 object:chat.completion.chunk service_tier:default system_fingerprint:fp_34a54ae93c usage:map[completion_tokens:49 completion_tokens_details:map[accepted_prediction_tokens:0 audio_tokens:0 reasoning_tokens:0 rejected_prediction_tokens:0] prompt_tokens:76 prompt_tokens_details:map[audio_tokens:0 cached_tokens:0] total_tokens:125]]
main_test.go:89: Selected call SSE[52]: Text length: 6 characters
main_test.go:89: Selected call SSE[52]: Text content: [DONE]
main_test.go:89: Selected call SSE[52]: SSE JSON data is null
main_test.go:89: Testing log entry 0
main_test.go:89: Log ID: bfcall_01jzstfggxfyz9txzwcf83t0dj
main_test.go:89: Function name: Foo
main_test.go:89: Log type: stream
main_test.go:89: Start time (UTC ms): 1752139547165
main_test.go:89: Duration (ms): 1399
main_test.go:89: Log input tokens: 76
main_test.go:89: Log output tokens: 49
main_test.go:89: Raw LLM response length: 153 characters
main_test.go:89: Metadata keys: [baml.language]
main_test.go:89: Calls count: 1
main_test.go:89: Call 0: Client name: openai/gpt-4o-mini
main_test.go:89: Call 0: Provider: openai
main_test.go:89: Call 0: Selected: true
main_test.go:89: Call 0: Start time: 1752139547166
main_test.go:89: Call 0: Duration: 1398 ms
main_test.go:89: Call 0: Input tokens: 76
main_test.go:89: Call 0: Output tokens: 49
main_test.go:89: Call 0: Request ID: breq_01jzstfggyf35st9d6ppz9s4rr
main_test.go:89: Call 0: URL: https://api.openai.com/v1/chat/completions
main_test.go:89: Call 0: Method: POST
main_test.go:89: Call 0: Headers count: 3
main_test.go:89: Call 0: Content-Type: application/json
main_test.go:89: Call 0: Has Authorization header
main_test.go:89: Call 0 request: Body size: 402 bytes
main_test.go:89: Call 0 request: Body text length: 402 characters
main_test.go:89: Call 0 request: Body text preview: {"model":"gpt-4o-mini","messages":[{"role":"system","content":[{"type":"text","text":"Fill out this data model with some examples.\n\nAnswer in JSON using any of these schemas:\n{\n item: {\n a: i
main_test.go:89: Call 0 request: Body contains valid JSON data
main_test.go:89: Call 0: Found 53 SSE responses
main_test.go:89: Call 0 SSE[0]: Text length: 327 characters
main_test.go:89: Call 0 SSE[0]: Text content: {"id":"chatcmpl-BrhpD10Az8gWlYRn1DlNDSFt9yy3b","object":"chat.completion.chunk","created":1752139547
main_test.go:89: Call 0 SSE[0]: SSE contains: map[choices:[map[delta:map[content: refusal:<nil> ro…1 parent 1e007ec commit de024cf
169 files changed
Lines changed: 7023 additions & 3009 deletions
File tree
- .github/workflows
- engine
- baml-lib/baml-types/src
- tracing
- baml-runtime/src/tracingv2/storage
- generators
- data/sample/go
- languages
- go
- generated_tests
- array_types/baml_client
- stream_types
- types
- asserts/baml_client
- stream_types
- types
- classes/baml_client
- stream_types
- types
- edge_cases/baml_client
- stream_types
- types
- enums/baml_client
- types
- literal_types/baml_client
- stream_types
- types
- map_types/baml_client
- stream_types
- types
- mixed_complex_types/baml_client
- stream_types
- types
- nested_structures/baml_client
- stream_types
- types
- optional_nullable/baml_client
- stream_types
- types
- primitive_types/baml_client
- stream_types
- types
- recursive_types/baml_client
- stream_types
- types
- sample/baml_client
- stream_types
- types
- semantic_streaming/baml_client
- stream_types
- types
- union_types_extended/baml_client
- stream_types
- types
- unions/baml_client
- stream_types
- types
- src/_templates
- openapi
- python
- ruby
- typescript
- utils/test_harness
- src
- language_client_cffi
- src
- ctypes
- types
- language_client_go
- baml_go
- raw_objects
- serde
- include
- pkg
- cffi
- language_client_python/src/types
- language_client_ruby/ext/ruby_ffi/src/types
- language_client_typescript/src/types
- llm-response-parser/src
- integ-tests/go/baml_client
- stream_types
- types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
| 442 | + | |
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
| 450 | + | |
451 | 451 | | |
452 | | - | |
| 452 | + | |
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
474 | | - | |
| 473 | + | |
| 474 | + | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
478 | 482 | | |
479 | 483 | | |
480 | 484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
331 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
332 | 342 | | |
333 | 343 | | |
334 | 344 | | |
335 | 345 | | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | 346 | | |
341 | 347 | | |
342 | 348 | | |
| |||
568 | 574 | | |
569 | 575 | | |
570 | 576 | | |
571 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
572 | 592 | | |
573 | 593 | | |
574 | 594 | | |
| |||
586 | 606 | | |
587 | 607 | | |
588 | 608 | | |
589 | | - | |
590 | | - | |
| 609 | + | |
591 | 610 | | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | 611 | | |
597 | 612 | | |
598 | 613 | | |
| |||
640 | 655 | | |
641 | 656 | | |
642 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
643 | 668 | | |
644 | 669 | | |
645 | 670 | | |
| |||
0 commit comments