diff --git a/llama_stack/testing/api_recorder.py b/llama_stack/testing/api_recorder.py index 9f37b63ff..b1244f19f 100644 --- a/llama_stack/testing/api_recorder.py +++ b/llama_stack/testing/api_recorder.py @@ -9,6 +9,7 @@ from __future__ import annotations # for forward references import hashlib import json import os +import re from collections.abc import Generator from contextlib import contextmanager from enum import StrEnum @@ -134,6 +135,194 @@ def _normalize_file_ids(obj: Any) -> Any: return obj +def _get_current_test_id_mappings() -> dict[str, str]: + """Get the current test's ID normalization mappings. + + Returns a dict mapping normalized_id -> original_id (e.g., "file-1" -> "file-abc123...") + This is the inverse of what's stored in _id_normalizers. + """ + global _id_normalizers + + test_id = _test_context.get() + if not test_id or test_id not in _id_normalizers: + return {} + + # Invert the mapping: normalized_id -> original_id + result = {} + for id_type, mappings in _id_normalizers[test_id].items(): + for original_id, normalized_id in mappings.items(): + result[normalized_id] = original_id + + return result + + +def _chunk_text_content(chunk: Any) -> tuple[str | None, bool]: + """Return (content, has_structured_fields) for OpenAI chat completion chunks.""" + choices = getattr(chunk, "choices", None) + if not choices: + return None, False + + delta = choices[0].delta + content = getattr(delta, "content", None) + if not content: + return None, False + + has_structured = bool(getattr(delta, "tool_calls", None) or getattr(delta, "function_call", None)) + return content, has_structured + + +def _chunk_with_content(chunk: Any, content: str) -> Any: + """Return a copy of the chunk with delta.content replaced by the provided string.""" + choices = getattr(chunk, "choices", None) + if not choices: + return chunk + + updated_choices = [] + for choice in choices: + delta = choice.delta + if getattr(delta, "content", None) is not None: + new_delta = delta.model_copy(update={"content": content}) + updated_choices.append(choice.model_copy(update={"delta": new_delta})) + else: + updated_choices.append(choice) + + return chunk.model_copy(update={"choices": updated_choices}) + + +def _ends_with_partial_identifier(text: str) -> bool: + """Return True if text ends in an incomplete file identifier.""" + match = re.search(r"(?:<\|)?file-[A-Za-z0-9_-]*$", text) + if not match: + return False + + token = match.group() + enclosed = token.startswith("<|") + if enclosed and not token.endswith("|>"): + return True + + if enclosed: + core = token[2:-2] if token.endswith("|>") else token[2:] + else: + core = token + + suffix = core[len("file-"):] + if len(suffix) < 16: + return True + if not re.fullmatch(r"[A-Za-z0-9_-]+", suffix): + return True + + return False + + +def _has_safe_boundary(text: str) -> bool: + if not text: + return False + + last_char = text[-1] + if last_char.isspace(): + return True + + return last_char in ".,?!;:)]}>\"'" + + +def _coalesce_streaming_chunks(chunks: list[Any]) -> list[Any]: + """Merge adjacent text chunks to avoid breaking identifiers across boundaries.""" + result: list[Any] = [] + pending_chunk: Any | None = None + pending_content = "" + + for chunk in chunks: + content, has_structured = _chunk_text_content(chunk) + + if content is None or has_structured: + if pending_chunk is not None: + result.append(_chunk_with_content(pending_chunk, pending_content)) + pending_chunk = None + pending_content = "" + + result.append(chunk) + continue + + if pending_chunk is None: + pending_chunk = chunk + pending_content = content + else: + pending_content += content + + if (not _ends_with_partial_identifier(pending_content)) and _has_safe_boundary(pending_content): + result.append(_chunk_with_content(pending_chunk, pending_content)) + pending_chunk = None + pending_content = "" + + if pending_chunk is not None: + result.append(_chunk_with_content(pending_chunk, pending_content)) + + return result + + +def _denormalize_response(obj: Any, recorded_mapping: dict[str, str], current_mapping: dict[str, str]) -> Any: + """Replace recorded IDs with current runtime IDs in a response object. + + Args: + obj: The response object to denormalize + recorded_mapping: normalized_id -> recorded_original_id (from recording file) + current_mapping: normalized_id -> current_original_id (from current runtime) + + Returns: + The response with all recorded IDs replaced with current IDs + """ + import re + + # Build reverse mapping: recorded_original_id -> current_original_id + # via the normalized intermediary + id_translation = {} + for normalized_id, recorded_id in recorded_mapping.items(): + if normalized_id in current_mapping: + current_id = current_mapping[normalized_id] + id_translation[recorded_id] = current_id + + if isinstance(obj, dict): + result = {} + for k, v in obj.items(): + # Translate document_id fields + if k == "document_id" and isinstance(v, str): + result[k] = id_translation.get(v, v) + # Translate vector database/store IDs + elif k in ("vector_db_id", "vector_store_id", "bank_id") and isinstance(v, str): + # Replace any recorded IDs in the value + translated = v + for recorded_id, current_id in id_translation.items(): + translated = translated.replace(recorded_id, current_id) + result[k] = translated + else: + result[k] = _denormalize_response(v, recorded_mapping, current_mapping) + return result + elif isinstance(obj, list): + return [_denormalize_response(item, recorded_mapping, current_mapping) for item in obj] + elif hasattr(obj, "model_dump"): + # Handle Pydantic/BaseModel instances by denormalizing their dict form + data = obj.model_dump(mode="python") + denormalized = _denormalize_response(data, recorded_mapping, current_mapping) + + cls = obj.__class__ + try: + return cls.model_validate(denormalized) + except Exception: + try: + return cls.model_construct(**denormalized) + except Exception: + return denormalized + elif isinstance(obj, str): + # Replace file- patterns in strings (like in text content and citations) + translated = obj + for recorded_id, current_id in id_translation.items(): + # Handle both bare file IDs and citation format <|file-...|> + translated = translated.replace(recorded_id, current_id) + return translated + else: + return obj + + def normalize_inference_request(method: str, url: str, headers: dict[str, Any], body: dict[str, Any]) -> str: """Create a normalized hash of the request for consistent matching. @@ -438,6 +627,7 @@ class ResponseStorage: "test_id": _test_context.get(), "request": request, "response": serialized_response, + "id_normalization_mapping": _get_current_test_id_mappings(), }, f, indent=2, @@ -569,7 +759,7 @@ async def _patched_tool_invoke_method( original_method, provider_name: str, self, tool_name: str, kwargs: dict[str, Any] ): """Patched version of tool runtime invoke_tool method for recording/replay.""" - global _current_mode, _current_storage + global _current_mode, _current_storage, _id_normalizers if _current_mode == APIRecordingMode.LIVE or _current_storage is None: # Normal operation @@ -618,7 +808,7 @@ async def _patched_tool_invoke_method( async def _patched_inference_method(original_method, self, client_type, endpoint, *args, **kwargs): - global _current_mode, _current_storage + global _current_mode, _current_storage, _id_normalizers mode = _current_mode storage = _current_storage @@ -671,6 +861,48 @@ async def _patched_inference_method(original_method, self, client_type, endpoint if recording: response_body = recording["response"]["body"] + if recording["response"].get("is_streaming", False) and isinstance(response_body, list): + response_body = _coalesce_streaming_chunks(response_body) + + recording["response"]["body"] = response_body + + # Denormalize the response: replace recorded IDs with current runtime IDs + recorded_mapping = recording.get("id_normalization_mapping", {}) + current_mapping = _get_current_test_id_mappings() + + if recorded_mapping or current_mapping: + import sys + print(f"\n=== DENORM DEBUG ===", file=sys.stderr) + print(f"Recorded mapping: {recorded_mapping}", file=sys.stderr) + print(f"Current mapping: {current_mapping}", file=sys.stderr) + print(f"_id_normalizers before: {_id_normalizers.get(_test_context.get(), {})}", file=sys.stderr) + + response_body = _denormalize_response(response_body, recorded_mapping, current_mapping) + + # Update _id_normalizers to register the current IDs with their normalized values + # This ensures that if these IDs appear in future requests, they get the same + # normalized value as they had in the recording + test_id = _test_context.get() + if test_id and recorded_mapping: + for normalized_id, recorded_id in recorded_mapping.items(): + if normalized_id in current_mapping: + current_id = current_mapping[normalized_id] + # Extract ID type from normalized_id (e.g., "file-1" -> "file") + id_type = normalized_id.rsplit("-", 1)[0] + + # Ensure structures exist + if test_id not in _id_normalizers: + _id_normalizers[test_id] = {} + if id_type not in _id_normalizers[test_id]: + _id_normalizers[test_id][id_type] = {} + + # Register: current_id -> normalized_id + _id_normalizers[test_id][id_type][current_id] = normalized_id + print(f"Registered {current_id} -> {normalized_id}", file=sys.stderr) + + print(f"_id_normalizers after: {_id_normalizers.get(_test_context.get(), {})}", file=sys.stderr) + print(f"=== END DENORM DEBUG ===\n", file=sys.stderr) + if recording["response"].get("is_streaming", False): async def replay_stream(): @@ -714,9 +946,11 @@ async def _patched_inference_method(original_method, self, client_type, endpoint if is_streaming: # For streaming responses, we need to collect all chunks immediately before yielding # This ensures the recording is saved even if the generator isn't fully consumed - chunks = [] + raw_chunks: list[Any] = [] async for chunk in response: - chunks.append(chunk) + raw_chunks.append(chunk) + + chunks = _coalesce_streaming_chunks(raw_chunks) # Store the recording immediately response_data = {"body": chunks, "is_streaming": True} diff --git a/tests/integration/responses/recordings/0413e144be29fe1ffbd0e6511b9ec1e76840d7147993a26057f07246640a7cea.json b/tests/integration/responses/recordings/0413e144be29fe1ffbd0e6511b9ec1e76840d7147993a26057f07246640a7cea.json new file mode 100644 index 000000000..b9af12b96 --- /dev/null +++ b/tests/integration/responses/recordings/0413e144be29fe1ffbd0e6511b9ec1e76840d7147993a26057f07246640a7cea.json @@ -0,0 +1,1578 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[openai_client-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/embeddings", + "headers": {}, + "body": { + "model": "text-embedding-3-small", + "input": [ + "Llama 4 Maverick model architecture details" + ], + "encoding_format": "float" + }, + "endpoint": "/v1/embeddings", + "model": "text-embedding-3-small" + }, + "response": { + "body": { + "__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse", + "__data__": { + "data": [ + { + "embedding": [ + 0.028073093, + -0.0048557497, + 0.011718783, + -0.039163698, + -0.01782006, + 0.030441398, + -0.012592457, + -0.002559648, + -0.0072601577, + -0.029430537, + -0.04049226, + -0.026383508, + 0.0018213574, + -0.024015201, + -0.049387846, + -0.019264149, + 0.026426831, + -0.023220953, + -0.01020249, + 0.03096127, + -0.022744404, + 0.015798334, + 0.023769706, + -0.026831176, + 0.00615904, + 0.020376097, + -0.046557434, + -0.054095577, + 0.024101848, + -0.037170853, + 0.0181522, + -0.05086082, + 0.0016119644, + -0.012281978, + -0.06885417, + -0.009819806, + 0.035466827, + -0.0077403174, + -0.039308105, + 0.04066555, + -0.020130603, + -0.014845236, + -0.015379549, + 0.03015258, + 0.047250595, + -0.008281851, + -0.030730216, + 0.034571495, + -0.037373025, + 0.025964722, + 0.00090571464, + 0.0069930013, + 0.021646896, + 0.06810324, + -0.042687275, + -0.035842292, + 0.007899167, + -0.043004975, + 0.06365545, + 0.03904817, + -0.0022076513, + -0.04586427, + 0.018542103, + -0.022975458, + 0.0037185294, + -0.010975077, + -0.07353301, + 0.0010433544, + 0.016173799, + -0.020130603, + -0.05270925, + 0.035149127, + -0.03093239, + -0.013097888, + 0.0025253508, + -0.01605827, + 0.021993477, + 0.0007428033, + 0.021849068, + 0.025502613, + -0.02802977, + 0.021184787, + 0.0029441367, + -0.036882035, + 0.004909903, + 0.0067872186, + 0.0034297116, + -0.001960351, + -0.049012385, + -0.06250018, + -0.027336607, + 0.01280185, + 0.012101467, + 0.0056319474, + 0.06111385, + 0.018022232, + -0.020043956, + -0.026239099, + -0.0037690725, + 0.043669254, + 0.0067763883, + -0.001879121, + 0.007660893, + -0.0056463885, + 0.01604383, + -0.056666058, + 0.03936587, + -0.029228363, + -0.051727273, + 0.03549571, + -0.05995858, + -0.05415334, + -0.0029531622, + 0.014332584, + -0.05577072, + -0.00037072474, + -0.009256612, + -0.0285352, + -0.0375752, + -0.03483143, + -0.023163188, + 0.004960446, + 0.01182709, + -0.038672708, + 0.037199736, + 0.00095851417, + 0.029387213, + -0.050976343, + -0.007364854, + 0.010188049, + -0.0055344715, + 0.0019711817, + 0.0428028, + -0.01699693, + 0.007863065, + -0.043871425, + -0.016173799, + 0.010895653, + -0.005321468, + 0.0034315167, + 0.014209837, + -0.039827976, + 0.044622354, + -0.058110144, + 0.021459164, + 0.061344907, + 0.012599678, + -0.015697248, + -0.037661843, + 0.012780189, + -0.036477692, + 0.012505812, + -0.015523958, + -0.009877569, + 0.0072276657, + 0.007278209, + 0.025906958, + -0.03335846, + 0.014989645, + 0.0009183504, + 0.0065669953, + -0.021545809, + 0.022397822, + -0.02125699, + -0.03838389, + 0.01896089, + -0.029127277, + 0.027452134, + -0.09860241, + -0.023220953, + 0.025661463, + 0.009675397, + 0.0078919465, + -0.058543373, + 0.0073937364, + -0.034600373, + 0.042225167, + -0.045719862, + -0.025156032, + -0.046615195, + -0.0068449825, + 0.0115743745, + 0.006433417, + -0.047452766, + -0.042571746, + 0.019379675, + -0.014758591, + 0.0440736, + -0.016823638, + 0.03665098, + -0.03644881, + 0.050312065, + 0.024087407, + 0.019639611, + 0.041069895, + -0.014433671, + -0.016866961, + -0.042282928, + 0.051438455, + -0.022296736, + -0.003841277, + 0.026542358, + 0.060882796, + -0.05920765, + 0.011711563, + 0.020939292, + -0.022470027, + 0.006440637, + -0.005595845, + -0.021025937, + 0.038008425, + -0.0070724264, + 0.05230491, + 0.032203186, + -0.0372575, + 0.0055669635, + -0.013350604, + 0.00083215634, + -0.031567786, + 0.015480635, + -0.0187876, + -0.0024116288, + -0.026686767, + 0.030874625, + -0.033127405, + 0.037199736, + 0.019913988, + -0.05525085, + 0.028982868, + 0.020332774, + -0.0058124587, + 0.0012753112, + 0.0093938, + -0.016765874, + -0.009545429, + -0.03468702, + -0.012736866, + -0.024130728, + 0.022397822, + -0.011567154, + -0.043380436, + -0.03237648, + 0.0007188856, + -0.013198975, + 0.026860056, + 0.02446287, + -0.011198911, + -0.06735232, + 0.03483143, + 0.04150312, + 0.023639739, + -0.002400798, + -0.023711942, + -0.0011173639, + -0.0071518514, + 0.024693923, + -0.06735232, + 0.029806, + 0.0076103495, + -0.024535073, + -0.0002475259, + 0.0030831303, + -0.028477438, + 0.042600628, + -0.024520634, + 0.037344143, + -0.019076416, + 0.018296609, + -0.003335846, + -0.027235521, + -0.004848529, + -0.022729963, + -0.03370504, + 0.0004539855, + -0.014780252, + -0.04652855, + 0.00032085855, + -0.03174108, + 0.039336987, + 0.03823948, + 0.0022979067, + -0.03483143, + 0.03953916, + 0.0683343, + -0.014318143, + 0.008281851, + 0.0689697, + 0.026730089, + -0.0032889128, + -0.017098015, + 0.0496189, + -0.0025740888, + -0.022989899, + -0.009827026, + -0.010021978, + 0.013899358, + -0.0027672357, + -0.023466447, + 0.022787726, + 0.042976093, + 0.015957184, + 0.012094246, + -0.008693417, + -0.047914878, + -0.0038845998, + 0.06313557, + 0.0058774427, + -0.007660893, + 0.0067872186, + -0.030903507, + -0.026022486, + -0.02056383, + -0.026282422, + -0.036708746, + -0.014130412, + -0.02319207, + -0.006628369, + -0.0034116604, + 0.018989772, + -0.03633328, + 0.013097888, + -0.025286, + 0.012108687, + 0.007144631, + -0.023134308, + -0.03826836, + -0.024722805, + -0.024347343, + 0.016939165, + -0.052564844, + 0.005736644, + -0.04525775, + -0.0067041838, + -0.035842292, + 0.012686322, + -0.02187795, + -0.033618394, + 0.007386516, + -0.010924534, + 0.0074803815, + -0.03338734, + -0.03078798, + 0.0043792003, + 0.029531622, + 0.008469583, + 0.0031715806, + -0.018686512, + -0.032607533, + 0.011740444, + -0.0013556386, + -0.012664662, + -0.051929444, + 0.06775666, + 0.009827026, + 0.0026733698, + 0.022787726, + 0.023625297, + -0.019610729, + -0.02657124, + 0.006707794, + 0.0022238973, + 0.046297498, + 0.046644077, + 0.036882035, + 0.013422809, + 0.031654432, + 0.035755645, + -0.01199316, + -0.035149127, + -0.0071085286, + 0.037661843, + 0.018209964, + -0.041560885, + -0.007473161, + -0.013141211, + 0.024405105, + 0.007632011, + -0.016505938, + 0.023942998, + -0.007682554, + 0.044911172, + -0.031481143, + 0.041272067, + -0.019913988, + 0.010960637, + 0.020650474, + 0.014736929, + -0.038123954, + -0.009552649, + -0.009624854, + -0.00600019, + -0.015841657, + 0.0037726827, + -0.01718466, + 0.011545492, + -0.013704405, + 0.060189635, + 0.00093595026, + 0.03205878, + 0.034253795, + 0.019090857, + -0.04589315, + -0.019524084, + 0.011213352, + -0.038932644, + -0.020953733, + 0.028000887, + -0.026513476, + 0.00069090637, + -0.019408558, + 0.06371321, + -0.10264585, + 0.00502182, + -0.01683808, + -0.0067691677, + -0.045344397, + 0.009379359, + -0.030759098, + 0.045286633, + 0.07722989, + -0.014975204, + -0.0023827471, + -0.026109131, + -0.0016498718, + -0.0051806695, + 0.0151629355, + 0.035437945, + 0.012693543, + 0.008642874, + -0.061980303, + 0.0008632945, + -0.023090985, + 0.014520315, + 0.019350793, + -0.028506318, + 0.014830795, + -0.070298254, + 0.012549134, + -0.021906832, + -0.004177028, + 0.025083827, + -0.011437186, + 0.025242677, + 0.036708746, + -0.046037562, + 0.020708237, + -0.030354753, + 0.014224278, + 0.012289198, + -0.034773666, + -0.032982994, + -0.0013294645, + 0.0031011812, + 0.07399513, + 0.00037546316, + -0.020953733, + 0.05239155, + -0.018989772, + 0.05932318, + -0.00053070276, + 0.041387595, + -0.022614436, + 0.0022094564, + -0.0009147402, + -0.012744086, + -0.03985686, + 0.03743079, + 0.005252874, + 0.011271115, + -0.015841657, + -0.031163443, + -0.018339932, + 0.039105933, + -0.032174304, + -0.0070543755, + 0.011928176, + -0.019827344, + -0.016289325, + 0.03257865, + -0.057648037, + -0.045979798, + 0.02381303, + 0.006220414, + 0.011480508, + 0.011646579, + 0.099930964, + -0.023841912, + 0.041763056, + -0.022599995, + 0.056435004, + -0.04112766, + 0.03226095, + -0.007949711, + -0.018282168, + 0.036997564, + -0.023293158, + -0.015047409, + -0.053922288, + 0.005790797, + -0.014570859, + -0.010505748, + -0.0027654306, + -0.009632074, + 0.001222963, + 0.002949552, + 0.01621712, + -0.010007538, + 0.027957564, + -0.0066355895, + 0.0029766287, + -0.029834881, + 0.0061048865, + -0.00021266469, + 0.034138266, + -0.005718593, + -0.012866834, + 0.009509327, + 0.053922288, + 0.024867214, + -0.010982297, + 0.012072585, + -0.01150217, + -0.011971499, + -0.0063106692, + 0.036882035, + 0.015697248, + -0.029083954, + -0.017762296, + -0.02609469, + 0.035120245, + -0.01506185, + -0.04875245, + -0.017386833, + -0.058225673, + -0.010960637, + -0.008455141, + 0.036593217, + -0.0178345, + -0.026860056, + 0.019422999, + 0.015957184, + 0.0027690409, + 0.012245876, + -0.017401274, + -0.0010162777, + -0.026210217, + -0.022051241, + 0.019365234, + 0.037401907, + 0.033618394, + 0.03731526, + -0.025820313, + 0.011040061, + -0.007552586, + 0.010123065, + -0.00071798306, + -0.032636415, + -0.012570796, + 0.010361339, + 0.005317858, + 0.0129101565, + 0.027394371, + 0.019885106, + 0.0020253349, + -0.015668366, + 0.0047654943, + -0.0049171234, + 0.004891852, + 0.03399386, + -0.022628875, + 0.00316075, + -0.01587054, + 0.019827344, + 0.0131195495, + 0.011718783, + -0.0073792953, + 0.048665803, + 0.014433671, + 0.054990914, + -0.0080363555, + -0.028881783, + -0.022961017, + 0.0055525224, + 0.0027455743, + -0.020621592, + 0.009978656, + 0.011379422, + -0.009899231, + -0.0045813727, + 0.0024062134, + 0.0022076513, + -0.054471042, + -0.003032587, + -0.0050073788, + 0.0042817243, + -0.030730216, + 0.00012511679, + -0.021300314, + -0.016866961, + -0.0146647245, + 0.020722678, + 0.009827026, + -0.007530925, + 0.012729646, + -0.016621465, + -0.0055561326, + -0.029546063, + 0.018079996, + -0.029055072, + -0.019567408, + -0.021762423, + 0.052564844, + -0.032174304, + -0.021459164, + -0.032520887, + -0.0008411819, + -0.002610191, + -0.035235774, + 0.028607406, + -0.017170219, + 0.00078747986, + -0.0052384334, + 0.02105482, + 0.0369398, + -0.014960763, + -0.0070074424, + -0.014115971, + -0.013162872, + -0.008404599, + 0.071684584, + -0.0042600627, + -0.0076681133, + 0.042340692, + 0.035669, + -0.009444343, + 0.021776864, + 0.031683315, + 0.013206195, + -0.021040378, + 0.023798589, + 0.045719862, + 0.01166824, + -0.008953352, + 0.011235014, + -0.009148304, + 0.00045782138, + 0.05510644, + 0.031567786, + -0.03760408, + -0.01021693, + 0.007198784, + -0.043813664, + 0.0077691996, + 0.01796447, + 0.03564012, + -0.012274757, + 0.022744404, + -0.065215066, + 0.021184787, + 0.009509327, + -0.007964151, + 0.007516484, + -0.059554234, + 0.011661019, + -0.023076544, + 0.038008425, + -0.013365044, + 0.001011765, + -0.0052817557, + 0.017718973, + 0.0055236407, + 0.042051874, + 0.0027004466, + 0.012736866, + -0.011978719, + -0.0049676667, + 0.016347088, + -0.00025722838, + -0.0003274021, + 0.012404725, + 0.0041373153, + 0.013350604, + -0.039423633, + -0.008563449, + -0.0014215253, + -0.009415461, + -0.014325364, + 0.029271686, + -0.018051114, + -0.0005329591, + -0.014065428, + -0.025329323, + 0.018932007, + -0.049503375, + 0.031019034, + -0.0115743745, + -0.0024675874, + 0.019076416, + 0.022903252, + -0.06186478, + -0.013574437, + 0.013596099, + -0.000482416, + -0.009834247, + 0.0047113406, + -0.03237648, + -0.015783893, + -0.016159358, + -0.010195269, + -0.018383253, + 0.017791178, + -0.042254046, + -0.006029072, + 0.009682617, + -0.012079805, + 0.034224913, + -0.023697503, + -0.014700827, + 0.011090605, + -0.028795136, + -0.046268616, + 0.017227983, + -0.004606644, + -0.015480635, + 0.015769454, + 0.010346899, + -0.017747855, + 0.016144916, + -0.009039998, + -0.024693923, + 0.011133927, + 0.03093239, + -0.025069388, + -0.021805745, + 0.0017040251, + -0.018773159, + -0.034658138, + -0.022397822, + -0.024910538, + -0.0045958133, + -0.011466067, + 0.0048088166, + -0.026080249, + 0.020924851, + 0.054066695, + -0.018932007, + 0.02818862, + 0.0017518606, + 0.045719862, + -0.008621212, + -0.020982614, + 0.0134083675, + 0.0052276026, + -0.009480445, + -0.031394497, + -0.018570986, + 0.028304147, + 0.0035632898, + 0.012166451, + 0.0004941492, + 0.024202934, + 0.01070792, + 0.01683808, + -0.012014821, + -0.002660734, + -0.002965798, + -0.005263705, + 0.0011245843, + 0.07018273, + -0.013819933, + -0.012087026, + -0.044651236, + -0.013213416, + -0.029271686, + 0.017574564, + 0.008527346, + 0.008816164, + 0.016462617, + -0.028000887, + 0.031798843, + -0.01587054, + -0.0017482503, + 0.025849195, + -0.027813155, + -0.0048088166, + -0.006516452, + -0.026932262, + 0.01816664, + 0.010354118, + -0.018455459, + -0.0142676, + -0.028592965, + -0.026383508, + -0.023249835, + 0.0027311335, + 0.042860564, + 0.007978592, + -0.093576975, + -0.0006579631, + 0.027697628, + 0.013249517, + 0.016361529, + 0.046932895, + 0.038037308, + 0.025069388, + 0.0076681133, + -0.008946132, + -0.04323603, + 0.004306996, + 0.018556545, + -0.026672326, + 0.00842626, + -0.018282168, + 0.023249835, + 0.02335092, + -0.008693417, + -4.1743202e-05, + -0.01701137, + -0.01621712, + -0.0031950471, + -0.013653862, + -0.015365108, + -0.030499162, + -0.025502613, + 0.0032455903, + 0.07411065, + -0.033791684, + 0.0066536404, + 0.015523958, + -0.0107873455, + 0.04101213, + 0.010823448, + 0.0037799033, + -0.0033502867, + -0.053546824, + 0.007000222, + -0.005541692, + -0.009617633, + -0.025170473, + 0.021747982, + 0.018570986, + -0.004198689, + -0.033820566, + 0.014339805, + 0.013365044, + -0.030990152, + -0.013711626, + 0.013697186, + -0.04080996, + -0.00059433293, + -0.005043481, + -0.016144916, + 0.020347215, + -0.016549261, + -0.00080327457, + 0.005617507, + 0.00793527, + -0.011704342, + 0.03113456, + -0.014700827, + -0.010390221, + -0.019076416, + -0.0017157583, + 0.017386833, + -0.014722489, + -0.0027437692, + 0.019495202, + -0.018354373, + 0.05008101, + 0.0095309885, + -0.0017653989, + -0.01927859, + -0.02010172, + 0.007884727, + 0.027957564, + -0.010115844, + -0.006516452, + 0.0080363555, + -2.8670245e-05, + 0.027827596, + -0.038643826, + -0.014679166, + 0.03318517, + 0.015220699, + 0.0038448873, + 0.02563258, + 0.0027618203, + -0.006339551, + 0.044102482, + 0.020823766, + 0.010570732, + 0.009422681, + 0.066428095, + -0.022599995, + -0.009516547, + -0.014007664, + 0.023856351, + 0.031798843, + 0.01718466, + -0.008361276, + -0.01831105, + 0.0040109577, + 0.0003131868, + 0.012296419, + 0.012188112, + 0.025026064, + 0.03552459, + 0.018686512, + -0.0005275438, + 0.013545556, + 0.060651742, + 0.007812522, + 0.01865763, + 0.03399386, + 0.015249581, + 0.045662098, + -0.0013520285, + -0.005982139, + 0.0036174431, + -0.048665803, + 0.0443913, + -0.008166323, + -0.019697376, + 0.017314628, + 0.05481762, + 0.03162555, + -0.001409792, + -0.0062962286, + 0.022975458, + -0.002254584, + 0.01475137, + -0.030556925, + -0.009855908, + 0.023466447, + 0.011314438, + -0.029517181, + -0.005628337, + 0.025906958, + 0.037806254, + 0.03194325, + 0.01652038, + 0.0029152548, + 0.037373025, + 0.014144853, + -0.003599392, + -0.021618014, + -0.011747665, + 0.038528297, + 0.008953352, + 0.02512715, + 0.02563258, + -0.0076247905, + 0.007422618, + -0.016910283, + -0.044593472, + 0.003518162, + 0.017906705, + -0.0101591665, + 1.4328071e-05, + -0.0026047758, + -0.0363044, + 0.009494886, + 0.026701208, + 0.0055128103, + -0.016390411, + -0.020145044, + 0.021545809, + -0.007956931, + -0.012895715, + 0.0022293124, + -0.042976093, + 0.013386706, + 0.012166451, + 0.019755138, + -0.0072168354, + 0.018094437, + 0.020217247, + -0.01135054, + 0.021329196, + -0.005946037, + 0.07110695, + -0.0016697281, + 0.08023359, + 0.002254584, + 0.026787853, + 0.041907467, + 0.033329576, + -0.0068774745, + 0.032347597, + -0.00096663716, + 0.008346835, + -0.007913608, + -0.03448485, + 0.015206258, + 0.00971872, + 0.0010803592, + 0.009942553, + 0.0068016597, + 0.01782006, + -2.812025e-05, + 0.033791684, + -0.009935333, + -0.033445105, + -0.017950028, + -0.019812902, + -0.019090857, + 0.052940305, + 0.023452006, + 0.007083257, + 0.012289198, + -0.00502543, + 0.021011496, + -0.028650727, + -0.011292777, + -0.018123318, + -0.009061659, + 0.013018463, + -0.0073684645, + -0.014195396, + -0.03679539, + 0.022802167, + -0.031047916, + 0.0075237043, + -0.05943871, + -0.015827216, + -0.032174304, + 0.028434115, + -0.0029784339, + 0.029416095, + 0.028015329, + 0.016072711, + -0.054528803, + -0.04554657, + -0.05527973, + -0.0036553505, + 0.0075814677, + -0.032723058, + 0.0077547585, + -0.03318517, + -0.038297243, + -0.0010316211, + -0.0035073315, + -0.0030849352, + 0.029141719, + 0.035871174, + -0.03777737, + -0.04170529, + 0.040405612, + -0.010758464, + 0.00420952, + -0.01943744, + 0.016303767, + -0.012188112, + -0.0017076354, + 0.017762296, + 0.025820313, + -0.03838389, + -0.008606771, + -0.001362859, + 0.009985876, + 0.00437559, + 0.0108667705, + -0.008159104, + 0.0076753334, + 0.035235774, + 0.014108751, + 0.00038877586, + -0.032203186, + 0.022253413, + -0.0039134813, + 0.012751306, + -0.0017031226, + 0.043149382, + 0.0033936093, + -0.0050615324, + -0.021502487, + 0.008722298, + -0.026311303, + 0.0095959725, + 0.0010334263, + -0.027668748, + 0.022152327, + -0.015105172, + -0.024982741, + 0.016953606, + 0.046586316, + 0.0053395196, + -0.0006502914, + 0.010029199, + 0.026181335, + 0.009899231, + 0.0014134023, + 0.0038521076, + -0.037084207, + -0.0035416286, + -0.017646769, + -0.07613238, + 0.00697134, + 0.004628306, + -0.019885106, + -0.031567786, + -0.012693543, + 0.00015151653, + 0.043900307, + -0.018830922, + -0.022354499, + -0.003032587, + -0.009162745, + -0.0019982583, + 0.019394116, + 0.00039960654, + 0.008274631, + -0.0006471324, + -0.026484594, + 0.0041734176, + 0.03988574, + -0.0030037053, + 0.0146647245, + 0.009350477, + -0.0008366691, + -0.055019796, + 0.0048846314, + -0.033964977, + -0.016592585, + -0.0067980494, + -0.009444343, + 0.013928239, + 0.0061048865, + -0.03517801, + -0.0020812934, + 0.009964215, + 0.005108465, + -0.042398456, + -0.019567408, + 0.001775327, + -0.05623283, + 0.0035271877, + 0.012707984, + 0.008462362, + 0.0062168036, + 0.022470027, + 0.014917441, + 0.014960763, + -0.048896857, + -0.0051590083, + 0.01506185, + -0.026773412, + 0.09086209, + 0.003841277, + 0.031683315, + -0.02381303, + -0.029690472, + 0.01070792, + 0.02609469, + 0.013336163, + -0.0151629355, + 0.005310638, + 0.0110761635, + -0.012874055, + -0.013162872, + -0.0109317545, + -0.0006457786, + -0.030528044, + 0.0075237043, + 0.018527662, + 0.018830922, + 0.0010902872, + 0.044333536, + 0.01248415, + -0.0058918837, + 0.01231086, + -0.01540843, + -0.0030091207, + -0.018296609, + -0.013105108, + -0.0004864775, + 0.035149127, + -0.019971753, + -0.004310606, + 0.006140989, + 0.041560885, + -0.008512905, + -0.019264149, + 0.039827976, + 0.006675302, + 0.007231276, + -0.0017816449, + -0.0012256706, + -0.014845236, + 0.020145044, + -0.012578016, + -0.035437945, + -0.019394116, + -0.00891003, + -0.029387213, + -0.030441398, + 0.016953606, + -0.0040723314, + -0.016361529, + 0.00026693085, + 0.017877823, + 0.037170853, + -0.008953352, + -0.015538399, + 0.033733923, + -0.030412516, + 0.018051114, + -0.015769454, + -0.027437693, + -0.029777117, + 0.024520634, + 0.006191532, + -0.027134433, + 0.0034802547, + -0.0038376667, + 0.020534948, + 0.027293283, + 0.017560123, + 0.03000817, + 0.021632455, + 0.03254977, + -0.031654432, + 0.033098523, + 0.025690345, + -0.006920797, + -0.0023213732, + 0.020924851, + -0.026990024, + 0.0005559743, + 0.035726763, + 0.0062781773, + -0.011379422, + 0.030845743, + -0.031076798, + -0.0256037, + 0.012585237, + 0.022874372, + 0.031654432, + 0.0249683, + 0.010332458, + 0.013307281, + -0.018412136, + 0.0012662857, + -0.0129751405, + 0.00040615007, + 0.005707762, + 0.026527917, + -0.025314882, + 0.01101118, + -0.043467082, + 0.04716395, + -0.0018574597, + -0.008224088, + 0.010267474, + -0.01911974, + 0.019321913, + -0.008686196, + -0.0028773476, + -0.008671755, + 0.006364823, + -0.024665043, + 0.016260443, + -0.021574691, + -0.018036673, + 0.027596543, + -0.002545207, + 0.009307154, + -0.010975077, + -0.0039315326, + 0.023755265, + -0.029748235, + 0.0024603668, + -0.0018520443, + -0.001182348, + -0.014152073, + 0.019379675, + -0.0064117555, + 0.010751244, + 0.0012942648, + 0.005917155, + -0.045806505, + 0.053720113, + -0.0062962286, + 0.0017717169, + -0.012931818, + 0.010946196, + 0.011632138, + 0.0047763246, + 0.04519999, + 0.027365489, + -0.0105129685, + -0.00972594, + -0.007321532, + 0.012823511, + 0.0010830668, + -0.013921019, + 0.0027004466, + -0.019004213, + 0.014780252, + -0.01475137, + -0.014621402, + -0.020953733, + 0.013791051, + -0.0340805, + -0.010130285, + -0.013986003, + -0.0036571557, + -0.014946322, + -0.008317953, + 0.030730216, + 0.041965228, + 0.017386833, + -0.013906578, + -0.012375844, + 0.035264656, + -0.0030704944, + -0.03855718, + 0.03480255, + -0.008216867, + 5.066299e-06, + 0.029806, + 0.019249707, + -0.047770467, + 0.0035091366, + -0.004989328, + -0.014780252, + 0.00067511166, + -0.012520253, + 0.013040124, + 0.012050924, + 0.026369067, + -0.009206068, + 0.010238592, + -0.01832549, + -0.007964151, + 0.033618394, + 0.0048376983, + 0.012541913, + -0.021141464, + 0.01637597, + -0.005101245, + 0.0076464517, + 0.01734351, + -0.0014883144, + 0.050514236, + 0.0026119961, + -0.013198975, + -0.004119264, + -0.0062168036, + 0.022412263, + -0.026499035, + -0.013646642, + 0.0021516928, + 0.0009657346, + 0.0044333534, + 0.026296863, + 0.03792178, + 0.0007283624, + 0.04098325, + -0.0006390094, + -0.019148622, + 0.013726067, + 0.02238338, + -0.010650157, + 0.0062781773, + 0.0042564524, + 0.007964151, + -0.016736994, + 0.0030560535, + 0.026051367, + 0.018253285, + -0.00015670623, + -0.023755265, + 0.028737374, + -0.008873927, + 0.016621465, + -0.0017726193, + -0.013661083, + 0.046904013, + 0.0030217564, + 0.008411819, + 0.017863382, + -0.019394116, + 0.01070792, + 0.0012626754, + -0.04476676, + -0.0114299655, + 0.03564012, + 0.009379359, + -0.00020544424, + 0.027119994, + 0.007877506, + 0.021675777, + 0.043900307, + 0.01699693, + -0.00316075, + 0.0018737057, + -0.017242424, + 0.032145422, + 0.020621592, + -0.0042239605, + -0.010801787, + -0.06689021, + -0.0074298386, + -0.018022232, + 0.00014587556, + 0.003971245, + 0.024202934, + -0.06423308, + 0.004779935, + 0.00972594, + -0.0074587204, + 0.0075598066, + -0.03682427, + 0.0023123478, + 0.03416715, + -0.015523958, + -0.016982488, + 0.014650284, + 0.0060543437, + -0.0037943441, + -0.01540843, + 0.015278462, + -0.03306964, + 0.0013258543, + -0.0020704628, + -0.016823638, + 0.009682617, + 0.06660139, + 0.004386421, + -0.023942998, + -0.014888559, + 0.014469773, + -0.016274884, + -0.0013023879, + 0.031192325, + -0.013747728, + 0.008375716, + -0.021488046, + 0.0187876, + 0.026802294, + 0.027322166, + 0.018022232, + -0.0016805587, + -0.012953479, + -0.02544485, + 0.011307218, + 0.0034315167, + -0.012924598, + -0.021170346, + 0.02904063, + 0.017776737, + 0.011155589, + -0.005964088, + 0.028130855, + -0.019812902, + -0.008086899, + 0.01862875, + 0.019827344, + -0.021098142, + 0.011711563, + -0.014144853, + -0.03841277, + 0.034946956, + 0.0028935936, + 0.0058449507, + 0.042167403, + 0.027784275, + 0.006707794, + -0.023553094, + 0.0064875702, + 0.058774427, + 0.031567786, + 0.024029642, + 0.0038232259, + 0.022585554, + -0.00032198674, + -0.016505938, + -0.027972005, + -0.0036011972, + -0.008289072, + 0.0023394243, + 0.023524212, + 0.021011496, + 0.028130855, + 0.019509643, + -0.032347597, + 0.004130095, + -0.00048196473, + -0.005220382, + 0.0031553346, + 0.002072268, + 0.044506826, + -0.019350793, + -0.0062601264, + -0.012787409, + -0.012260317, + 0.021329196, + 0.003924312, + -0.029719355, + 0.01021693, + 0.003337651, + 0.013343384, + -0.007639231, + 0.0074298386, + -0.024592837, + -0.014404789, + -0.007855845, + -0.022455586, + 0.023726383, + 0.019798461, + 0.008000254, + 0.014700827, + -0.005483928, + -0.008166323, + 0.026195776, + -0.0046896795, + 0.00615904, + 0.059669763, + 0.010657378, + 0.009003895, + -0.022802167, + -0.013271179, + -0.013769389, + -0.042542864, + 0.014354246, + -0.0036553505, + 0.022946576, + -0.003956804, + -0.019264149, + -0.016910283, + -0.023567535, + -0.013848814, + -0.016173799, + 0.0058232895, + 0.006144599 + ], + "index": 0, + "object": "embedding" + } + ], + "model": "text-embedding-3-small", + "object": "list", + "usage": { + "prompt_tokens": 9, + "total_tokens": 9 + } + } + }, + "is_streaming": false + }, + "id_normalization_mapping": { + "file-1": "file-5efa8a5a4b414ce98726c4e133a18747" + } +} diff --git a/tests/integration/responses/recordings/0f79646fcf8aaf90bd27658c7c038a495eba448dfde29b58d887281ab0ffe972.json b/tests/integration/responses/recordings/0f79646fcf8aaf90bd27658c7c038a495eba448dfde29b58d887281ab0ffe972.json new file mode 100644 index 000000000..5cf5a828e --- /dev/null +++ b/tests/integration/responses/recordings/0f79646fcf8aaf90bd27658c7c038a495eba448dfde29b58d887281ab0ffe972.json @@ -0,0 +1,629 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[openai_client-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/chat/completions", + "headers": {}, + "body": { + "model": "gpt-4o", + "messages": [ + { + "role": "user", + "content": "How many experts does the Llama 4 Maverick model have?" + } + ], + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "knowledge_search", + "description": "Search for information in a database.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The query to search for. Can be a natural language sentence or keywords." + } + }, + "required": [ + "query" + ] + } + } + } + ] + }, + "endpoint": "/v1/chat/completions", + "model": "gpt-4o" + }, + "response": { + "body": [ + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": "assistant", + "tool_calls": [ + { + "index": 0, + "id": "call_aPe1vS1v5bIwPgl789D5bfmW", + "function": { + "arguments": "", + "name": "knowledge_search" + }, + "type": "function" + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "b" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "{\"", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "query", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "XcH6k6sgVs7b6E" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "\":\"", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "5JbtLEKFxBMFGe" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "L", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "0i" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "lama", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "7I06Mzy6Bm3juqj" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " ", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "co" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "4", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "Ki" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " Maver", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "HNWlcmJWbps41" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "ick", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " model", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "n2ZzmmZvrA2n5" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " number", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "vtA3Q5q7euzF" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " of", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " experts", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "sIZkfWN1UkF" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "\"}", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-0f79646fcf8a", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": "tool_calls", + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "w" + } + } + ], + "is_streaming": true + }, + "id_normalization_mapping": {} +} diff --git a/tests/integration/responses/recordings/16144567d21785fd1837a8f86258d8a972e7216dbb55427ea63edb9ae3185b0a.json b/tests/integration/responses/recordings/16144567d21785fd1837a8f86258d8a972e7216dbb55427ea63edb9ae3185b0a.json new file mode 100644 index 000000000..6cbbb9b2c --- /dev/null +++ b/tests/integration/responses/recordings/16144567d21785fd1837a8f86258d8a972e7216dbb55427ea63edb9ae3185b0a.json @@ -0,0 +1,2075 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[openai_client-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/chat/completions", + "headers": {}, + "body": { + "model": "gpt-4o", + "messages": [ + { + "role": "user", + "content": "How many experts does the Llama 4 Maverick model have?" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "index": 0, + "id": "call_aPe1vS1v5bIwPgl789D5bfmW", + "type": "function", + "function": { + "name": "knowledge_search", + "arguments": "{\"query\":\"Llama 4 Maverick model number of experts\"}" + } + } + ] + }, + { + "role": "tool", + "tool_call_id": "call_aPe1vS1v5bIwPgl789D5bfmW", + "content": [ + { + "type": "text", + "text": "knowledge_search tool found 1 chunks:\nBEGIN of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "[1] document_id: file-5efa8a5a4b414ce98726c4e133a18747, score: 2.5781234969335522, attributes: {'filename': 'test_sequential_file_search.txt', 'document_id': 'file-5efa8a5a4b414ce98726c4e133a18747', 'token_count': 19.0, 'metadata_token_count': 11.0} (cite as <|file-5efa8a5a4b414ce98726c4e133a18747|>)\nThe Llama 4 Maverick model has 128 experts in its mixture of experts architecture.\n" + }, + { + "type": "text", + "text": "END of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "The above results were retrieved to help answer the user's query: \"Llama 4 Maverick model number of experts\". Use them as supporting information only in answering this query. Cite sources immediately at the end of sentences before punctuation, using `<|file-id|>` format (e.g., 'This is a fact <|file-Cn3MSNn72ENTiiq11Qda4A|>.'). Do not add extra punctuation. Use only the file IDs provided (do not invent new ones).\n" + } + ] + }, + { + "role": "assistant", + "content": "The Llama 4 Maverick model has 128 experts in its mixture of experts architecture <|file-5efa8a5a4b414ce98726c4e133a18747|>." + }, + { + "role": "user", + "content": "Can you tell me more about the architecture?" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "index": 0, + "id": "call_ySLmLmkOHqFkNCZrQhrXtOqO", + "type": "function", + "function": { + "name": "knowledge_search", + "arguments": "{\"query\":\"Llama 4 Maverick model architecture details\"}" + } + } + ] + }, + { + "role": "tool", + "tool_call_id": "call_ySLmLmkOHqFkNCZrQhrXtOqO", + "content": [ + { + "type": "text", + "text": "knowledge_search tool found 1 chunks:\nBEGIN of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "[1] document_id: file-5efa8a5a4b414ce98726c4e133a18747, score: 1.932386575539943, attributes: {'filename': 'test_sequential_file_search.txt', 'document_id': 'file-5efa8a5a4b414ce98726c4e133a18747', 'token_count': 19.0, 'metadata_token_count': 11.0} (cite as <|file-5efa8a5a4b414ce98726c4e133a18747|>)\nThe Llama 4 Maverick model has 128 experts in its mixture of experts architecture.\n" + }, + { + "type": "text", + "text": "END of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "The above results were retrieved to help answer the user's query: \"Llama 4 Maverick model architecture details\". Use them as supporting information only in answering this query. Cite sources immediately at the end of sentences before punctuation, using `<|file-id|>` format (e.g., 'This is a fact <|file-Cn3MSNn72ENTiiq11Qda4A|>.'). Do not add extra punctuation. Use only the file IDs provided (do not invent new ones).\n" + } + ] + } + ], + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "knowledge_search", + "description": "Search for information in a database.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The query to search for. Can be a natural language sentence or keywords." + } + }, + "required": [ + "query" + ] + } + } + } + ] + }, + "endpoint": "/v1/chat/completions", + "model": "gpt-4o" + }, + "response": { + "body": [ + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "", + "function_call": null, + "refusal": null, + "role": "assistant", + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "YAugXPahVVs" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "The", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "FHjVXeqbYE" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " available", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "0CV" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " information", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "C" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " specifically", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " notes", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "gGiF9GK" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " that", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "9FKKuqun" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " the", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "WsCGgWcmo" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " L", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "EpONAhcp7LJ" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "lama", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "EjT4OhSkw" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " ", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "OB4yu6CstfC7" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "4", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "XQJuNpoPHN5M" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " Maver", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "kLrPkml" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "ick", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "FzOeUMHZpi" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " model", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "TfYFwhN" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " features", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "gi8D" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " ", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "wjwCATkzIvxu" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "128", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "Miv8YhOFn6" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " experts", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "PtVIE" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " in", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "z4OmIEbvJV" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " its", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "ShrBbrihV" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " mixture", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "iIbGZ" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " of", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "SSvLxeBjSR" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " experts", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "7yh9f" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " architecture", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": ".", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "hztyGlGZeAT7" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " Unfortunately", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "hh8qtAKx6yJq8OE" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": ",", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "dfC1z8IAryrg" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " further", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "n8Zih" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " details", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "lwOBg" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " about", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "WTUlRcg" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " other", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "gxWDEaL" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " aspects", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "vy1aa" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " of", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "pkqwT38jPg" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " its", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "m6F5dAQM8" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " architecture", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " are", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "m3d6Ja3xx" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " not", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "ZNXQXRmMd" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " available", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "avy" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " in", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "Y5k9JDWyeM" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " the", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "d4KHPM6jz" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " current", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "5cXAd" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " data", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "SH07HcI4" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " I", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "OikIbmh1zqu" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " have", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "FvfY7alQ" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " retrieved", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "JGp" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": " <", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "8vfD7iy7dWL" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "|", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "D1tTI2JiFETn" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "file", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "Ot6wU2ltQ" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "-", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "5RnGVlMATgZN" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "5", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "JYQEFPTqU22F" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "efa", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "gr33Xk7iAf" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "8", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "KqDot7v6w9Zt" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "a", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "A38Z8Zd3S738" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "5", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "2hqWnNklrliB" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "a", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "TrZr6s3uI7UG" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "4", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "N6Zw30oOeBV9" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "b", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "f2kcdVKJK5ZR" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "414", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "ztjhyaIPq0" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "ce", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "qSHGuDNeT8l" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "987", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "lVjDAAvWjH" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "26", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "Bj8Onp8vmtP" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "c", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "ftp0rfrHA6g9" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "4", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "UB9pf8uOFBCi" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "e", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "C4tvTf5pZli6" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "133", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "ONsPYPDRTm" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "a", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "uXESBZ6XtFg2" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "187", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "uaGxwN0nsF" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "47", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "Z08cgpmBFYo" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": "|", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "DKuG42aks86x" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": ">.", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "2Qhj9rw5MEJ" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-16144567d217", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": "stop", + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "hOBsJ5y" + } + } + ], + "is_streaming": true + }, + "id_normalization_mapping": { + "file-1": "file-5efa8a5a4b414ce98726c4e133a18747" + } +} diff --git a/tests/integration/responses/recordings/1b0c005eb4b93c22ec7211904cab5145194ec832d8e436fee11599c1c2d80fd8.json b/tests/integration/responses/recordings/1b0c005eb4b93c22ec7211904cab5145194ec832d8e436fee11599c1c2d80fd8.json new file mode 100644 index 000000000..642f35b4e --- /dev/null +++ b/tests/integration/responses/recordings/1b0c005eb4b93c22ec7211904cab5145194ec832d8e436fee11599c1c2d80fd8.json @@ -0,0 +1,221 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[client_with_models-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/chat/completions", + "headers": {}, + "body": { + "model": "gpt-4o", + "messages": [ + { + "role": "user", + "content": "How many experts does the Llama 4 Maverick model have?" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "index": 0, + "id": "call_qzY7B7EArJwpMqLVer8kcAey", + "type": "function", + "function": { + "name": "knowledge_search", + "arguments": "{\"query\":\"Llama 4 Maverick model number of experts\"}" + } + } + ] + }, + { + "role": "tool", + "tool_call_id": "call_qzY7B7EArJwpMqLVer8kcAey", + "content": [ + { + "type": "text", + "text": "knowledge_search tool found 1 chunks:\nBEGIN of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "[1] document_id: file-d7cee10212814cfcb75cc091eee11688, score: 2.5781234969335522, attributes: {'filename': 'test_sequential_file_search.txt', 'document_id': 'file-d7cee10212814cfcb75cc091eee11688', 'token_count': 19.0, 'metadata_token_count': 11.0} (cite as <|file-d7cee10212814cfcb75cc091eee11688|>)\nThe Llama 4 Maverick model has 128 experts in its mixture of experts architecture.\n" + }, + { + "type": "text", + "text": "END of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "The above results were retrieved to help answer the user's query: \"Llama 4 Maverick model number of experts\". Use them as supporting information only in answering this query. Cite sources immediately at the end of sentences before punctuation, using `<|file-id|>` format (e.g., 'This is a fact <|file-Cn3MSNn72ENTiiq11Qda4A|>.'). Do not add extra punctuation. Use only the file IDs provided (do not invent new ones).\n" + } + ] + } + ], + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "knowledge_search", + "description": "Search for information in a database.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The query to search for. Can be a natural language sentence or keywords." + } + }, + "required": [ + "query" + ] + } + } + } + ] + }, + "endpoint": "/v1/chat/completions", + "model": "gpt-4o" + }, + "response": { + "body": [ + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-1b0c005eb4b9", + "choices": [ + { + "delta": { + "content": "", + "function_call": null, + "refusal": null, + "role": "assistant", + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "HzERiIH1ZK7" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-1b0c005eb4b9", + "choices": [ + { + "delta": { + "content": "The Llama ", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "cv3YyCIl31" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-1b0c005eb4b9", + "choices": [ + { + "delta": { + "content": "4 Maverick model has ", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "FYYzpehV3ATW" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-1b0c005eb4b9", + "choices": [ + { + "delta": { + "content": "128 experts in its mixture of experts architecture <|file-1|>.", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "8Wr2pBxPtw" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-1b0c005eb4b9", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": "stop", + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "svQvgkR" + } + } + ], + "is_streaming": true + }, + "id_normalization_mapping": { + "file-1": "file-d7cee10212814cfcb75cc091eee11688" + } +} diff --git a/tests/integration/responses/recordings/2ba43758466f6eb5d66af4cc1c5016b013155bf1dcf750873e2adbda644f04fa.json b/tests/integration/responses/recordings/2ba43758466f6eb5d66af4cc1c5016b013155bf1dcf750873e2adbda644f04fa.json new file mode 100644 index 000000000..7ad52d611 --- /dev/null +++ b/tests/integration/responses/recordings/2ba43758466f6eb5d66af4cc1c5016b013155bf1dcf750873e2adbda644f04fa.json @@ -0,0 +1,1576 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[client_with_models-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/embeddings", + "headers": {}, + "body": { + "model": "text-embedding-3-small", + "input": [ + "The Llama 4 Maverick model has 128 experts in its mixture of experts architecture." + ], + "encoding_format": "float" + }, + "endpoint": "/v1/embeddings", + "model": "text-embedding-3-small" + }, + "response": { + "body": { + "__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse", + "__data__": { + "data": [ + { + "embedding": [ + 0.028752776, + -0.00195571, + 0.021898607, + -0.0251854, + 0.009339308, + 0.009893788, + -0.0037444078, + 0.017850237, + -0.014322945, + -0.038960546, + -0.025693119, + -0.038372666, + -0.0075155376, + -0.0022897338, + -0.007936408, + 0.022165826, + 0.00405505, + -0.04096469, + 0.002486808, + 0.017115384, + -0.03163874, + -0.0025035092, + 0.025425898, + -0.03484537, + 0.015311656, + 0.0017803473, + -0.042461116, + -0.050798353, + 0.020428902, + -0.0012475792, + 0.05395154, + -0.040243197, + 0.011724238, + -0.0060758945, + -0.04008287, + -0.00978022, + 0.008223669, + 0.013300831, + -0.033883385, + -0.0010104222, + -0.01775671, + 0.008196946, + -0.021016784, + 0.048660602, + 0.042835224, + -0.034444544, + -0.057078004, + 0.017088663, + -0.014630247, + 0.036448687, + 0.025399176, + 0.035673752, + 0.027603734, + 0.03944154, + -0.013340915, + -0.02489146, + 0.0024283538, + -0.0064232796, + 0.03521948, + 0.026200835, + 0.02167147, + -0.037971836, + 0.025105236, + 0.006206164, + -0.006947697, + -0.06461358, + -0.043129165, + 0.003533973, + 0.00033089242, + -0.017061941, + -0.086953096, + 0.026721912, + -0.01075557, + -0.021364167, + 0.014082448, + -0.029714765, + 0.012051582, + -0.008624497, + 0.008357278, + -0.004041689, + -0.0045727873, + 0.05229478, + 0.026641745, + -0.040644027, + -0.0029043378, + -0.0014847362, + 0.009753497, + -0.0019390087, + -0.055848796, + -0.07011829, + -0.00921906, + 0.0017886979, + 0.025800005, + -0.022058938, + 0.022580015, + -0.009913829, + -0.0018254406, + -0.010601918, + -0.0029978645, + 0.049863085, + -0.03954843, + 0.038613163, + 0.010034078, + 0.0004613705, + 0.004151917, + -0.022459766, + -0.0086579, + -0.040937968, + -0.029019997, + 0.021751637, + -0.022312796, + -0.029500991, + -0.0142962225, + -0.014336306, + -0.055741906, + 0.004389074, + -0.016861526, + -0.02068276, + -0.037009846, + -0.03169219, + -0.025011709, + -0.032761063, + 0.010795652, + -0.038907103, + 0.034872096, + 0.00048475218, + -0.012639464, + -0.04053714, + 0.0014922518, + -0.01941347, + -0.029875098, + -0.014376388, + 0.032066293, + 0.00027431714, + 0.013167222, + -0.035326365, + -0.05077163, + -0.0005114741, + -0.009058728, + -0.03174563, + 0.025759922, + 0.00027598723, + 0.00041773863, + -0.039254487, + 0.018651893, + -0.0133743165, + -0.03203957, + -0.016607668, + -0.05397826, + -0.011931334, + -0.066644445, + -0.006119318, + -0.021083588, + -0.008985243, + -0.02208566, + -0.005324341, + -0.010094202, + -0.018972557, + 0.029688044, + -0.015124602, + -0.00657025, + 0.0035039107, + 0.02391611, + 0.005705128, + 0.018344592, + 0.04502642, + -0.06135351, + 0.027283072, + -0.09272503, + -0.075035125, + 0.030863808, + 2.2833665e-05, + 0.015284933, + -0.038506273, + 0.030008707, + 0.006069214, + 0.038265776, + -0.0287795, + -0.034043714, + -0.04168618, + -0.010835735, + -0.0031715569, + 0.0097869, + -0.0042187218, + -0.05884165, + -0.013922116, + -0.0065936316, + 0.0081101, + -0.018023929, + -0.012960127, + -0.028325226, + 0.052081004, + 0.011102954, + 0.044759203, + 0.04751156, + -0.020669399, + -0.0022964142, + -0.022446405, + 0.004178639, + 0.00349389, + -0.027349876, + 0.022593375, + 0.03481865, + -0.06990452, + -0.009499639, + 0.035299644, + 0.010655362, + 0.016580947, + -0.019787576, + -0.0071280696, + 0.061567284, + -0.0042955475, + 0.060605295, + 0.01970741, + -0.04072419, + -0.010080841, + -0.0024383743, + -0.024290217, + -0.012432369, + 0.04457215, + -0.028726054, + -0.024263496, + -0.033161893, + 0.021070227, + -0.028325226, + 0.024210053, + 0.018838948, + -0.038773492, + 0.0015056127, + 0.016714556, + -0.02923377, + -0.011624032, + -0.02151114, + -0.037277065, + -0.009419474, + -0.05229478, + -0.016888248, + 0.00081543584, + 0.021083588, + -0.013922116, + -0.018919114, + -0.022379601, + 0.010548474, + -0.039334655, + 0.03465832, + 0.015431904, + -0.01941347, + -0.03885366, + 0.010548474, + 0.02616075, + 0.037651174, + 0.018491562, + -0.028619166, + -0.00503374, + -0.0091789765, + 0.040216476, + -0.058360655, + -0.032814506, + 0.00058788207, + -0.014737134, + -0.0075823423, + 0.016099952, + -0.051653456, + 0.03382994, + -0.06680478, + 0.031398244, + -0.022392962, + 0.037143458, + -0.028699333, + -0.04657629, + -0.031077582, + -0.013407719, + -0.039494984, + -0.0005181546, + -0.012111707, + -0.04654957, + -0.030596588, + -0.022245992, + 0.025278928, + 0.057024557, + -0.010875818, + -0.03997598, + 0.043182608, + 0.052054282, + 0.0056383233, + 0.00237825, + 0.08428091, + 0.010735528, + 0.011310049, + -0.03676935, + 0.022713624, + -0.017422685, + -0.0036809433, + 0.02294076, + 0.009272504, + 0.0162202, + -0.037090015, + -0.029474268, + -0.0078362, + 0.027577013, + 0.011283327, + -0.01734252, + -0.0060792346, + -0.07214916, + 0.022125743, + 0.017663183, + -0.0010012366, + 0.0005490518, + -0.009285864, + -0.025225485, + 0.0061159777, + -0.005017039, + -0.023715697, + -0.00950632, + -0.017168827, + -0.008477527, + -0.0016375522, + -0.033883385, + 0.011777682, + -0.030970694, + -0.0142427785, + -0.036715906, + 0.029420825, + -0.004532704, + -0.047084007, + -0.00936603, + -0.01732916, + 0.0007114709, + 0.009452877, + -0.066056564, + -0.00042650677, + 0.004292207, + -0.021417612, + -0.009913829, + 0.032761063, + -0.052481834, + -0.024490632, + -0.015618958, + 0.0027974502, + 0.015431904, + -0.017369242, + -0.022032216, + 0.018411396, + 0.01258602, + 0.00894516, + -0.013254068, + -0.02601378, + 0.0146035245, + 0.050023418, + 0.016594307, + -0.048045997, + -0.0631706, + 0.037704617, + 0.01230544, + 0.026788717, + -0.02306101, + 0.0014162613, + 0.019213054, + -0.031077582, + -0.0058554388, + -0.02264682, + 0.022606738, + 0.021297364, + 0.026775355, + -0.0078762835, + 0.03241368, + 0.07118717, + -0.042541284, + -0.019774215, + -0.03145169, + 0.031852517, + 0.006530167, + -0.030222481, + -0.0067740045, + -0.0018655234, + 0.005508054, + 0.037383955, + 0.002627098, + 0.00044967968, + 0.0018371315, + 0.0126327835, + -0.033429112, + 0.03366961, + -0.00866458, + 0.0142427785, + 0.007067946, + 0.0022429705, + -0.049141593, + -0.01300689, + -0.02976821, + 0.01580601, + -0.0112766465, + 0.023862667, + -0.03326878, + 0.053604156, + -0.016607668, + 0.054405812, + 0.006503445, + 0.018852308, + 0.042274065, + -0.022299435, + -0.034204047, + -0.011403576, + 0.021324085, + -0.0439041, + -0.006329753, + 0.0029845035, + 0.001425447, + -0.00070813065, + 0.025800005, + 0.036715906, + -0.08529634, + -0.0096666515, + -0.02502507, + -0.019961268, + -0.005705128, + 0.021163754, + -0.021177115, + 0.041525852, + 0.0352462, + 0.00028538165, + 0.009673332, + -0.012926725, + -0.0173158, + 0.022072298, + 0.0034738486, + 0.002460086, + -0.021604665, + -0.013340915, + -0.047858942, + 0.013708341, + -0.0097935805, + 0.03535309, + 0.0145500805, + -0.036822792, + 0.014469915, + -0.07979163, + 0.008624497, + 5.422669e-05, + -0.026307723, + 0.0054412493, + 0.031104306, + 0.03187924, + 0.0024817975, + -0.023368312, + -0.023568725, + -0.040243197, + 0.012278718, + 0.019547079, + -0.024116525, + -0.021791719, + -0.03455143, + 0.016033147, + 0.03425749, + -0.031959407, + -0.03102414, + 0.045079865, + 0.010374782, + 0.0692632, + -0.0021327427, + 0.025946977, + -0.010615279, + -0.02248649, + -0.037517563, + -0.006125998, + -0.04839338, + 0.0060057496, + -0.0025051793, + 0.026414609, + 0.016514141, + 0.012485813, + -0.035032425, + 0.022259353, + 0.008143502, + 0.0013202295, + -0.016019786, + -0.031932686, + 0.013167222, + 0.033322223, + -0.07059929, + -0.038212333, + 0.017208911, + -0.002546932, + 0.020656038, + -0.015391821, + 0.06712544, + -0.010662043, + 0.04740467, + -0.024490632, + 0.042274065, + -0.015993064, + 0.011390215, + 0.012826517, + -0.014723773, + 0.026080586, + -0.03591425, + -0.011109634, + -0.045133308, + -0.028565723, + -0.025065154, + 0.01901264, + -0.048420105, + -0.057345223, + -0.02041554, + -0.026307723, + 0.036742628, + -0.021644749, + -0.008083378, + 0.012492494, + 0.028726054, + -0.03901399, + -0.0145500805, + -0.007482135, + 0.006737262, + -0.00028350277, + -0.021243919, + 0.021471055, + 0.022900678, + 0.022553293, + 0.0058788205, + 0.031772353, + -0.00097200955, + -0.047431394, + -0.009466237, + 0.032199904, + 0.0105351135, + -0.020108238, + -0.027109379, + -0.0027323153, + 0.035406534, + -0.03356272, + -0.040590584, + -0.04206029, + -0.046202186, + -0.032066293, + -0.012639464, + 0.043583438, + -0.036822792, + -0.019506995, + -0.016407253, + 0.022259353, + 0.02669519, + -0.010114243, + -0.007729313, + -0.00086595694, + -0.0030713496, + -0.00391476, + 0.038506273, + 0.024490632, + 0.022259353, + 0.030489702, + -0.03468504, + 0.008784829, + -0.0039381417, + -0.024397105, + -0.040189754, + -0.062155165, + 0.007495496, + -0.029313937, + 0.0363418, + 0.0034905497, + 0.011290007, + -0.012879961, + 0.006446661, + 0.009345989, + 0.005401166, + -0.008457485, + 0.028191617, + 0.01734252, + 0.020722842, + 0.014175974, + 0.012238636, + -0.00080040476, + 0.019119527, + 0.0054445895, + 0.0065502087, + 0.043556716, + 0.017957125, + 0.033188615, + -0.0031231234, + -0.006790706, + -0.013087057, + -0.020869812, + 0.016273644, + -0.03789167, + -0.013033613, + -0.003061329, + -0.0046896953, + -0.015325016, + -0.00085760636, + 0.010601918, + -0.030783642, + 0.03145169, + -0.0035874166, + 0.0135012455, + -0.013815228, + -0.0032834548, + -0.03340239, + 0.0003905992, + -0.0019072765, + 0.008424083, + 0.03075692, + 0.017222272, + 0.020562511, + -0.026134029, + -0.014990992, + -0.053069714, + 0.031531855, + -0.011978097, + -0.031157749, + -0.03035609, + -0.008597775, + -0.013314192, + -0.023194619, + -0.040617306, + -0.0047331187, + 0.00908545, + -0.054779917, + 0.01664775, + -0.0066170134, + 0.021003423, + 0.001159898, + 0.0008513434, + 0.03297484, + -0.021096949, + 0.011477061, + 0.007976491, + -0.01174428, + -0.017596379, + 0.06739266, + 0.011717558, + -0.009092131, + 0.046068575, + 0.024717769, + -0.006306371, + 0.0062562674, + 0.04072419, + 0.039201044, + -0.03663574, + 0.023020927, + 0.0704924, + 0.007802798, + 5.1564937e-05, + -0.006443321, + -0.0067072, + -0.0035740556, + 0.036315076, + -0.0012534247, + -0.018344592, + -0.01187789, + 0.009272504, + -0.022539932, + -0.0023849306, + 0.035272922, + 0.023328228, + -0.0047565, + 0.025399176, + -0.04208701, + 0.02670855, + -0.009566444, + -0.0248781, + 0.024838017, + -0.030917251, + -0.012819837, + 0.008911758, + 0.04713745, + -0.006961058, + 0.017729988, + -0.028031286, + 0.03230679, + -0.00021586294, + 0.05272233, + -0.020776287, + 0.010955984, + 0.0060358117, + 0.005828717, + -0.00027181194, + -0.0017102023, + -0.010034078, + -0.0042287423, + -0.0034153943, + 0.024103165, + -0.036368523, + -0.007087987, + -0.018424759, + 0.02153786, + -0.007989852, + 0.02781751, + -0.006780685, + -0.007702591, + 0.008851633, + -0.016300365, + 0.009940551, + -0.05761244, + 0.01537846, + 0.0030312669, + -0.014349666, + 0.0139889205, + 0.011904611, + -0.055047136, + -0.0296346, + 0.027977841, + -0.024089804, + -0.02308773, + -0.03588753, + -0.02555951, + -0.030863808, + 0.02000135, + 0.018999279, + 0.009987314, + 0.00052191236, + -0.001313549, + -0.019239776, + -0.0045260238, + -0.017409325, + 0.03286795, + -0.022205908, + -0.030035429, + 0.02040218, + -0.06584279, + -0.057772774, + 0.016714556, + -0.016287005, + 0.010401504, + 0.0307302, + 0.026508136, + 0.012900002, + 0.02307437, + -0.002779079, + -0.011971416, + -0.013020251, + 0.0056817466, + 0.0005461291, + -0.033803217, + -0.016527502, + -0.011517144, + 0.01986774, + -0.032894675, + -0.033108447, + -0.008283793, + -0.008824911, + -0.01314718, + -0.018999279, + 0.013387677, + 0.034043714, + -0.01229876, + 0.024944905, + -0.023648892, + 0.019627243, + 0.006446661, + -0.04978292, + 0.011684156, + 0.022994205, + -0.0053477227, + -0.035753917, + -0.014670329, + 0.00895184, + -0.018812226, + 0.017235633, + 0.0030713496, + 0.045133308, + 0.014256139, + 0.030650033, + 0.00078495615, + 0.01845148, + -0.00030521434, + -0.0044124555, + 0.0081101, + 0.034791928, + -0.045507416, + -0.036101304, + -0.048714045, + -0.012272038, + -0.009325947, + -0.009466237, + -0.025359094, + 0.050103582, + 0.0052642166, + -0.021337446, + 0.02069612, + 0.023034288, + -0.029153606, + 0.010508392, + -0.02992854, + 0.0020158342, + 0.0045527457, + -0.04262145, + -0.005404507, + -0.0029293895, + -0.016099952, + 0.017636461, + -0.015084519, + 0.00074153306, + -0.027764065, + -0.0011515474, + 0.013494565, + -0.0023648893, + -0.081127726, + -0.021497779, + 0.027082657, + 0.020054795, + 0.019480273, + 0.027176185, + 0.029313937, + 0.03564703, + -0.013855311, + -0.0075689815, + -0.00963993, + -0.004208701, + 0.02570648, + 0.00629301, + -0.01257934, + -0.0287795, + -0.0030663393, + 0.039361376, + -0.049622588, + 0.019052723, + -0.0015314996, + -0.02279379, + -0.02446391, + -0.053577434, + -0.023515282, + 0.011650753, + -0.032493845, + 0.010976025, + 0.03775806, + 0.008210307, + 0.0029961944, + 0.028405393, + -0.0025519426, + 0.054298922, + 0.0011031139, + -0.00040082866, + -0.016955053, + -0.057719328, + -0.008056656, + -0.0061827824, + -0.004175299, + -0.0148173, + 0.026668468, + 0.0039181, + -0.024517354, + -0.048313215, + 0.025773283, + 0.015699122, + -0.027042575, + -0.02096334, + 0.0037510884, + -0.044385094, + 0.016834805, + -0.017262354, + -0.019600522, + 0.008303834, + 0.008257071, + 0.008283793, + 0.010421545, + -0.010508392, + -0.032520566, + 0.009098811, + -0.0173158, + -0.011944694, + -0.012392286, + 0.017088663, + 0.005758572, + 0.02111031, + -0.023969555, + -0.00037953464, + -0.018464841, + 0.047725335, + -0.005665045, + -0.0036508811, + 0.003467168, + 0.0046496126, + 0.020121599, + 0.01679472, + -0.026615024, + 0.0139889205, + -0.01230544, + -0.008764787, + 0.0007114709, + -0.046896953, + -0.021764997, + 0.035272922, + -0.0014162613, + -0.007535579, + 0.040296644, + 0.0062295455, + 0.0307302, + 0.017355882, + 0.016567586, + 0.010782291, + 0.0151646845, + 0.049301926, + -0.021016784, + -0.003787831, + -0.0410983, + 0.013167222, + 0.011209842, + 0.018651893, + -0.013367636, + -0.01718219, + -0.020522429, + -0.010468309, + 0.005090524, + -0.015952982, + 0.015458626, + 0.041338798, + 0.006680478, + 0.022165826, + 0.011436978, + 0.1124458, + 0.027790789, + 0.016834805, + 0.012639464, + 0.030142317, + 0.012786435, + 0.0047598407, + 0.03286795, + -0.010775611, + -0.040617306, + 0.027870953, + 0.01147038, + -0.0023281465, + 0.034204047, + 0.046496127, + 0.051199183, + -0.025906892, + -0.043984268, + 0.04906143, + 0.005437909, + -0.023328228, + -0.008163544, + -0.0036141386, + 0.013033613, + 0.027069297, + -0.030650033, + 0.0060859155, + 0.030783642, + 0.064346366, + 0.04473248, + -0.013527968, + -0.020014713, + 0.03941482, + -0.009472918, + -0.029500991, + -0.028512279, + -0.0013352605, + 0.021738274, + 0.013608133, + 0.013541329, + 0.017155467, + -0.027790789, + 0.031131027, + 0.003381992, + -0.026895603, + 0.025198763, + -0.0074420525, + 0.0020642676, + -0.029046718, + -0.002571984, + -0.02181844, + 0.01019441, + 0.0195738, + 0.025292289, + -0.02570648, + -0.029741487, + 0.025145318, + -0.00072608446, + -0.034150604, + -0.00021231394, + -0.027710622, + -0.02320798, + 0.0020425562, + -0.007355206, + -0.017836876, + -0.0064366404, + 0.021150393, + -0.008377319, + 0.024544075, + -0.015739206, + 0.07129406, + -0.015244851, + 0.032734342, + 0.033482555, + 0.047057286, + 0.02586681, + 0.041205186, + 0.009773539, + 0.003340239, + 0.017529573, + 0.033135172, + 0.012726311, + -0.040456973, + 0.035166036, + 0.028699333, + 0.009773539, + 0.006784025, + 0.014937549, + -0.018157538, + -0.00097367965, + 0.017102024, + 0.007903005, + -0.02054915, + -0.02880622, + -0.03385666, + -0.04302228, + 0.04179307, + 0.0044959616, + 0.025639674, + 0.018611811, + -0.0026872223, + 0.022954121, + -0.032066293, + -0.004940213, + -0.009132213, + -0.012512535, + 0.00922574, + -0.010381463, + -0.01620684, + -0.021644749, + 0.018531645, + -0.038506273, + -0.0010889178, + -0.05787966, + -0.017115384, + -0.04556086, + 0.012358884, + -0.012773073, + 0.017876958, + 0.031237915, + 0.012078304, + -0.06204828, + -0.06691167, + -0.06327748, + -0.016727917, + -0.01468369, + -0.020803008, + 0.027162824, + -0.012338842, + -0.04107158, + 0.008116781, + 0.00071940396, + 0.012839879, + 0.027496846, + 0.017436048, + -0.057719328, + -0.046095297, + 0.02936738, + -0.02669519, + 0.009292545, + -0.027055936, + -0.008824911, + -0.02880622, + 0.017970486, + 0.012559298, + 0.027496846, + -0.04125863, + -0.034070436, + -0.0040583904, + 0.014844022, + 0.016808081, + 0.021471055, + -0.0104081845, + -0.0078362, + 0.016433975, + 0.01593962, + -0.028699333, + -0.03300156, + 0.0145500805, + 0.013207304, + 0.026174113, + -0.0017486151, + 0.053176604, + -0.011831126, + -0.003747748, + -0.017048579, + 0.008530971, + -0.017957125, + 0.022326156, + -0.029447546, + -0.024824657, + 0.02249985, + -0.0039214403, + -0.021564582, + 0.02570648, + 0.034097157, + 0.0044358373, + -0.021230558, + 0.026775355, + 0.02195205, + 0.0064333, + 0.013935477, + 0.02473113, + -0.021003423, + -0.012839879, + 0.008697982, + -0.030329369, + 0.018705338, + -0.02084309, + -0.018772142, + -0.02069612, + 0.021310724, + -0.003230011, + 0.018638533, + -0.0034337656, + -0.049996696, + 0.0044391775, + -0.014483276, + 0.013775146, + 0.020509068, + -0.02196541, + -0.013454482, + -0.0128666, + -0.010468309, + 0.005521415, + 0.014763856, + -0.014095808, + 0.00937271, + -0.010949303, + -0.012525896, + -0.057398666, + 0.00086595694, + -0.024637602, + 0.024704408, + -0.01843812, + -0.0276839, + 0.015231489, + 0.009993995, + -0.028726054, + -0.00067472825, + 0.0022546612, + 0.009633249, + -0.034872096, + -0.014830661, + -0.022286074, + -0.04176635, + -0.011617351, + 0.00993387, + 0.0039882455, + 0.024263496, + -0.0028041305, + 0.018985918, + 0.036983125, + -0.021497779, + 0.0031097624, + 0.007535579, + -0.008170225, + 0.07124062, + 0.019814298, + 0.018838948, + -0.022058938, + -0.020455623, + 0.037383955, + -0.009138893, + -0.0034838691, + 0.020094877, + 0.005898862, + 0.011730919, + -0.025145318, + 0.015124602, + -0.009813622, + -0.02461088, + -0.024383744, + -0.0031498454, + 0.009579806, + -0.008885035, + 0.0043957545, + 0.012539257, + -0.015338377, + 0.0037110054, + -0.002179506, + -0.00825039, + 0.0041886596, + -0.030676754, + 0.00880487, + -0.01412253, + 0.028726054, + 0.0024951585, + -0.008931799, + -0.001174094, + 0.041285355, + 0.017689906, + -0.0012208574, + 0.03981565, + 0.000121396806, + 0.03535309, + -0.017409325, + -0.014750496, + 0.011082913, + 0.010802332, + -0.022873957, + -0.026414609, + -0.019600522, + -0.036154747, + -0.041285355, + -0.045347083, + 0.006961058, + 0.0025486024, + -0.013494565, + 0.003971544, + 0.018919114, + 0.00559156, + -0.01468369, + -0.010394824, + 0.017275715, + -0.044812646, + 0.013788506, + -0.03618147, + -0.0070078215, + -0.03366961, + 0.038319223, + 0.004024988, + -0.040884525, + 0.0053744446, + -0.0040884526, + 0.02084309, + 0.035005704, + 0.029875098, + 0.007381928, + 0.02096334, + 0.014269501, + 0.007909685, + 0.015418543, + 0.03872005, + 0.0031398246, + 0.03436438, + 0.015926259, + -0.0036575617, + 0.007983171, + 0.022179186, + 0.01970741, + 0.0035707154, + 0.008464165, + -0.016460698, + -0.005858779, + 0.0041452367, + 0.020068156, + 0.026067225, + 0.026641745, + 0.0036408603, + 0.015351738, + -0.008076698, + -0.0024767872, + -0.011590629, + 0.016995136, + 0.0074019693, + 0.0041051535, + -0.0053610834, + 0.013815228, + -0.060444962, + 0.060551852, + -0.010635321, + -0.009960593, + -0.0024250136, + -0.0022045576, + -0.0153651, + -0.01635381, + -0.013307512, + -0.003971544, + 0.0008759777, + -0.021457694, + 0.009459557, + 0.014977631, + 0.009526362, + 0.03872005, + -0.013060334, + 0.011817765, + -0.010989386, + -0.0018137498, + 0.021217197, + -0.013922116, + -0.0081301415, + 0.0013962198, + 0.008410722, + 0.0023114453, + -0.0016793051, + -0.014737134, + 0.005551477, + 0.011082913, + 0.019480273, + -0.04473248, + 0.052829217, + 0.015685761, + 0.0037343872, + -0.008530971, + -0.00021440159, + 0.0044692396, + 0.0013227346, + 0.04040353, + 0.008043296, + -0.020749563, + -0.022767069, + -0.024423826, + 0.009038687, + 0.0005945625, + 0.006640395, + 0.019360024, + -0.0075689815, + 0.008384, + -0.019653967, + -0.0058754804, + 0.0011072892, + 0.018117456, + -0.010247853, + -0.017850237, + -0.006136019, + 0.008918438, + -0.0017060271, + -0.004348991, + 0.029180327, + 0.024477271, + 0.023194619, + -0.013314192, + -0.01496427, + 0.04107158, + 0.009980634, + -0.027764065, + 0.034204047, + -0.010775611, + 0.016834805, + 0.025359094, + 0.017395964, + -0.04935537, + -0.004071751, + 0.020348735, + 0.012773073, + -0.020522429, + -0.008450804, + 0.011363493, + 0.015952982, + -0.0151646845, + -0.0046195504, + -0.035593584, + 0.017409325, + -0.003300156, + 0.022580015, + 0.024236774, + 0.0005440414, + -0.00033444143, + -0.0056817466, + 2.6715388e-06, + 0.01985438, + 0.033509277, + -0.006483404, + 0.037998557, + 0.0059022023, + 0.019052723, + 0.008424083, + -0.024263496, + 0.024210053, + -0.0343911, + 0.01678136, + 0.013641536, + -0.0015565513, + -0.029527713, + 0.034310933, + 0.011510463, + 0.030088872, + 0.0324404, + 0.010601918, + -0.012138428, + 0.008557692, + 0.005187391, + 0.0063698357, + 0.01760974, + 0.017850237, + -0.019319942, + 0.005665045, + -0.003704325, + 0.027897676, + 0.018678617, + 0.009900468, + -0.03551342, + 0.007241638, + -0.016514141, + 0.016313726, + -0.012806476, + -0.000117952186, + 0.04083108, + 0.0346316, + -0.005341042, + 0.006667117, + -0.016594307, + 0.03297484, + -0.014590164, + -0.015538791, + -0.039067436, + 0.032386955, + 0.02069612, + -0.0017552956, + 0.021404251, + 0.023448477, + 0.009345989, + 0.034070436, + 0.0029711425, + 0.010167687, + 0.020335374, + -0.017703267, + 0.016741278, + 0.02307437, + 0.008991923, + 0.018999279, + -0.06974419, + -0.011777682, + 0.0035907568, + 0.011343451, + 0.013240707, + 0.021043506, + -0.039494984, + -0.00839736, + 0.012953446, + 0.006920975, + 0.011677476, + -0.022526572, + 0.016393892, + 0.014336306, + -0.030783642, + -0.01328079, + 0.02824506, + 0.019333303, + 0.016607668, + -0.039067436, + 0.0064633624, + -0.044411816, + 0.009446195, + -0.008457485, + -0.010802332, + -0.0003665912, + 0.038078725, + -0.0091789765, + -0.025385816, + 0.004766521, + 0.008043296, + -0.017289076, + 0.030676754, + 0.017823515, + -0.02419669, + 0.012833198, + -0.005117246, + 0.029287215, + 0.010815694, + 0.025372455, + 0.007702591, + -0.013788506, + -0.023167897, + -0.023822583, + 0.015685761, + 0.01509788, + -0.0047498196, + -0.038078725, + 0.0072884015, + 0.023982916, + -0.00657025, + 0.014750496, + 0.028859664, + 0.011383534, + 0.016153395, + 0.016393892, + 0.009392752, + -0.032066293, + -0.011296688, + -0.011797724, + -0.04753828, + 0.06178106, + 0.016955053, + 0.006640395, + 0.01734252, + 0.0075689815, + 0.015765928, + -0.026134029, + 0.011310049, + 0.014229418, + 0.043797214, + 0.033375666, + -0.0011540526, + 0.0047732014, + 0.014349666, + -0.006276309, + -0.037277065, + 0.0006780685, + -0.017422685, + -0.007061265, + 0.020736203, + 0.0038746772, + 0.019333303, + 0.029207049, + -0.010829055, + 0.004455879, + -0.008337236, + 0.015552153, + 0.0056249625, + -0.0021177116, + -0.00045803026, + -0.027176185, + -0.010027397, + -0.004586148, + 0.017409325, + 0.010922581, + 0.012358884, + -0.0052374946, + -0.012245316, + 0.01734252, + 0.011370174, + 0.0011482071, + -0.0015006023, + -0.03580736, + 0.0073151235, + -0.016193477, + -0.0028442135, + 0.060070857, + 0.032520566, + 0.03035609, + 0.03260073, + -0.012946766, + 0.008697982, + 0.034337655, + 0.009593166, + 0.016607668, + 0.054993693, + 0.0084374435, + 0.0068474896, + -0.00895184, + -0.00038767647, + -0.027443403, + -0.028298505, + -0.0056216223, + -0.0074286913, + -0.010381463, + -0.0024684365, + -0.0025636335, + -0.010154326, + -0.025238845, + -0.025332373, + -0.026721912, + -0.007061265, + 0.0128131565 + ], + "index": 0, + "object": "embedding" + } + ], + "model": "text-embedding-3-small", + "object": "list", + "usage": { + "prompt_tokens": 19, + "total_tokens": 19 + } + } + }, + "is_streaming": false + }, + "id_normalization_mapping": {} +} diff --git a/tests/integration/responses/recordings/39e480e3e6716f7e2e41be654eae0f0250ac22a51707a110eabec377358f6b8f.json b/tests/integration/responses/recordings/39e480e3e6716f7e2e41be654eae0f0250ac22a51707a110eabec377358f6b8f.json new file mode 100644 index 000000000..c2b46f420 --- /dev/null +++ b/tests/integration/responses/recordings/39e480e3e6716f7e2e41be654eae0f0250ac22a51707a110eabec377358f6b8f.json @@ -0,0 +1,1578 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[client_with_models-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/embeddings", + "headers": {}, + "body": { + "model": "text-embedding-3-small", + "input": [ + "Llama 4 Maverick model architecture details" + ], + "encoding_format": "float" + }, + "endpoint": "/v1/embeddings", + "model": "text-embedding-3-small" + }, + "response": { + "body": { + "__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse", + "__data__": { + "data": [ + { + "embedding": [ + 0.028073093, + -0.0048557497, + 0.011718783, + -0.039163698, + -0.01782006, + 0.030441398, + -0.012592457, + -0.002559648, + -0.0072601577, + -0.029430537, + -0.04049226, + -0.026383508, + 0.0018213574, + -0.024015201, + -0.049387846, + -0.019264149, + 0.026426831, + -0.023220953, + -0.01020249, + 0.03096127, + -0.022744404, + 0.015798334, + 0.023769706, + -0.026831176, + 0.00615904, + 0.020376097, + -0.046557434, + -0.054095577, + 0.024101848, + -0.037170853, + 0.0181522, + -0.05086082, + 0.0016119644, + -0.012281978, + -0.06885417, + -0.009819806, + 0.035466827, + -0.0077403174, + -0.039308105, + 0.04066555, + -0.020130603, + -0.014845236, + -0.015379549, + 0.03015258, + 0.047250595, + -0.008281851, + -0.030730216, + 0.034571495, + -0.037373025, + 0.025964722, + 0.00090571464, + 0.0069930013, + 0.021646896, + 0.06810324, + -0.042687275, + -0.035842292, + 0.007899167, + -0.043004975, + 0.06365545, + 0.03904817, + -0.0022076513, + -0.04586427, + 0.018542103, + -0.022975458, + 0.0037185294, + -0.010975077, + -0.07353301, + 0.0010433544, + 0.016173799, + -0.020130603, + -0.05270925, + 0.035149127, + -0.03093239, + -0.013097888, + 0.0025253508, + -0.01605827, + 0.021993477, + 0.0007428033, + 0.021849068, + 0.025502613, + -0.02802977, + 0.021184787, + 0.0029441367, + -0.036882035, + 0.004909903, + 0.0067872186, + 0.0034297116, + -0.001960351, + -0.049012385, + -0.06250018, + -0.027336607, + 0.01280185, + 0.012101467, + 0.0056319474, + 0.06111385, + 0.018022232, + -0.020043956, + -0.026239099, + -0.0037690725, + 0.043669254, + 0.0067763883, + -0.001879121, + 0.007660893, + -0.0056463885, + 0.01604383, + -0.056666058, + 0.03936587, + -0.029228363, + -0.051727273, + 0.03549571, + -0.05995858, + -0.05415334, + -0.0029531622, + 0.014332584, + -0.05577072, + -0.00037072474, + -0.009256612, + -0.0285352, + -0.0375752, + -0.03483143, + -0.023163188, + 0.004960446, + 0.01182709, + -0.038672708, + 0.037199736, + 0.00095851417, + 0.029387213, + -0.050976343, + -0.007364854, + 0.010188049, + -0.0055344715, + 0.0019711817, + 0.0428028, + -0.01699693, + 0.007863065, + -0.043871425, + -0.016173799, + 0.010895653, + -0.005321468, + 0.0034315167, + 0.014209837, + -0.039827976, + 0.044622354, + -0.058110144, + 0.021459164, + 0.061344907, + 0.012599678, + -0.015697248, + -0.037661843, + 0.012780189, + -0.036477692, + 0.012505812, + -0.015523958, + -0.009877569, + 0.0072276657, + 0.007278209, + 0.025906958, + -0.03335846, + 0.014989645, + 0.0009183504, + 0.0065669953, + -0.021545809, + 0.022397822, + -0.02125699, + -0.03838389, + 0.01896089, + -0.029127277, + 0.027452134, + -0.09860241, + -0.023220953, + 0.025661463, + 0.009675397, + 0.0078919465, + -0.058543373, + 0.0073937364, + -0.034600373, + 0.042225167, + -0.045719862, + -0.025156032, + -0.046615195, + -0.0068449825, + 0.0115743745, + 0.006433417, + -0.047452766, + -0.042571746, + 0.019379675, + -0.014758591, + 0.0440736, + -0.016823638, + 0.03665098, + -0.03644881, + 0.050312065, + 0.024087407, + 0.019639611, + 0.041069895, + -0.014433671, + -0.016866961, + -0.042282928, + 0.051438455, + -0.022296736, + -0.003841277, + 0.026542358, + 0.060882796, + -0.05920765, + 0.011711563, + 0.020939292, + -0.022470027, + 0.006440637, + -0.005595845, + -0.021025937, + 0.038008425, + -0.0070724264, + 0.05230491, + 0.032203186, + -0.0372575, + 0.0055669635, + -0.013350604, + 0.00083215634, + -0.031567786, + 0.015480635, + -0.0187876, + -0.0024116288, + -0.026686767, + 0.030874625, + -0.033127405, + 0.037199736, + 0.019913988, + -0.05525085, + 0.028982868, + 0.020332774, + -0.0058124587, + 0.0012753112, + 0.0093938, + -0.016765874, + -0.009545429, + -0.03468702, + -0.012736866, + -0.024130728, + 0.022397822, + -0.011567154, + -0.043380436, + -0.03237648, + 0.0007188856, + -0.013198975, + 0.026860056, + 0.02446287, + -0.011198911, + -0.06735232, + 0.03483143, + 0.04150312, + 0.023639739, + -0.002400798, + -0.023711942, + -0.0011173639, + -0.0071518514, + 0.024693923, + -0.06735232, + 0.029806, + 0.0076103495, + -0.024535073, + -0.0002475259, + 0.0030831303, + -0.028477438, + 0.042600628, + -0.024520634, + 0.037344143, + -0.019076416, + 0.018296609, + -0.003335846, + -0.027235521, + -0.004848529, + -0.022729963, + -0.03370504, + 0.0004539855, + -0.014780252, + -0.04652855, + 0.00032085855, + -0.03174108, + 0.039336987, + 0.03823948, + 0.0022979067, + -0.03483143, + 0.03953916, + 0.0683343, + -0.014318143, + 0.008281851, + 0.0689697, + 0.026730089, + -0.0032889128, + -0.017098015, + 0.0496189, + -0.0025740888, + -0.022989899, + -0.009827026, + -0.010021978, + 0.013899358, + -0.0027672357, + -0.023466447, + 0.022787726, + 0.042976093, + 0.015957184, + 0.012094246, + -0.008693417, + -0.047914878, + -0.0038845998, + 0.06313557, + 0.0058774427, + -0.007660893, + 0.0067872186, + -0.030903507, + -0.026022486, + -0.02056383, + -0.026282422, + -0.036708746, + -0.014130412, + -0.02319207, + -0.006628369, + -0.0034116604, + 0.018989772, + -0.03633328, + 0.013097888, + -0.025286, + 0.012108687, + 0.007144631, + -0.023134308, + -0.03826836, + -0.024722805, + -0.024347343, + 0.016939165, + -0.052564844, + 0.005736644, + -0.04525775, + -0.0067041838, + -0.035842292, + 0.012686322, + -0.02187795, + -0.033618394, + 0.007386516, + -0.010924534, + 0.0074803815, + -0.03338734, + -0.03078798, + 0.0043792003, + 0.029531622, + 0.008469583, + 0.0031715806, + -0.018686512, + -0.032607533, + 0.011740444, + -0.0013556386, + -0.012664662, + -0.051929444, + 0.06775666, + 0.009827026, + 0.0026733698, + 0.022787726, + 0.023625297, + -0.019610729, + -0.02657124, + 0.006707794, + 0.0022238973, + 0.046297498, + 0.046644077, + 0.036882035, + 0.013422809, + 0.031654432, + 0.035755645, + -0.01199316, + -0.035149127, + -0.0071085286, + 0.037661843, + 0.018209964, + -0.041560885, + -0.007473161, + -0.013141211, + 0.024405105, + 0.007632011, + -0.016505938, + 0.023942998, + -0.007682554, + 0.044911172, + -0.031481143, + 0.041272067, + -0.019913988, + 0.010960637, + 0.020650474, + 0.014736929, + -0.038123954, + -0.009552649, + -0.009624854, + -0.00600019, + -0.015841657, + 0.0037726827, + -0.01718466, + 0.011545492, + -0.013704405, + 0.060189635, + 0.00093595026, + 0.03205878, + 0.034253795, + 0.019090857, + -0.04589315, + -0.019524084, + 0.011213352, + -0.038932644, + -0.020953733, + 0.028000887, + -0.026513476, + 0.00069090637, + -0.019408558, + 0.06371321, + -0.10264585, + 0.00502182, + -0.01683808, + -0.0067691677, + -0.045344397, + 0.009379359, + -0.030759098, + 0.045286633, + 0.07722989, + -0.014975204, + -0.0023827471, + -0.026109131, + -0.0016498718, + -0.0051806695, + 0.0151629355, + 0.035437945, + 0.012693543, + 0.008642874, + -0.061980303, + 0.0008632945, + -0.023090985, + 0.014520315, + 0.019350793, + -0.028506318, + 0.014830795, + -0.070298254, + 0.012549134, + -0.021906832, + -0.004177028, + 0.025083827, + -0.011437186, + 0.025242677, + 0.036708746, + -0.046037562, + 0.020708237, + -0.030354753, + 0.014224278, + 0.012289198, + -0.034773666, + -0.032982994, + -0.0013294645, + 0.0031011812, + 0.07399513, + 0.00037546316, + -0.020953733, + 0.05239155, + -0.018989772, + 0.05932318, + -0.00053070276, + 0.041387595, + -0.022614436, + 0.0022094564, + -0.0009147402, + -0.012744086, + -0.03985686, + 0.03743079, + 0.005252874, + 0.011271115, + -0.015841657, + -0.031163443, + -0.018339932, + 0.039105933, + -0.032174304, + -0.0070543755, + 0.011928176, + -0.019827344, + -0.016289325, + 0.03257865, + -0.057648037, + -0.045979798, + 0.02381303, + 0.006220414, + 0.011480508, + 0.011646579, + 0.099930964, + -0.023841912, + 0.041763056, + -0.022599995, + 0.056435004, + -0.04112766, + 0.03226095, + -0.007949711, + -0.018282168, + 0.036997564, + -0.023293158, + -0.015047409, + -0.053922288, + 0.005790797, + -0.014570859, + -0.010505748, + -0.0027654306, + -0.009632074, + 0.001222963, + 0.002949552, + 0.01621712, + -0.010007538, + 0.027957564, + -0.0066355895, + 0.0029766287, + -0.029834881, + 0.0061048865, + -0.00021266469, + 0.034138266, + -0.005718593, + -0.012866834, + 0.009509327, + 0.053922288, + 0.024867214, + -0.010982297, + 0.012072585, + -0.01150217, + -0.011971499, + -0.0063106692, + 0.036882035, + 0.015697248, + -0.029083954, + -0.017762296, + -0.02609469, + 0.035120245, + -0.01506185, + -0.04875245, + -0.017386833, + -0.058225673, + -0.010960637, + -0.008455141, + 0.036593217, + -0.0178345, + -0.026860056, + 0.019422999, + 0.015957184, + 0.0027690409, + 0.012245876, + -0.017401274, + -0.0010162777, + -0.026210217, + -0.022051241, + 0.019365234, + 0.037401907, + 0.033618394, + 0.03731526, + -0.025820313, + 0.011040061, + -0.007552586, + 0.010123065, + -0.00071798306, + -0.032636415, + -0.012570796, + 0.010361339, + 0.005317858, + 0.0129101565, + 0.027394371, + 0.019885106, + 0.0020253349, + -0.015668366, + 0.0047654943, + -0.0049171234, + 0.004891852, + 0.03399386, + -0.022628875, + 0.00316075, + -0.01587054, + 0.019827344, + 0.0131195495, + 0.011718783, + -0.0073792953, + 0.048665803, + 0.014433671, + 0.054990914, + -0.0080363555, + -0.028881783, + -0.022961017, + 0.0055525224, + 0.0027455743, + -0.020621592, + 0.009978656, + 0.011379422, + -0.009899231, + -0.0045813727, + 0.0024062134, + 0.0022076513, + -0.054471042, + -0.003032587, + -0.0050073788, + 0.0042817243, + -0.030730216, + 0.00012511679, + -0.021300314, + -0.016866961, + -0.0146647245, + 0.020722678, + 0.009827026, + -0.007530925, + 0.012729646, + -0.016621465, + -0.0055561326, + -0.029546063, + 0.018079996, + -0.029055072, + -0.019567408, + -0.021762423, + 0.052564844, + -0.032174304, + -0.021459164, + -0.032520887, + -0.0008411819, + -0.002610191, + -0.035235774, + 0.028607406, + -0.017170219, + 0.00078747986, + -0.0052384334, + 0.02105482, + 0.0369398, + -0.014960763, + -0.0070074424, + -0.014115971, + -0.013162872, + -0.008404599, + 0.071684584, + -0.0042600627, + -0.0076681133, + 0.042340692, + 0.035669, + -0.009444343, + 0.021776864, + 0.031683315, + 0.013206195, + -0.021040378, + 0.023798589, + 0.045719862, + 0.01166824, + -0.008953352, + 0.011235014, + -0.009148304, + 0.00045782138, + 0.05510644, + 0.031567786, + -0.03760408, + -0.01021693, + 0.007198784, + -0.043813664, + 0.0077691996, + 0.01796447, + 0.03564012, + -0.012274757, + 0.022744404, + -0.065215066, + 0.021184787, + 0.009509327, + -0.007964151, + 0.007516484, + -0.059554234, + 0.011661019, + -0.023076544, + 0.038008425, + -0.013365044, + 0.001011765, + -0.0052817557, + 0.017718973, + 0.0055236407, + 0.042051874, + 0.0027004466, + 0.012736866, + -0.011978719, + -0.0049676667, + 0.016347088, + -0.00025722838, + -0.0003274021, + 0.012404725, + 0.0041373153, + 0.013350604, + -0.039423633, + -0.008563449, + -0.0014215253, + -0.009415461, + -0.014325364, + 0.029271686, + -0.018051114, + -0.0005329591, + -0.014065428, + -0.025329323, + 0.018932007, + -0.049503375, + 0.031019034, + -0.0115743745, + -0.0024675874, + 0.019076416, + 0.022903252, + -0.06186478, + -0.013574437, + 0.013596099, + -0.000482416, + -0.009834247, + 0.0047113406, + -0.03237648, + -0.015783893, + -0.016159358, + -0.010195269, + -0.018383253, + 0.017791178, + -0.042254046, + -0.006029072, + 0.009682617, + -0.012079805, + 0.034224913, + -0.023697503, + -0.014700827, + 0.011090605, + -0.028795136, + -0.046268616, + 0.017227983, + -0.004606644, + -0.015480635, + 0.015769454, + 0.010346899, + -0.017747855, + 0.016144916, + -0.009039998, + -0.024693923, + 0.011133927, + 0.03093239, + -0.025069388, + -0.021805745, + 0.0017040251, + -0.018773159, + -0.034658138, + -0.022397822, + -0.024910538, + -0.0045958133, + -0.011466067, + 0.0048088166, + -0.026080249, + 0.020924851, + 0.054066695, + -0.018932007, + 0.02818862, + 0.0017518606, + 0.045719862, + -0.008621212, + -0.020982614, + 0.0134083675, + 0.0052276026, + -0.009480445, + -0.031394497, + -0.018570986, + 0.028304147, + 0.0035632898, + 0.012166451, + 0.0004941492, + 0.024202934, + 0.01070792, + 0.01683808, + -0.012014821, + -0.002660734, + -0.002965798, + -0.005263705, + 0.0011245843, + 0.07018273, + -0.013819933, + -0.012087026, + -0.044651236, + -0.013213416, + -0.029271686, + 0.017574564, + 0.008527346, + 0.008816164, + 0.016462617, + -0.028000887, + 0.031798843, + -0.01587054, + -0.0017482503, + 0.025849195, + -0.027813155, + -0.0048088166, + -0.006516452, + -0.026932262, + 0.01816664, + 0.010354118, + -0.018455459, + -0.0142676, + -0.028592965, + -0.026383508, + -0.023249835, + 0.0027311335, + 0.042860564, + 0.007978592, + -0.093576975, + -0.0006579631, + 0.027697628, + 0.013249517, + 0.016361529, + 0.046932895, + 0.038037308, + 0.025069388, + 0.0076681133, + -0.008946132, + -0.04323603, + 0.004306996, + 0.018556545, + -0.026672326, + 0.00842626, + -0.018282168, + 0.023249835, + 0.02335092, + -0.008693417, + -4.1743202e-05, + -0.01701137, + -0.01621712, + -0.0031950471, + -0.013653862, + -0.015365108, + -0.030499162, + -0.025502613, + 0.0032455903, + 0.07411065, + -0.033791684, + 0.0066536404, + 0.015523958, + -0.0107873455, + 0.04101213, + 0.010823448, + 0.0037799033, + -0.0033502867, + -0.053546824, + 0.007000222, + -0.005541692, + -0.009617633, + -0.025170473, + 0.021747982, + 0.018570986, + -0.004198689, + -0.033820566, + 0.014339805, + 0.013365044, + -0.030990152, + -0.013711626, + 0.013697186, + -0.04080996, + -0.00059433293, + -0.005043481, + -0.016144916, + 0.020347215, + -0.016549261, + -0.00080327457, + 0.005617507, + 0.00793527, + -0.011704342, + 0.03113456, + -0.014700827, + -0.010390221, + -0.019076416, + -0.0017157583, + 0.017386833, + -0.014722489, + -0.0027437692, + 0.019495202, + -0.018354373, + 0.05008101, + 0.0095309885, + -0.0017653989, + -0.01927859, + -0.02010172, + 0.007884727, + 0.027957564, + -0.010115844, + -0.006516452, + 0.0080363555, + -2.8670245e-05, + 0.027827596, + -0.038643826, + -0.014679166, + 0.03318517, + 0.015220699, + 0.0038448873, + 0.02563258, + 0.0027618203, + -0.006339551, + 0.044102482, + 0.020823766, + 0.010570732, + 0.009422681, + 0.066428095, + -0.022599995, + -0.009516547, + -0.014007664, + 0.023856351, + 0.031798843, + 0.01718466, + -0.008361276, + -0.01831105, + 0.0040109577, + 0.0003131868, + 0.012296419, + 0.012188112, + 0.025026064, + 0.03552459, + 0.018686512, + -0.0005275438, + 0.013545556, + 0.060651742, + 0.007812522, + 0.01865763, + 0.03399386, + 0.015249581, + 0.045662098, + -0.0013520285, + -0.005982139, + 0.0036174431, + -0.048665803, + 0.0443913, + -0.008166323, + -0.019697376, + 0.017314628, + 0.05481762, + 0.03162555, + -0.001409792, + -0.0062962286, + 0.022975458, + -0.002254584, + 0.01475137, + -0.030556925, + -0.009855908, + 0.023466447, + 0.011314438, + -0.029517181, + -0.005628337, + 0.025906958, + 0.037806254, + 0.03194325, + 0.01652038, + 0.0029152548, + 0.037373025, + 0.014144853, + -0.003599392, + -0.021618014, + -0.011747665, + 0.038528297, + 0.008953352, + 0.02512715, + 0.02563258, + -0.0076247905, + 0.007422618, + -0.016910283, + -0.044593472, + 0.003518162, + 0.017906705, + -0.0101591665, + 1.4328071e-05, + -0.0026047758, + -0.0363044, + 0.009494886, + 0.026701208, + 0.0055128103, + -0.016390411, + -0.020145044, + 0.021545809, + -0.007956931, + -0.012895715, + 0.0022293124, + -0.042976093, + 0.013386706, + 0.012166451, + 0.019755138, + -0.0072168354, + 0.018094437, + 0.020217247, + -0.01135054, + 0.021329196, + -0.005946037, + 0.07110695, + -0.0016697281, + 0.08023359, + 0.002254584, + 0.026787853, + 0.041907467, + 0.033329576, + -0.0068774745, + 0.032347597, + -0.00096663716, + 0.008346835, + -0.007913608, + -0.03448485, + 0.015206258, + 0.00971872, + 0.0010803592, + 0.009942553, + 0.0068016597, + 0.01782006, + -2.812025e-05, + 0.033791684, + -0.009935333, + -0.033445105, + -0.017950028, + -0.019812902, + -0.019090857, + 0.052940305, + 0.023452006, + 0.007083257, + 0.012289198, + -0.00502543, + 0.021011496, + -0.028650727, + -0.011292777, + -0.018123318, + -0.009061659, + 0.013018463, + -0.0073684645, + -0.014195396, + -0.03679539, + 0.022802167, + -0.031047916, + 0.0075237043, + -0.05943871, + -0.015827216, + -0.032174304, + 0.028434115, + -0.0029784339, + 0.029416095, + 0.028015329, + 0.016072711, + -0.054528803, + -0.04554657, + -0.05527973, + -0.0036553505, + 0.0075814677, + -0.032723058, + 0.0077547585, + -0.03318517, + -0.038297243, + -0.0010316211, + -0.0035073315, + -0.0030849352, + 0.029141719, + 0.035871174, + -0.03777737, + -0.04170529, + 0.040405612, + -0.010758464, + 0.00420952, + -0.01943744, + 0.016303767, + -0.012188112, + -0.0017076354, + 0.017762296, + 0.025820313, + -0.03838389, + -0.008606771, + -0.001362859, + 0.009985876, + 0.00437559, + 0.0108667705, + -0.008159104, + 0.0076753334, + 0.035235774, + 0.014108751, + 0.00038877586, + -0.032203186, + 0.022253413, + -0.0039134813, + 0.012751306, + -0.0017031226, + 0.043149382, + 0.0033936093, + -0.0050615324, + -0.021502487, + 0.008722298, + -0.026311303, + 0.0095959725, + 0.0010334263, + -0.027668748, + 0.022152327, + -0.015105172, + -0.024982741, + 0.016953606, + 0.046586316, + 0.0053395196, + -0.0006502914, + 0.010029199, + 0.026181335, + 0.009899231, + 0.0014134023, + 0.0038521076, + -0.037084207, + -0.0035416286, + -0.017646769, + -0.07613238, + 0.00697134, + 0.004628306, + -0.019885106, + -0.031567786, + -0.012693543, + 0.00015151653, + 0.043900307, + -0.018830922, + -0.022354499, + -0.003032587, + -0.009162745, + -0.0019982583, + 0.019394116, + 0.00039960654, + 0.008274631, + -0.0006471324, + -0.026484594, + 0.0041734176, + 0.03988574, + -0.0030037053, + 0.0146647245, + 0.009350477, + -0.0008366691, + -0.055019796, + 0.0048846314, + -0.033964977, + -0.016592585, + -0.0067980494, + -0.009444343, + 0.013928239, + 0.0061048865, + -0.03517801, + -0.0020812934, + 0.009964215, + 0.005108465, + -0.042398456, + -0.019567408, + 0.001775327, + -0.05623283, + 0.0035271877, + 0.012707984, + 0.008462362, + 0.0062168036, + 0.022470027, + 0.014917441, + 0.014960763, + -0.048896857, + -0.0051590083, + 0.01506185, + -0.026773412, + 0.09086209, + 0.003841277, + 0.031683315, + -0.02381303, + -0.029690472, + 0.01070792, + 0.02609469, + 0.013336163, + -0.0151629355, + 0.005310638, + 0.0110761635, + -0.012874055, + -0.013162872, + -0.0109317545, + -0.0006457786, + -0.030528044, + 0.0075237043, + 0.018527662, + 0.018830922, + 0.0010902872, + 0.044333536, + 0.01248415, + -0.0058918837, + 0.01231086, + -0.01540843, + -0.0030091207, + -0.018296609, + -0.013105108, + -0.0004864775, + 0.035149127, + -0.019971753, + -0.004310606, + 0.006140989, + 0.041560885, + -0.008512905, + -0.019264149, + 0.039827976, + 0.006675302, + 0.007231276, + -0.0017816449, + -0.0012256706, + -0.014845236, + 0.020145044, + -0.012578016, + -0.035437945, + -0.019394116, + -0.00891003, + -0.029387213, + -0.030441398, + 0.016953606, + -0.0040723314, + -0.016361529, + 0.00026693085, + 0.017877823, + 0.037170853, + -0.008953352, + -0.015538399, + 0.033733923, + -0.030412516, + 0.018051114, + -0.015769454, + -0.027437693, + -0.029777117, + 0.024520634, + 0.006191532, + -0.027134433, + 0.0034802547, + -0.0038376667, + 0.020534948, + 0.027293283, + 0.017560123, + 0.03000817, + 0.021632455, + 0.03254977, + -0.031654432, + 0.033098523, + 0.025690345, + -0.006920797, + -0.0023213732, + 0.020924851, + -0.026990024, + 0.0005559743, + 0.035726763, + 0.0062781773, + -0.011379422, + 0.030845743, + -0.031076798, + -0.0256037, + 0.012585237, + 0.022874372, + 0.031654432, + 0.0249683, + 0.010332458, + 0.013307281, + -0.018412136, + 0.0012662857, + -0.0129751405, + 0.00040615007, + 0.005707762, + 0.026527917, + -0.025314882, + 0.01101118, + -0.043467082, + 0.04716395, + -0.0018574597, + -0.008224088, + 0.010267474, + -0.01911974, + 0.019321913, + -0.008686196, + -0.0028773476, + -0.008671755, + 0.006364823, + -0.024665043, + 0.016260443, + -0.021574691, + -0.018036673, + 0.027596543, + -0.002545207, + 0.009307154, + -0.010975077, + -0.0039315326, + 0.023755265, + -0.029748235, + 0.0024603668, + -0.0018520443, + -0.001182348, + -0.014152073, + 0.019379675, + -0.0064117555, + 0.010751244, + 0.0012942648, + 0.005917155, + -0.045806505, + 0.053720113, + -0.0062962286, + 0.0017717169, + -0.012931818, + 0.010946196, + 0.011632138, + 0.0047763246, + 0.04519999, + 0.027365489, + -0.0105129685, + -0.00972594, + -0.007321532, + 0.012823511, + 0.0010830668, + -0.013921019, + 0.0027004466, + -0.019004213, + 0.014780252, + -0.01475137, + -0.014621402, + -0.020953733, + 0.013791051, + -0.0340805, + -0.010130285, + -0.013986003, + -0.0036571557, + -0.014946322, + -0.008317953, + 0.030730216, + 0.041965228, + 0.017386833, + -0.013906578, + -0.012375844, + 0.035264656, + -0.0030704944, + -0.03855718, + 0.03480255, + -0.008216867, + 5.066299e-06, + 0.029806, + 0.019249707, + -0.047770467, + 0.0035091366, + -0.004989328, + -0.014780252, + 0.00067511166, + -0.012520253, + 0.013040124, + 0.012050924, + 0.026369067, + -0.009206068, + 0.010238592, + -0.01832549, + -0.007964151, + 0.033618394, + 0.0048376983, + 0.012541913, + -0.021141464, + 0.01637597, + -0.005101245, + 0.0076464517, + 0.01734351, + -0.0014883144, + 0.050514236, + 0.0026119961, + -0.013198975, + -0.004119264, + -0.0062168036, + 0.022412263, + -0.026499035, + -0.013646642, + 0.0021516928, + 0.0009657346, + 0.0044333534, + 0.026296863, + 0.03792178, + 0.0007283624, + 0.04098325, + -0.0006390094, + -0.019148622, + 0.013726067, + 0.02238338, + -0.010650157, + 0.0062781773, + 0.0042564524, + 0.007964151, + -0.016736994, + 0.0030560535, + 0.026051367, + 0.018253285, + -0.00015670623, + -0.023755265, + 0.028737374, + -0.008873927, + 0.016621465, + -0.0017726193, + -0.013661083, + 0.046904013, + 0.0030217564, + 0.008411819, + 0.017863382, + -0.019394116, + 0.01070792, + 0.0012626754, + -0.04476676, + -0.0114299655, + 0.03564012, + 0.009379359, + -0.00020544424, + 0.027119994, + 0.007877506, + 0.021675777, + 0.043900307, + 0.01699693, + -0.00316075, + 0.0018737057, + -0.017242424, + 0.032145422, + 0.020621592, + -0.0042239605, + -0.010801787, + -0.06689021, + -0.0074298386, + -0.018022232, + 0.00014587556, + 0.003971245, + 0.024202934, + -0.06423308, + 0.004779935, + 0.00972594, + -0.0074587204, + 0.0075598066, + -0.03682427, + 0.0023123478, + 0.03416715, + -0.015523958, + -0.016982488, + 0.014650284, + 0.0060543437, + -0.0037943441, + -0.01540843, + 0.015278462, + -0.03306964, + 0.0013258543, + -0.0020704628, + -0.016823638, + 0.009682617, + 0.06660139, + 0.004386421, + -0.023942998, + -0.014888559, + 0.014469773, + -0.016274884, + -0.0013023879, + 0.031192325, + -0.013747728, + 0.008375716, + -0.021488046, + 0.0187876, + 0.026802294, + 0.027322166, + 0.018022232, + -0.0016805587, + -0.012953479, + -0.02544485, + 0.011307218, + 0.0034315167, + -0.012924598, + -0.021170346, + 0.02904063, + 0.017776737, + 0.011155589, + -0.005964088, + 0.028130855, + -0.019812902, + -0.008086899, + 0.01862875, + 0.019827344, + -0.021098142, + 0.011711563, + -0.014144853, + -0.03841277, + 0.034946956, + 0.0028935936, + 0.0058449507, + 0.042167403, + 0.027784275, + 0.006707794, + -0.023553094, + 0.0064875702, + 0.058774427, + 0.031567786, + 0.024029642, + 0.0038232259, + 0.022585554, + -0.00032198674, + -0.016505938, + -0.027972005, + -0.0036011972, + -0.008289072, + 0.0023394243, + 0.023524212, + 0.021011496, + 0.028130855, + 0.019509643, + -0.032347597, + 0.004130095, + -0.00048196473, + -0.005220382, + 0.0031553346, + 0.002072268, + 0.044506826, + -0.019350793, + -0.0062601264, + -0.012787409, + -0.012260317, + 0.021329196, + 0.003924312, + -0.029719355, + 0.01021693, + 0.003337651, + 0.013343384, + -0.007639231, + 0.0074298386, + -0.024592837, + -0.014404789, + -0.007855845, + -0.022455586, + 0.023726383, + 0.019798461, + 0.008000254, + 0.014700827, + -0.005483928, + -0.008166323, + 0.026195776, + -0.0046896795, + 0.00615904, + 0.059669763, + 0.010657378, + 0.009003895, + -0.022802167, + -0.013271179, + -0.013769389, + -0.042542864, + 0.014354246, + -0.0036553505, + 0.022946576, + -0.003956804, + -0.019264149, + -0.016910283, + -0.023567535, + -0.013848814, + -0.016173799, + 0.0058232895, + 0.006144599 + ], + "index": 0, + "object": "embedding" + } + ], + "model": "text-embedding-3-small", + "object": "list", + "usage": { + "prompt_tokens": 9, + "total_tokens": 9 + } + } + }, + "is_streaming": false + }, + "id_normalization_mapping": { + "file-1": "file-d7cee10212814cfcb75cc091eee11688" + } +} diff --git a/tests/integration/responses/recordings/50209c4013650ac6b04e2ac8a5dc865d7e6b17a175e6674499c870797be5951e.json b/tests/integration/responses/recordings/50209c4013650ac6b04e2ac8a5dc865d7e6b17a175e6674499c870797be5951e.json new file mode 100644 index 000000000..957ef40aa --- /dev/null +++ b/tests/integration/responses/recordings/50209c4013650ac6b04e2ac8a5dc865d7e6b17a175e6674499c870797be5951e.json @@ -0,0 +1,320 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[client_with_models-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/chat/completions", + "headers": {}, + "body": { + "model": "gpt-4o", + "messages": [ + { + "role": "user", + "content": "How many experts does the Llama 4 Maverick model have?" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "index": 0, + "id": "call_qzY7B7EArJwpMqLVer8kcAey", + "type": "function", + "function": { + "name": "knowledge_search", + "arguments": "{\"query\":\"Llama 4 Maverick model number of experts\"}" + } + } + ] + }, + { + "role": "tool", + "tool_call_id": "call_qzY7B7EArJwpMqLVer8kcAey", + "content": [ + { + "type": "text", + "text": "knowledge_search tool found 1 chunks:\nBEGIN of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "[1] document_id: file-d7cee10212814cfcb75cc091eee11688, score: 2.5781234969335522, attributes: {'filename': 'test_sequential_file_search.txt', 'document_id': 'file-d7cee10212814cfcb75cc091eee11688', 'token_count': 19.0, 'metadata_token_count': 11.0} (cite as <|file-d7cee10212814cfcb75cc091eee11688|>)\nThe Llama 4 Maverick model has 128 experts in its mixture of experts architecture.\n" + }, + { + "type": "text", + "text": "END of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "The above results were retrieved to help answer the user's query: \"Llama 4 Maverick model number of experts\". Use them as supporting information only in answering this query. Cite sources immediately at the end of sentences before punctuation, using `<|file-id|>` format (e.g., 'This is a fact <|file-Cn3MSNn72ENTiiq11Qda4A|>.'). Do not add extra punctuation. Use only the file IDs provided (do not invent new ones).\n" + } + ] + }, + { + "role": "assistant", + "content": "The Llama 4 Maverick model has 128 experts in its mixture of experts architecture <|file-d7cee10212814cfcb75cc091eee11688|>." + }, + { + "role": "user", + "content": "Can you tell me more about the architecture?" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "index": 0, + "id": "call_1ALB4oPNgIKUK5psXuwbr75h", + "type": "function", + "function": { + "name": "knowledge_search", + "arguments": "{\"query\":\"Llama 4 Maverick model architecture details\"}" + } + } + ] + }, + { + "role": "tool", + "tool_call_id": "call_1ALB4oPNgIKUK5psXuwbr75h", + "content": [ + { + "type": "text", + "text": "knowledge_search tool found 1 chunks:\nBEGIN of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "[1] document_id: file-d7cee10212814cfcb75cc091eee11688, score: 1.932386575539943, attributes: {'filename': 'test_sequential_file_search.txt', 'document_id': 'file-d7cee10212814cfcb75cc091eee11688', 'token_count': 19.0, 'metadata_token_count': 11.0} (cite as <|file-d7cee10212814cfcb75cc091eee11688|>)\nThe Llama 4 Maverick model has 128 experts in its mixture of experts architecture.\n" + }, + { + "type": "text", + "text": "END of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "The above results were retrieved to help answer the user's query: \"Llama 4 Maverick model architecture details\". Use them as supporting information only in answering this query. Cite sources immediately at the end of sentences before punctuation, using `<|file-id|>` format (e.g., 'This is a fact <|file-Cn3MSNn72ENTiiq11Qda4A|>.'). Do not add extra punctuation. Use only the file IDs provided (do not invent new ones).\n" + } + ] + } + ], + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "knowledge_search", + "description": "Search for information in a database.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The query to search for. Can be a natural language sentence or keywords." + } + }, + "required": [ + "query" + ] + } + } + } + ] + }, + "endpoint": "/v1/chat/completions", + "model": "gpt-4o" + }, + "response": { + "body": [ + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-50209c401365", + "choices": [ + { + "delta": { + "content": "", + "function_call": null, + "refusal": null, + "role": "assistant", + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "FPdd0hyfwnG" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-50209c401365", + "choices": [ + { + "delta": { + "content": "I couldn't find additional details about the Llama ", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "TijBcbYdXSvW" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-50209c401365", + "choices": [ + { + "delta": { + "content": "4 Maverick model architecture beyond the fact that it has ", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "bUHW7YseLUn1" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-50209c401365", + "choices": [ + { + "delta": { + "content": "128 experts in its mixture of experts architecture <|file-1|>.", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "NDFSRSZfwv" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-50209c401365", + "choices": [ + { + "delta": { + "content": " If you want,", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "LzI485bM9I" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-50209c401365", + "choices": [ + { + "delta": { + "content": " I can try searching for specific aspects of the architecture.", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "WyGg1LbEhyM" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-50209c401365", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": "stop", + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "bWmmqTA" + } + } + ], + "is_streaming": true + }, + "id_normalization_mapping": { + "file-1": "file-d7cee10212814cfcb75cc091eee11688" + } +} diff --git a/tests/integration/responses/recordings/62eb194000dcab5aeb873eed2403c963fca80beab1f1f2fafc6d8a18c6b4df6e.json b/tests/integration/responses/recordings/62eb194000dcab5aeb873eed2403c963fca80beab1f1f2fafc6d8a18c6b4df6e.json new file mode 100644 index 000000000..4924e152b --- /dev/null +++ b/tests/integration/responses/recordings/62eb194000dcab5aeb873eed2403c963fca80beab1f1f2fafc6d8a18c6b4df6e.json @@ -0,0 +1,1576 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[openai_client-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/embeddings", + "headers": {}, + "body": { + "model": "text-embedding-3-small", + "input": [ + "The Llama 4 Maverick model has 128 experts in its mixture of experts architecture." + ], + "encoding_format": "float" + }, + "endpoint": "/v1/embeddings", + "model": "text-embedding-3-small" + }, + "response": { + "body": { + "__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse", + "__data__": { + "data": [ + { + "embedding": [ + 0.028752776, + -0.00195571, + 0.021898607, + -0.0251854, + 0.009339308, + 0.009893788, + -0.0037444078, + 0.017850237, + -0.014322945, + -0.038960546, + -0.025693119, + -0.038372666, + -0.0075155376, + -0.0022897338, + -0.007936408, + 0.022165826, + 0.00405505, + -0.04096469, + 0.002486808, + 0.017115384, + -0.03163874, + -0.0025035092, + 0.025425898, + -0.03484537, + 0.015311656, + 0.0017803473, + -0.042461116, + -0.050798353, + 0.020428902, + -0.0012475792, + 0.05395154, + -0.040243197, + 0.011724238, + -0.0060758945, + -0.04008287, + -0.00978022, + 0.008223669, + 0.013300831, + -0.033883385, + -0.0010104222, + -0.01775671, + 0.008196946, + -0.021016784, + 0.048660602, + 0.042835224, + -0.034444544, + -0.057078004, + 0.017088663, + -0.014630247, + 0.036448687, + 0.025399176, + 0.035673752, + 0.027603734, + 0.03944154, + -0.013340915, + -0.02489146, + 0.0024283538, + -0.0064232796, + 0.03521948, + 0.026200835, + 0.02167147, + -0.037971836, + 0.025105236, + 0.006206164, + -0.006947697, + -0.06461358, + -0.043129165, + 0.003533973, + 0.00033089242, + -0.017061941, + -0.086953096, + 0.026721912, + -0.01075557, + -0.021364167, + 0.014082448, + -0.029714765, + 0.012051582, + -0.008624497, + 0.008357278, + -0.004041689, + -0.0045727873, + 0.05229478, + 0.026641745, + -0.040644027, + -0.0029043378, + -0.0014847362, + 0.009753497, + -0.0019390087, + -0.055848796, + -0.07011829, + -0.00921906, + 0.0017886979, + 0.025800005, + -0.022058938, + 0.022580015, + -0.009913829, + -0.0018254406, + -0.010601918, + -0.0029978645, + 0.049863085, + -0.03954843, + 0.038613163, + 0.010034078, + 0.0004613705, + 0.004151917, + -0.022459766, + -0.0086579, + -0.040937968, + -0.029019997, + 0.021751637, + -0.022312796, + -0.029500991, + -0.0142962225, + -0.014336306, + -0.055741906, + 0.004389074, + -0.016861526, + -0.02068276, + -0.037009846, + -0.03169219, + -0.025011709, + -0.032761063, + 0.010795652, + -0.038907103, + 0.034872096, + 0.00048475218, + -0.012639464, + -0.04053714, + 0.0014922518, + -0.01941347, + -0.029875098, + -0.014376388, + 0.032066293, + 0.00027431714, + 0.013167222, + -0.035326365, + -0.05077163, + -0.0005114741, + -0.009058728, + -0.03174563, + 0.025759922, + 0.00027598723, + 0.00041773863, + -0.039254487, + 0.018651893, + -0.0133743165, + -0.03203957, + -0.016607668, + -0.05397826, + -0.011931334, + -0.066644445, + -0.006119318, + -0.021083588, + -0.008985243, + -0.02208566, + -0.005324341, + -0.010094202, + -0.018972557, + 0.029688044, + -0.015124602, + -0.00657025, + 0.0035039107, + 0.02391611, + 0.005705128, + 0.018344592, + 0.04502642, + -0.06135351, + 0.027283072, + -0.09272503, + -0.075035125, + 0.030863808, + 2.2833665e-05, + 0.015284933, + -0.038506273, + 0.030008707, + 0.006069214, + 0.038265776, + -0.0287795, + -0.034043714, + -0.04168618, + -0.010835735, + -0.0031715569, + 0.0097869, + -0.0042187218, + -0.05884165, + -0.013922116, + -0.0065936316, + 0.0081101, + -0.018023929, + -0.012960127, + -0.028325226, + 0.052081004, + 0.011102954, + 0.044759203, + 0.04751156, + -0.020669399, + -0.0022964142, + -0.022446405, + 0.004178639, + 0.00349389, + -0.027349876, + 0.022593375, + 0.03481865, + -0.06990452, + -0.009499639, + 0.035299644, + 0.010655362, + 0.016580947, + -0.019787576, + -0.0071280696, + 0.061567284, + -0.0042955475, + 0.060605295, + 0.01970741, + -0.04072419, + -0.010080841, + -0.0024383743, + -0.024290217, + -0.012432369, + 0.04457215, + -0.028726054, + -0.024263496, + -0.033161893, + 0.021070227, + -0.028325226, + 0.024210053, + 0.018838948, + -0.038773492, + 0.0015056127, + 0.016714556, + -0.02923377, + -0.011624032, + -0.02151114, + -0.037277065, + -0.009419474, + -0.05229478, + -0.016888248, + 0.00081543584, + 0.021083588, + -0.013922116, + -0.018919114, + -0.022379601, + 0.010548474, + -0.039334655, + 0.03465832, + 0.015431904, + -0.01941347, + -0.03885366, + 0.010548474, + 0.02616075, + 0.037651174, + 0.018491562, + -0.028619166, + -0.00503374, + -0.0091789765, + 0.040216476, + -0.058360655, + -0.032814506, + 0.00058788207, + -0.014737134, + -0.0075823423, + 0.016099952, + -0.051653456, + 0.03382994, + -0.06680478, + 0.031398244, + -0.022392962, + 0.037143458, + -0.028699333, + -0.04657629, + -0.031077582, + -0.013407719, + -0.039494984, + -0.0005181546, + -0.012111707, + -0.04654957, + -0.030596588, + -0.022245992, + 0.025278928, + 0.057024557, + -0.010875818, + -0.03997598, + 0.043182608, + 0.052054282, + 0.0056383233, + 0.00237825, + 0.08428091, + 0.010735528, + 0.011310049, + -0.03676935, + 0.022713624, + -0.017422685, + -0.0036809433, + 0.02294076, + 0.009272504, + 0.0162202, + -0.037090015, + -0.029474268, + -0.0078362, + 0.027577013, + 0.011283327, + -0.01734252, + -0.0060792346, + -0.07214916, + 0.022125743, + 0.017663183, + -0.0010012366, + 0.0005490518, + -0.009285864, + -0.025225485, + 0.0061159777, + -0.005017039, + -0.023715697, + -0.00950632, + -0.017168827, + -0.008477527, + -0.0016375522, + -0.033883385, + 0.011777682, + -0.030970694, + -0.0142427785, + -0.036715906, + 0.029420825, + -0.004532704, + -0.047084007, + -0.00936603, + -0.01732916, + 0.0007114709, + 0.009452877, + -0.066056564, + -0.00042650677, + 0.004292207, + -0.021417612, + -0.009913829, + 0.032761063, + -0.052481834, + -0.024490632, + -0.015618958, + 0.0027974502, + 0.015431904, + -0.017369242, + -0.022032216, + 0.018411396, + 0.01258602, + 0.00894516, + -0.013254068, + -0.02601378, + 0.0146035245, + 0.050023418, + 0.016594307, + -0.048045997, + -0.0631706, + 0.037704617, + 0.01230544, + 0.026788717, + -0.02306101, + 0.0014162613, + 0.019213054, + -0.031077582, + -0.0058554388, + -0.02264682, + 0.022606738, + 0.021297364, + 0.026775355, + -0.0078762835, + 0.03241368, + 0.07118717, + -0.042541284, + -0.019774215, + -0.03145169, + 0.031852517, + 0.006530167, + -0.030222481, + -0.0067740045, + -0.0018655234, + 0.005508054, + 0.037383955, + 0.002627098, + 0.00044967968, + 0.0018371315, + 0.0126327835, + -0.033429112, + 0.03366961, + -0.00866458, + 0.0142427785, + 0.007067946, + 0.0022429705, + -0.049141593, + -0.01300689, + -0.02976821, + 0.01580601, + -0.0112766465, + 0.023862667, + -0.03326878, + 0.053604156, + -0.016607668, + 0.054405812, + 0.006503445, + 0.018852308, + 0.042274065, + -0.022299435, + -0.034204047, + -0.011403576, + 0.021324085, + -0.0439041, + -0.006329753, + 0.0029845035, + 0.001425447, + -0.00070813065, + 0.025800005, + 0.036715906, + -0.08529634, + -0.0096666515, + -0.02502507, + -0.019961268, + -0.005705128, + 0.021163754, + -0.021177115, + 0.041525852, + 0.0352462, + 0.00028538165, + 0.009673332, + -0.012926725, + -0.0173158, + 0.022072298, + 0.0034738486, + 0.002460086, + -0.021604665, + -0.013340915, + -0.047858942, + 0.013708341, + -0.0097935805, + 0.03535309, + 0.0145500805, + -0.036822792, + 0.014469915, + -0.07979163, + 0.008624497, + 5.422669e-05, + -0.026307723, + 0.0054412493, + 0.031104306, + 0.03187924, + 0.0024817975, + -0.023368312, + -0.023568725, + -0.040243197, + 0.012278718, + 0.019547079, + -0.024116525, + -0.021791719, + -0.03455143, + 0.016033147, + 0.03425749, + -0.031959407, + -0.03102414, + 0.045079865, + 0.010374782, + 0.0692632, + -0.0021327427, + 0.025946977, + -0.010615279, + -0.02248649, + -0.037517563, + -0.006125998, + -0.04839338, + 0.0060057496, + -0.0025051793, + 0.026414609, + 0.016514141, + 0.012485813, + -0.035032425, + 0.022259353, + 0.008143502, + 0.0013202295, + -0.016019786, + -0.031932686, + 0.013167222, + 0.033322223, + -0.07059929, + -0.038212333, + 0.017208911, + -0.002546932, + 0.020656038, + -0.015391821, + 0.06712544, + -0.010662043, + 0.04740467, + -0.024490632, + 0.042274065, + -0.015993064, + 0.011390215, + 0.012826517, + -0.014723773, + 0.026080586, + -0.03591425, + -0.011109634, + -0.045133308, + -0.028565723, + -0.025065154, + 0.01901264, + -0.048420105, + -0.057345223, + -0.02041554, + -0.026307723, + 0.036742628, + -0.021644749, + -0.008083378, + 0.012492494, + 0.028726054, + -0.03901399, + -0.0145500805, + -0.007482135, + 0.006737262, + -0.00028350277, + -0.021243919, + 0.021471055, + 0.022900678, + 0.022553293, + 0.0058788205, + 0.031772353, + -0.00097200955, + -0.047431394, + -0.009466237, + 0.032199904, + 0.0105351135, + -0.020108238, + -0.027109379, + -0.0027323153, + 0.035406534, + -0.03356272, + -0.040590584, + -0.04206029, + -0.046202186, + -0.032066293, + -0.012639464, + 0.043583438, + -0.036822792, + -0.019506995, + -0.016407253, + 0.022259353, + 0.02669519, + -0.010114243, + -0.007729313, + -0.00086595694, + -0.0030713496, + -0.00391476, + 0.038506273, + 0.024490632, + 0.022259353, + 0.030489702, + -0.03468504, + 0.008784829, + -0.0039381417, + -0.024397105, + -0.040189754, + -0.062155165, + 0.007495496, + -0.029313937, + 0.0363418, + 0.0034905497, + 0.011290007, + -0.012879961, + 0.006446661, + 0.009345989, + 0.005401166, + -0.008457485, + 0.028191617, + 0.01734252, + 0.020722842, + 0.014175974, + 0.012238636, + -0.00080040476, + 0.019119527, + 0.0054445895, + 0.0065502087, + 0.043556716, + 0.017957125, + 0.033188615, + -0.0031231234, + -0.006790706, + -0.013087057, + -0.020869812, + 0.016273644, + -0.03789167, + -0.013033613, + -0.003061329, + -0.0046896953, + -0.015325016, + -0.00085760636, + 0.010601918, + -0.030783642, + 0.03145169, + -0.0035874166, + 0.0135012455, + -0.013815228, + -0.0032834548, + -0.03340239, + 0.0003905992, + -0.0019072765, + 0.008424083, + 0.03075692, + 0.017222272, + 0.020562511, + -0.026134029, + -0.014990992, + -0.053069714, + 0.031531855, + -0.011978097, + -0.031157749, + -0.03035609, + -0.008597775, + -0.013314192, + -0.023194619, + -0.040617306, + -0.0047331187, + 0.00908545, + -0.054779917, + 0.01664775, + -0.0066170134, + 0.021003423, + 0.001159898, + 0.0008513434, + 0.03297484, + -0.021096949, + 0.011477061, + 0.007976491, + -0.01174428, + -0.017596379, + 0.06739266, + 0.011717558, + -0.009092131, + 0.046068575, + 0.024717769, + -0.006306371, + 0.0062562674, + 0.04072419, + 0.039201044, + -0.03663574, + 0.023020927, + 0.0704924, + 0.007802798, + 5.1564937e-05, + -0.006443321, + -0.0067072, + -0.0035740556, + 0.036315076, + -0.0012534247, + -0.018344592, + -0.01187789, + 0.009272504, + -0.022539932, + -0.0023849306, + 0.035272922, + 0.023328228, + -0.0047565, + 0.025399176, + -0.04208701, + 0.02670855, + -0.009566444, + -0.0248781, + 0.024838017, + -0.030917251, + -0.012819837, + 0.008911758, + 0.04713745, + -0.006961058, + 0.017729988, + -0.028031286, + 0.03230679, + -0.00021586294, + 0.05272233, + -0.020776287, + 0.010955984, + 0.0060358117, + 0.005828717, + -0.00027181194, + -0.0017102023, + -0.010034078, + -0.0042287423, + -0.0034153943, + 0.024103165, + -0.036368523, + -0.007087987, + -0.018424759, + 0.02153786, + -0.007989852, + 0.02781751, + -0.006780685, + -0.007702591, + 0.008851633, + -0.016300365, + 0.009940551, + -0.05761244, + 0.01537846, + 0.0030312669, + -0.014349666, + 0.0139889205, + 0.011904611, + -0.055047136, + -0.0296346, + 0.027977841, + -0.024089804, + -0.02308773, + -0.03588753, + -0.02555951, + -0.030863808, + 0.02000135, + 0.018999279, + 0.009987314, + 0.00052191236, + -0.001313549, + -0.019239776, + -0.0045260238, + -0.017409325, + 0.03286795, + -0.022205908, + -0.030035429, + 0.02040218, + -0.06584279, + -0.057772774, + 0.016714556, + -0.016287005, + 0.010401504, + 0.0307302, + 0.026508136, + 0.012900002, + 0.02307437, + -0.002779079, + -0.011971416, + -0.013020251, + 0.0056817466, + 0.0005461291, + -0.033803217, + -0.016527502, + -0.011517144, + 0.01986774, + -0.032894675, + -0.033108447, + -0.008283793, + -0.008824911, + -0.01314718, + -0.018999279, + 0.013387677, + 0.034043714, + -0.01229876, + 0.024944905, + -0.023648892, + 0.019627243, + 0.006446661, + -0.04978292, + 0.011684156, + 0.022994205, + -0.0053477227, + -0.035753917, + -0.014670329, + 0.00895184, + -0.018812226, + 0.017235633, + 0.0030713496, + 0.045133308, + 0.014256139, + 0.030650033, + 0.00078495615, + 0.01845148, + -0.00030521434, + -0.0044124555, + 0.0081101, + 0.034791928, + -0.045507416, + -0.036101304, + -0.048714045, + -0.012272038, + -0.009325947, + -0.009466237, + -0.025359094, + 0.050103582, + 0.0052642166, + -0.021337446, + 0.02069612, + 0.023034288, + -0.029153606, + 0.010508392, + -0.02992854, + 0.0020158342, + 0.0045527457, + -0.04262145, + -0.005404507, + -0.0029293895, + -0.016099952, + 0.017636461, + -0.015084519, + 0.00074153306, + -0.027764065, + -0.0011515474, + 0.013494565, + -0.0023648893, + -0.081127726, + -0.021497779, + 0.027082657, + 0.020054795, + 0.019480273, + 0.027176185, + 0.029313937, + 0.03564703, + -0.013855311, + -0.0075689815, + -0.00963993, + -0.004208701, + 0.02570648, + 0.00629301, + -0.01257934, + -0.0287795, + -0.0030663393, + 0.039361376, + -0.049622588, + 0.019052723, + -0.0015314996, + -0.02279379, + -0.02446391, + -0.053577434, + -0.023515282, + 0.011650753, + -0.032493845, + 0.010976025, + 0.03775806, + 0.008210307, + 0.0029961944, + 0.028405393, + -0.0025519426, + 0.054298922, + 0.0011031139, + -0.00040082866, + -0.016955053, + -0.057719328, + -0.008056656, + -0.0061827824, + -0.004175299, + -0.0148173, + 0.026668468, + 0.0039181, + -0.024517354, + -0.048313215, + 0.025773283, + 0.015699122, + -0.027042575, + -0.02096334, + 0.0037510884, + -0.044385094, + 0.016834805, + -0.017262354, + -0.019600522, + 0.008303834, + 0.008257071, + 0.008283793, + 0.010421545, + -0.010508392, + -0.032520566, + 0.009098811, + -0.0173158, + -0.011944694, + -0.012392286, + 0.017088663, + 0.005758572, + 0.02111031, + -0.023969555, + -0.00037953464, + -0.018464841, + 0.047725335, + -0.005665045, + -0.0036508811, + 0.003467168, + 0.0046496126, + 0.020121599, + 0.01679472, + -0.026615024, + 0.0139889205, + -0.01230544, + -0.008764787, + 0.0007114709, + -0.046896953, + -0.021764997, + 0.035272922, + -0.0014162613, + -0.007535579, + 0.040296644, + 0.0062295455, + 0.0307302, + 0.017355882, + 0.016567586, + 0.010782291, + 0.0151646845, + 0.049301926, + -0.021016784, + -0.003787831, + -0.0410983, + 0.013167222, + 0.011209842, + 0.018651893, + -0.013367636, + -0.01718219, + -0.020522429, + -0.010468309, + 0.005090524, + -0.015952982, + 0.015458626, + 0.041338798, + 0.006680478, + 0.022165826, + 0.011436978, + 0.1124458, + 0.027790789, + 0.016834805, + 0.012639464, + 0.030142317, + 0.012786435, + 0.0047598407, + 0.03286795, + -0.010775611, + -0.040617306, + 0.027870953, + 0.01147038, + -0.0023281465, + 0.034204047, + 0.046496127, + 0.051199183, + -0.025906892, + -0.043984268, + 0.04906143, + 0.005437909, + -0.023328228, + -0.008163544, + -0.0036141386, + 0.013033613, + 0.027069297, + -0.030650033, + 0.0060859155, + 0.030783642, + 0.064346366, + 0.04473248, + -0.013527968, + -0.020014713, + 0.03941482, + -0.009472918, + -0.029500991, + -0.028512279, + -0.0013352605, + 0.021738274, + 0.013608133, + 0.013541329, + 0.017155467, + -0.027790789, + 0.031131027, + 0.003381992, + -0.026895603, + 0.025198763, + -0.0074420525, + 0.0020642676, + -0.029046718, + -0.002571984, + -0.02181844, + 0.01019441, + 0.0195738, + 0.025292289, + -0.02570648, + -0.029741487, + 0.025145318, + -0.00072608446, + -0.034150604, + -0.00021231394, + -0.027710622, + -0.02320798, + 0.0020425562, + -0.007355206, + -0.017836876, + -0.0064366404, + 0.021150393, + -0.008377319, + 0.024544075, + -0.015739206, + 0.07129406, + -0.015244851, + 0.032734342, + 0.033482555, + 0.047057286, + 0.02586681, + 0.041205186, + 0.009773539, + 0.003340239, + 0.017529573, + 0.033135172, + 0.012726311, + -0.040456973, + 0.035166036, + 0.028699333, + 0.009773539, + 0.006784025, + 0.014937549, + -0.018157538, + -0.00097367965, + 0.017102024, + 0.007903005, + -0.02054915, + -0.02880622, + -0.03385666, + -0.04302228, + 0.04179307, + 0.0044959616, + 0.025639674, + 0.018611811, + -0.0026872223, + 0.022954121, + -0.032066293, + -0.004940213, + -0.009132213, + -0.012512535, + 0.00922574, + -0.010381463, + -0.01620684, + -0.021644749, + 0.018531645, + -0.038506273, + -0.0010889178, + -0.05787966, + -0.017115384, + -0.04556086, + 0.012358884, + -0.012773073, + 0.017876958, + 0.031237915, + 0.012078304, + -0.06204828, + -0.06691167, + -0.06327748, + -0.016727917, + -0.01468369, + -0.020803008, + 0.027162824, + -0.012338842, + -0.04107158, + 0.008116781, + 0.00071940396, + 0.012839879, + 0.027496846, + 0.017436048, + -0.057719328, + -0.046095297, + 0.02936738, + -0.02669519, + 0.009292545, + -0.027055936, + -0.008824911, + -0.02880622, + 0.017970486, + 0.012559298, + 0.027496846, + -0.04125863, + -0.034070436, + -0.0040583904, + 0.014844022, + 0.016808081, + 0.021471055, + -0.0104081845, + -0.0078362, + 0.016433975, + 0.01593962, + -0.028699333, + -0.03300156, + 0.0145500805, + 0.013207304, + 0.026174113, + -0.0017486151, + 0.053176604, + -0.011831126, + -0.003747748, + -0.017048579, + 0.008530971, + -0.017957125, + 0.022326156, + -0.029447546, + -0.024824657, + 0.02249985, + -0.0039214403, + -0.021564582, + 0.02570648, + 0.034097157, + 0.0044358373, + -0.021230558, + 0.026775355, + 0.02195205, + 0.0064333, + 0.013935477, + 0.02473113, + -0.021003423, + -0.012839879, + 0.008697982, + -0.030329369, + 0.018705338, + -0.02084309, + -0.018772142, + -0.02069612, + 0.021310724, + -0.003230011, + 0.018638533, + -0.0034337656, + -0.049996696, + 0.0044391775, + -0.014483276, + 0.013775146, + 0.020509068, + -0.02196541, + -0.013454482, + -0.0128666, + -0.010468309, + 0.005521415, + 0.014763856, + -0.014095808, + 0.00937271, + -0.010949303, + -0.012525896, + -0.057398666, + 0.00086595694, + -0.024637602, + 0.024704408, + -0.01843812, + -0.0276839, + 0.015231489, + 0.009993995, + -0.028726054, + -0.00067472825, + 0.0022546612, + 0.009633249, + -0.034872096, + -0.014830661, + -0.022286074, + -0.04176635, + -0.011617351, + 0.00993387, + 0.0039882455, + 0.024263496, + -0.0028041305, + 0.018985918, + 0.036983125, + -0.021497779, + 0.0031097624, + 0.007535579, + -0.008170225, + 0.07124062, + 0.019814298, + 0.018838948, + -0.022058938, + -0.020455623, + 0.037383955, + -0.009138893, + -0.0034838691, + 0.020094877, + 0.005898862, + 0.011730919, + -0.025145318, + 0.015124602, + -0.009813622, + -0.02461088, + -0.024383744, + -0.0031498454, + 0.009579806, + -0.008885035, + 0.0043957545, + 0.012539257, + -0.015338377, + 0.0037110054, + -0.002179506, + -0.00825039, + 0.0041886596, + -0.030676754, + 0.00880487, + -0.01412253, + 0.028726054, + 0.0024951585, + -0.008931799, + -0.001174094, + 0.041285355, + 0.017689906, + -0.0012208574, + 0.03981565, + 0.000121396806, + 0.03535309, + -0.017409325, + -0.014750496, + 0.011082913, + 0.010802332, + -0.022873957, + -0.026414609, + -0.019600522, + -0.036154747, + -0.041285355, + -0.045347083, + 0.006961058, + 0.0025486024, + -0.013494565, + 0.003971544, + 0.018919114, + 0.00559156, + -0.01468369, + -0.010394824, + 0.017275715, + -0.044812646, + 0.013788506, + -0.03618147, + -0.0070078215, + -0.03366961, + 0.038319223, + 0.004024988, + -0.040884525, + 0.0053744446, + -0.0040884526, + 0.02084309, + 0.035005704, + 0.029875098, + 0.007381928, + 0.02096334, + 0.014269501, + 0.007909685, + 0.015418543, + 0.03872005, + 0.0031398246, + 0.03436438, + 0.015926259, + -0.0036575617, + 0.007983171, + 0.022179186, + 0.01970741, + 0.0035707154, + 0.008464165, + -0.016460698, + -0.005858779, + 0.0041452367, + 0.020068156, + 0.026067225, + 0.026641745, + 0.0036408603, + 0.015351738, + -0.008076698, + -0.0024767872, + -0.011590629, + 0.016995136, + 0.0074019693, + 0.0041051535, + -0.0053610834, + 0.013815228, + -0.060444962, + 0.060551852, + -0.010635321, + -0.009960593, + -0.0024250136, + -0.0022045576, + -0.0153651, + -0.01635381, + -0.013307512, + -0.003971544, + 0.0008759777, + -0.021457694, + 0.009459557, + 0.014977631, + 0.009526362, + 0.03872005, + -0.013060334, + 0.011817765, + -0.010989386, + -0.0018137498, + 0.021217197, + -0.013922116, + -0.0081301415, + 0.0013962198, + 0.008410722, + 0.0023114453, + -0.0016793051, + -0.014737134, + 0.005551477, + 0.011082913, + 0.019480273, + -0.04473248, + 0.052829217, + 0.015685761, + 0.0037343872, + -0.008530971, + -0.00021440159, + 0.0044692396, + 0.0013227346, + 0.04040353, + 0.008043296, + -0.020749563, + -0.022767069, + -0.024423826, + 0.009038687, + 0.0005945625, + 0.006640395, + 0.019360024, + -0.0075689815, + 0.008384, + -0.019653967, + -0.0058754804, + 0.0011072892, + 0.018117456, + -0.010247853, + -0.017850237, + -0.006136019, + 0.008918438, + -0.0017060271, + -0.004348991, + 0.029180327, + 0.024477271, + 0.023194619, + -0.013314192, + -0.01496427, + 0.04107158, + 0.009980634, + -0.027764065, + 0.034204047, + -0.010775611, + 0.016834805, + 0.025359094, + 0.017395964, + -0.04935537, + -0.004071751, + 0.020348735, + 0.012773073, + -0.020522429, + -0.008450804, + 0.011363493, + 0.015952982, + -0.0151646845, + -0.0046195504, + -0.035593584, + 0.017409325, + -0.003300156, + 0.022580015, + 0.024236774, + 0.0005440414, + -0.00033444143, + -0.0056817466, + 2.6715388e-06, + 0.01985438, + 0.033509277, + -0.006483404, + 0.037998557, + 0.0059022023, + 0.019052723, + 0.008424083, + -0.024263496, + 0.024210053, + -0.0343911, + 0.01678136, + 0.013641536, + -0.0015565513, + -0.029527713, + 0.034310933, + 0.011510463, + 0.030088872, + 0.0324404, + 0.010601918, + -0.012138428, + 0.008557692, + 0.005187391, + 0.0063698357, + 0.01760974, + 0.017850237, + -0.019319942, + 0.005665045, + -0.003704325, + 0.027897676, + 0.018678617, + 0.009900468, + -0.03551342, + 0.007241638, + -0.016514141, + 0.016313726, + -0.012806476, + -0.000117952186, + 0.04083108, + 0.0346316, + -0.005341042, + 0.006667117, + -0.016594307, + 0.03297484, + -0.014590164, + -0.015538791, + -0.039067436, + 0.032386955, + 0.02069612, + -0.0017552956, + 0.021404251, + 0.023448477, + 0.009345989, + 0.034070436, + 0.0029711425, + 0.010167687, + 0.020335374, + -0.017703267, + 0.016741278, + 0.02307437, + 0.008991923, + 0.018999279, + -0.06974419, + -0.011777682, + 0.0035907568, + 0.011343451, + 0.013240707, + 0.021043506, + -0.039494984, + -0.00839736, + 0.012953446, + 0.006920975, + 0.011677476, + -0.022526572, + 0.016393892, + 0.014336306, + -0.030783642, + -0.01328079, + 0.02824506, + 0.019333303, + 0.016607668, + -0.039067436, + 0.0064633624, + -0.044411816, + 0.009446195, + -0.008457485, + -0.010802332, + -0.0003665912, + 0.038078725, + -0.0091789765, + -0.025385816, + 0.004766521, + 0.008043296, + -0.017289076, + 0.030676754, + 0.017823515, + -0.02419669, + 0.012833198, + -0.005117246, + 0.029287215, + 0.010815694, + 0.025372455, + 0.007702591, + -0.013788506, + -0.023167897, + -0.023822583, + 0.015685761, + 0.01509788, + -0.0047498196, + -0.038078725, + 0.0072884015, + 0.023982916, + -0.00657025, + 0.014750496, + 0.028859664, + 0.011383534, + 0.016153395, + 0.016393892, + 0.009392752, + -0.032066293, + -0.011296688, + -0.011797724, + -0.04753828, + 0.06178106, + 0.016955053, + 0.006640395, + 0.01734252, + 0.0075689815, + 0.015765928, + -0.026134029, + 0.011310049, + 0.014229418, + 0.043797214, + 0.033375666, + -0.0011540526, + 0.0047732014, + 0.014349666, + -0.006276309, + -0.037277065, + 0.0006780685, + -0.017422685, + -0.007061265, + 0.020736203, + 0.0038746772, + 0.019333303, + 0.029207049, + -0.010829055, + 0.004455879, + -0.008337236, + 0.015552153, + 0.0056249625, + -0.0021177116, + -0.00045803026, + -0.027176185, + -0.010027397, + -0.004586148, + 0.017409325, + 0.010922581, + 0.012358884, + -0.0052374946, + -0.012245316, + 0.01734252, + 0.011370174, + 0.0011482071, + -0.0015006023, + -0.03580736, + 0.0073151235, + -0.016193477, + -0.0028442135, + 0.060070857, + 0.032520566, + 0.03035609, + 0.03260073, + -0.012946766, + 0.008697982, + 0.034337655, + 0.009593166, + 0.016607668, + 0.054993693, + 0.0084374435, + 0.0068474896, + -0.00895184, + -0.00038767647, + -0.027443403, + -0.028298505, + -0.0056216223, + -0.0074286913, + -0.010381463, + -0.0024684365, + -0.0025636335, + -0.010154326, + -0.025238845, + -0.025332373, + -0.026721912, + -0.007061265, + 0.0128131565 + ], + "index": 0, + "object": "embedding" + } + ], + "model": "text-embedding-3-small", + "object": "list", + "usage": { + "prompt_tokens": 19, + "total_tokens": 19 + } + } + }, + "is_streaming": false + }, + "id_normalization_mapping": {} +} diff --git a/tests/integration/responses/recordings/89162a717e49e05ac08013f01ad908e76817c51903b5c476b2109f7763820499.json b/tests/integration/responses/recordings/89162a717e49e05ac08013f01ad908e76817c51903b5c476b2109f7763820499.json new file mode 100644 index 000000000..0c003e009 --- /dev/null +++ b/tests/integration/responses/recordings/89162a717e49e05ac08013f01ad908e76817c51903b5c476b2109f7763820499.json @@ -0,0 +1,629 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[client_with_models-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/chat/completions", + "headers": {}, + "body": { + "model": "gpt-4o", + "messages": [ + { + "role": "user", + "content": "How many experts does the Llama 4 Maverick model have?" + } + ], + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "knowledge_search", + "description": "Search for information in a database.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The query to search for. Can be a natural language sentence or keywords." + } + }, + "required": [ + "query" + ] + } + } + } + ] + }, + "endpoint": "/v1/chat/completions", + "model": "gpt-4o" + }, + "response": { + "body": [ + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": "assistant", + "tool_calls": [ + { + "index": 0, + "id": "call_qzY7B7EArJwpMqLVer8kcAey", + "function": { + "arguments": "", + "name": "knowledge_search" + }, + "type": "function" + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "D" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "{\"", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "query", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "CJiqORTeQGxjIe" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "\":\"", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "r6QBYD3kczuPXu" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "L", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "QV" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "lama", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "pvqVubGjwneskfA" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " ", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "xn" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "4", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "kd" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " Maver", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "sNtz6TsVqvTPw" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "ick", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " model", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "fBQyzFK1sVnTB" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " number", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "0U81JnFrkqiB" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " of", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " experts", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "s9gav9QCV2Y" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "\"}", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-89162a717e49", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": "tool_calls", + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "g" + } + } + ], + "is_streaming": true + }, + "id_normalization_mapping": {} +} diff --git a/tests/integration/responses/recordings/aa12bef744323396e0b385f349b77b3636e695370c53821fb87e135f387c95ec.json b/tests/integration/responses/recordings/aa12bef744323396e0b385f349b77b3636e695370c53821fb87e135f387c95ec.json new file mode 100644 index 000000000..419d9ebee --- /dev/null +++ b/tests/integration/responses/recordings/aa12bef744323396e0b385f349b77b3636e695370c53821fb87e135f387c95ec.json @@ -0,0 +1,1576 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[client_with_models-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/embeddings", + "headers": {}, + "body": { + "model": "text-embedding-3-small", + "input": [ + "Llama 4 Maverick model number of experts" + ], + "encoding_format": "float" + }, + "endpoint": "/v1/embeddings", + "model": "text-embedding-3-small" + }, + "response": { + "body": { + "__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse", + "__data__": { + "data": [ + { + "embedding": [ + 0.028038898, + -0.016252311, + -0.0097294245, + -0.04087969, + -0.02822924, + 0.015183466, + -0.024495602, + 0.038302746, + 0.02269467, + -0.030191232, + -0.00035506175, + 0.0075697703, + -0.008470236, + -0.0077088666, + -0.022885012, + 0.013038454, + 0.0002318654, + -0.00646066, + -0.034671597, + 0.04208031, + -0.027848555, + 0.04225601, + 0.020103084, + -0.022387194, + 0.016764771, + 0.023617098, + -0.06331081, + -0.061495233, + 0.02389529, + -0.024275975, + 0.060382463, + -0.0627837, + 0.02541803, + -0.016984398, + -0.056136362, + 0.0136314435, + 0.036604304, + -0.004403498, + -0.043749467, + -0.007869925, + -0.012635807, + 0.0048903353, + -0.012189234, + 0.031333286, + 0.04779058, + -0.03434948, + -0.05897686, + 0.014334246, + -0.0032101977, + 0.0035066924, + -0.0019821231, + 0.010644532, + 0.027599646, + 0.1062989, + -0.029634846, + -0.012950603, + 0.02388065, + -0.020776603, + 0.084453456, + 0.007686904, + 0.017042965, + -0.04038187, + 0.011918362, + -0.0043339496, + 0.017921468, + -0.024334542, + -0.040850405, + 0.017394366, + -0.004549915, + -0.039034832, + -0.091540046, + 0.028331732, + -0.013140946, + -0.021259781, + -0.011208238, + 0.0038983584, + 0.021318348, + -0.026311174, + 0.013829106, + -0.0029374955, + -0.0049635437, + 0.023514606, + 0.011471789, + -0.020718036, + -0.028068181, + -0.0027142093, + -0.024861645, + -0.018887822, + -0.033968795, + -0.07847963, + -0.032504622, + -0.0034554463, + 0.013184871, + -0.010293131, + 0.046912078, + 0.016471937, + -0.045447905, + -0.025989057, + 0.004985506, + 0.045096505, + -0.041172523, + 0.031918954, + 0.006189788, + 0.0054796645, + 0.0027983992, + -0.01071774, + -0.0037135067, + -0.02881491, + -0.044686537, + 0.038917698, + -0.0019253865, + -0.033734526, + 0.0023847704, + 2.3463932e-05, + -0.06266657, + 0.013294684, + -0.03742424, + -0.062198035, + -0.056809884, + -0.05994321, + -0.03408593, + -0.02950307, + 0.0353744, + -0.060323894, + -0.0041436073, + 0.008550766, + -0.012935962, + -0.02941522, + 0.017994676, + -0.014290321, + -0.029180953, + -0.02143548, + 0.04038187, + -0.021259781, + -0.0068852697, + -0.043603048, + -0.037629224, + -0.01054204, + -0.021991868, + 0.024671301, + -0.006383791, + -0.010856837, + 0.007159802, + -0.055462845, + 0.011076462, + -0.013843749, + -0.0028752682, + -0.01683798, + -0.046384975, + -0.017467575, + -0.067059085, + 0.009736746, + -0.021494048, + 0.011698736, + -0.00095262704, + 0.0028441546, + 0.0067681363, + -0.04003047, + 0.0013635104, + -0.025008062, + -0.01156696, + -0.0154323755, + -0.00552359, + 0.0141292615, + -0.0071012354, + 0.046912078, + -0.021406198, + 1.7673015e-05, + -0.08644473, + -0.05557998, + 0.043690898, + 0.0022383532, + 0.0018540081, + -0.068640396, + 0.01249671, + -0.026999336, + 0.05177313, + -0.030220514, + -0.06114383, + -0.03341241, + -0.012006212, + -0.0049672043, + 0.013514309, + -0.048054133, + -0.03739496, + 0.022372551, + -0.020498412, + 0.016354803, + -0.015652, + -0.02166975, + -0.019356357, + 0.020644829, + 0.013851069, + 0.023075353, + 0.03976692, + -0.009063226, + -0.0074745994, + -0.018258227, + 0.028683133, + 0.007818679, + -0.009583008, + 0.02057162, + 0.041933894, + -0.047175627, + -0.005227095, + 0.030191232, + -0.012386897, + 0.0081774015, + -0.004883014, + -0.022680027, + 0.07268151, + 0.002150503, + 0.066707686, + 0.023573173, + -0.05874259, + -0.010388302, + 0.0109300455, + -0.013536273, + -0.012313688, + 0.037804928, + -0.0433395, + -0.013624122, + -0.02108408, + 0.031099018, + -0.005142905, + 0.02899061, + 0.026003698, + -0.0521831, + 0.0028587962, + 0.027013978, + -0.026516158, + -0.00045503728, + 0.010446869, + -0.022460401, + -0.0025055646, + -0.0306012, + -0.010952008, + 0.019458849, + 0.033470977, + 0.0020864455, + -0.037453525, + -0.044481553, + 0.0031681026, + -0.01139126, + 0.038917698, + 0.017862901, + -0.010600607, + -0.054730758, + 0.010915404, + 0.033207428, + 0.014348888, + 0.021991868, + -0.0147808185, + -0.027570363, + 0.012723656, + 0.03598935, + -0.038214896, + 0.008982697, + -0.010739704, + -0.026911486, + -0.013426459, + 0.00467803, + -0.055960663, + 0.03273889, + -0.062432304, + 0.012489389, + -0.010644532, + 0.016984398, + -0.017306516, + -0.019078163, + -0.03994262, + -0.031743255, + -0.028331732, + 0.02566694, + -0.03391023, + -0.044100866, + -0.004473046, + -0.004498669, + 0.026677217, + 0.028214598, + -0.00960497, + -0.033383127, + 0.027189678, + 0.056341346, + -0.015637359, + -0.0028331731, + 0.08603476, + 0.015871627, + 0.017540783, + -0.039561935, + 0.040206168, + -0.029078461, + 0.001742365, + -0.019488132, + 0.0027325114, + -0.0055821566, + 0.026311174, + -0.019092806, + 0.0038654148, + 0.015695926, + 0.011523035, + 0.03631147, + -0.02932737, + -0.0613781, + -0.019707758, + 0.056107078, + 0.0059225764, + 0.011471789, + -0.01836072, + -0.051216744, + -0.011654811, + 0.0039715674, + -0.034320198, + -0.0075258454, + 0.022313984, + -0.02992768, + -0.029883755, + -0.009597649, + 0.013785182, + -0.04626784, + -0.0117792655, + -0.038127046, + 0.024803078, + 0.007869925, + -0.033178143, + -0.023441397, + -0.02106944, + -0.01352163, + 0.018492496, + -0.012577239, + -0.014436738, + -0.007082933, + -0.027101828, + -0.010073505, + 0.026369741, + -0.018756047, + -0.040762555, + -0.032943875, + -0.015124899, + 0.012262442, + -0.052388083, + -0.00798706, + 0.013968203, + 0.033383127, + -0.023412114, + -0.01393892, + -0.00066253793, + -0.0016883736, + 0.010278489, + 0.041113958, + -0.038302746, + -0.03935695, + 0.05203668, + 0.029546995, + -0.0030198551, + 0.020132368, + 0.002609887, + 0.023251055, + -0.013865711, + 0.01104718, + 0.0076063746, + 0.045184355, + 0.025754789, + 0.023909932, + 0.0010304112, + 0.05101176, + 0.061963767, + -0.06506781, + -0.009802633, + -0.010278489, + 0.03994262, + -0.025022704, + -0.028448867, + -0.0017917807, + -0.024158841, + 0.0040228134, + 0.02865385, + 0.008623974, + 0.00026011936, + 0.020849813, + 0.038946982, + -0.034730166, + 0.0197224, + -0.010219922, + 0.0070353476, + 0.025959773, + 0.007108556, + -0.03748281, + -0.0012198385, + -0.0109812915, + 0.015871627, + -0.009385344, + 0.012357614, + -0.048932634, + 0.034203064, + -0.0016462787, + 0.03970835, + 0.028770983, + 0.020337353, + 0.043222364, + 0.010607928, + -0.048346967, + -0.049430456, + 0.024773793, + -0.06618059, + 0.014868669, + 0.018228944, + 0.0015575133, + 0.008301857, + 0.022167567, + 0.056077797, + -0.08433632, + 0.015095616, + 0.009297494, + -0.0103809815, + 0.006943837, + 0.019678475, + -0.025871923, + 0.039327666, + 0.053881537, + -0.012474747, + -0.026808994, + -0.010886121, + 0.006537529, + -0.009443911, + 0.0025202064, + 0.011771944, + -0.0075770915, + 0.0148833105, + -0.03859558, + 0.016340163, + 0.0066436813, + 0.0024268655, + 0.021625824, + -0.04729276, + 0.006230053, + -0.05663418, + 0.029210236, + -0.0019802928, + -0.025066629, + -0.011449827, + 0.02244576, + 0.040499005, + -0.00033424306, + -0.022035792, + -0.0004804315, + -0.03689714, + 0.0071195373, + 0.027570363, + -0.035520818, + -0.04213888, + -0.023763515, + 0.014824743, + 0.042900246, + -0.026896844, + -0.021845449, + 0.04533077, + -0.028112106, + 0.07625409, + -0.0009636083, + 0.020879095, + -0.015139541, + 0.037512094, + -0.04199246, + -0.0040484364, + -0.027687497, + -0.0042021745, + 0.008645937, + 0.006387451, + -0.0019290469, + -0.00057423004, + -0.019356357, + 0.010073505, + 0.010051542, + -0.01300917, + 0.0057871407, + -0.0088802045, + -0.006248355, + 0.006943837, + -0.058859725, + -0.04506722, + 0.018580345, + 0.0005788056, + -0.0024854324, + -0.020161651, + 0.06553635, + -0.0076063746, + 0.054701474, + -0.055550694, + 0.02932737, + -0.0063435263, + 0.021567257, + -0.038654145, + -0.018799972, + 0.01708689, + -0.0070646307, + 0.004396177, + -0.034290913, + -0.0022163908, + -0.026399026, + -0.032446057, + -0.05133388, + -0.038917698, + 0.01735044, + -0.0062007695, + 0.03382238, + 0.025461955, + 0.0075624497, + -0.0026410006, + 0.025798714, + -0.036575023, + 0.0006657408, + -0.011801228, + 0.014524588, + -0.02159654, + -0.024612736, + 0.016559787, + 0.050221108, + 0.018375361, + 0.01675013, + 0.024524884, + -0.013353251, + 0.009341419, + 0.014561193, + 0.037512094, + -0.003748281, + -0.016120536, + -0.029356653, + -0.016120536, + 0.052680917, + -0.013770539, + -0.028683133, + -0.04497937, + -0.059298974, + -0.0020882757, + -0.026970053, + 0.045857873, + -0.014568513, + -0.018067885, + -0.006171486, + 0.025623014, + 0.022416476, + 0.002584264, + -0.003913, + -0.004495009, + -0.024173483, + -0.024275975, + 0.03478873, + 0.028580641, + 0.031099018, + 0.027336095, + -0.024671301, + 0.00045320706, + 0.0006012257, + 0.0012299047, + -0.037131406, + -0.028844193, + -0.02338283, + 0.014546551, + 0.029459145, + 0.013792503, + -0.0040081716, + 0.008806996, + 0.02660401, + 0.025945133, + 0.004908637, + -0.018580345, + 0.007635658, + 0.0059701623, + -0.0141292615, + 0.02363174, + -0.0015840513, + 0.005289322, + -0.0017268081, + 0.014927235, + -0.004699993, + 0.035520818, + 0.016091254, + 0.04896192, + 0.00552725, + -0.0022456741, + -0.013243438, + -0.0063398657, + 0.0072549735, + -0.028375657, + -0.034730166, + -0.012796865, + -0.023324264, + -0.003792206, + -0.009546403, + 0.01393892, + -0.04673638, + 0.007965097, + 0.0018924426, + 0.014121941, + -0.012189234, + -0.0070499894, + -0.030161947, + -0.0038471124, + 0.00019137189, + 0.014671005, + 0.025915848, + -6.9205016e-05, + 0.01913673, + -0.01131073, + 0.017526142, + -0.025959773, + 0.0023481662, + -0.0067937593, + -0.047497746, + -0.023792798, + 0.008001701, + -0.027921764, + -0.015915552, + -0.02142084, + -0.0074270135, + 0.0154323755, + -0.05414509, + 0.039679065, + -0.02039592, + -0.013997487, + 0.0033547846, + 0.032416772, + 0.025183761, + -0.008536124, + 0.015007765, + 0.014473342, + -0.023251055, + 0.004787843, + 0.06061673, + 0.0076649417, + -0.0058017825, + 0.027907122, + 0.004795164, + 0.0040337946, + 0.025447313, + 0.037804928, + 0.014897953, + -0.04158249, + 0.027467871, + 0.045184355, + 0.00078836526, + -0.00365677, + 0.015505584, + 0.003554278, + -0.021303706, + 0.05874259, + -0.0055821566, + -0.04096754, + 0.0031900653, + 0.00089039974, + -0.029371295, + -0.009956371, + 0.017233307, + 0.023089996, + -0.020103084, + 0.026560085, + -0.036780007, + 0.010293131, + -0.0133825345, + -0.0041106637, + 0.002584264, + -0.044393703, + -0.021772241, + 0.011252164, + 0.047146346, + 0.0046707094, + 0.009195002, + 0.007174444, + 0.026823634, + -0.009253568, + 0.047322046, + -0.0053003035, + -0.02108408, + 6.102624e-05, + -0.017306516, + 0.012394218, + -1.0159125e-05, + -0.0011548658, + 0.00408138, + -0.015505584, + 0.0153006, + -0.03604792, + 0.008602012, + -0.028712418, + 0.028873475, + 0.0023609777, + 0.0118305115, + -0.011398581, + 0.0077674338, + -0.008697183, + -0.027321454, + 0.012277084, + -0.05221238, + 0.011837833, + 0.018433928, + -0.0088436, + -0.0024506582, + 0.018477853, + -0.08416062, + -0.024290618, + 0.0033438033, + 0.002134031, + -0.011010575, + -0.042431712, + -0.025989057, + -0.014802781, + 0.007218369, + 0.021742957, + 0.007847963, + 0.0031424796, + -0.000641948, + 0.005194151, + 0.0044071586, + -0.031684685, + 0.034730166, + -0.025491238, + -0.028917402, + 0.010952008, + -0.0396205, + -0.035579383, + 0.021259781, + -0.014553872, + -0.0057175923, + 0.018580345, + 0.010695778, + 0.005461362, + 0.027570363, + 0.00526736, + -0.0007124113, + 0.0066327, + -0.0035652593, + 0.0043559126, + -0.021977225, + 0.0021010872, + -0.0025531503, + -0.0148320645, + -0.019707758, + -0.020454487, + -0.014261037, + 0.012935962, + -0.009619611, + 0.0030820826, + 0.024188126, + 0.030981883, + 0.00093386736, + 0.025959773, + -0.01181587, + 0.013799823, + -0.012591881, + -0.034905866, + 0.014092658, + 0.010637212, + 0.002600736, + -0.02609155, + -0.020088444, + 0.020000592, + -0.018843897, + 0.012906678, + 0.016764771, + 0.028551359, + 0.005461362, + 0.031508986, + 0.0067205504, + 0.025227688, + -0.0020077461, + -0.026501518, + 0.008514161, + 0.01869748, + -0.040235452, + -0.029429862, + -0.04913762, + -0.019253865, + -0.036487173, + -0.010593286, + -0.0153006, + 0.004183872, + 0.022489686, + -0.015754493, + 0.018258227, + -0.012848111, + 0.002796569, + -0.0029210236, + -0.011435185, + -0.0010477982, + -0.005179509, + -0.048581235, + -0.012269763, + 0.0147808185, + -0.003605524, + 0.010322414, + -0.037892777, + -0.011713378, + -0.0108787995, + -0.0068193823, + 0.015447017, + 0.00010146256, + -0.08902167, + -0.0045425943, + 0.034613032, + 0.022504328, + 0.017848259, + 0.04123109, + 0.023836724, + 0.050338242, + -0.05314945, + 0.0045023295, + -0.02941522, + 0.00493426, + 0.03783421, + -0.009334098, + 0.006233713, + -0.02815603, + 0.019458849, + 0.027482513, + -0.04328093, + 0.0075697703, + -0.0051465654, + -0.017042965, + -0.026472233, + -0.01717474, + -0.020439845, + 0.009626932, + -0.03376381, + 0.0063947723, + 0.049079053, + -0.007071952, + -0.01131073, + 0.017409008, + -0.005212453, + 0.030396216, + 0.0025275273, + -0.0066436813, + -0.017247949, + -0.052915186, + -0.002789248, + -0.014107299, + -0.020981587, + -0.022065075, + 0.006621719, + 0.020190936, + -0.02593049, + -0.036750723, + 0.013726614, + 0.008982697, + -0.009114472, + -0.040528286, + 0.004524292, + -0.033265993, + -0.0044840276, + -0.022460401, + -0.03282674, + -0.003927642, + -0.0015465319, + 0.028024256, + 0.009070547, + -0.03291459, + -0.015681285, + -8.361796e-05, + -0.0111277085, + -0.016281595, + -0.00935606, + 0.0032522925, + -0.0042717224, + 0.008462915, + -0.013624122, + 0.008206685, + -0.016691564, + 0.039561935, + 0.00034110638, + 0.0015703248, + -0.011354656, + -0.015183466, + 0.042021744, + 0.016208386, + -0.0109812915, + 0.026838277, + -0.024041709, + -0.016179103, + 0.016120536, + -0.032065373, + -0.004685351, + 0.020190936, + 0.0126797315, + -0.00433761, + 0.044598687, + -0.005629742, + 0.019532057, + 0.036165055, + 0.020205576, + 0.014495305, + 0.0068999114, + 0.049371887, + -0.0348473, + 0.004139947, + -0.027570363, + 0.025710864, + 0.03247534, + 0.012591881, + -0.001785375, + -0.016720846, + -0.014283, + -0.007796717, + 0.006995083, + 0.014692969, + 0.037863493, + 0.038156327, + 0.022885012, + 0.018741405, + 0.029195594, + 0.07982667, + 0.007891889, + 0.03153827, + 0.020498412, + 0.029122386, + 0.019268507, + 0.010673815, + 0.018565703, + 0.014612439, + -0.036340754, + 0.031186868, + -0.018433928, + -0.0045645568, + 0.015051691, + 0.045623608, + 0.027145753, + -0.0015977779, + -0.019956667, + 0.042109594, + 0.0028258525, + -0.030659767, + -0.0029338351, + 0.0057908013, + 0.017160099, + 0.020600904, + -0.031186868, + -0.010073505, + 0.00527102, + 0.06735192, + 0.038039193, + -0.0034810693, + -0.025271613, + 0.059416108, + -0.009956371, + 0.0035670896, + -0.0072805965, + 0.017057607, + 0.018580345, + -0.010505436, + 0.002619038, + 0.009553724, + -0.009583008, + 0.03809776, + 0.000790653, + -0.02610619, + 0.017042965, + -0.0075112036, + 0.015110257, + -0.017233307, + -0.0024268655, + -0.0198981, + -0.0027215302, + 0.0103809815, + 0.029532354, + -0.012460106, + -0.009626932, + 0.027423946, + -0.00527102, + -0.0037958664, + 0.016047327, + -0.041377507, + 0.010607928, + 0.00021951145, + -0.008433632, + -0.011237522, + -0.0015373809, + 0.016076611, + -0.020966947, + 0.057951935, + -0.012687053, + 0.061846636, + -0.0018741405, + 0.054818608, + 0.020776603, + 0.044657253, + 0.028888118, + 0.047732014, + 0.0094292695, + 0.019107448, + 0.013353251, + 0.052739482, + 0.032856025, + -0.04427657, + 0.030747617, + 0.017613992, + 0.033734526, + 0.00331635, + -0.005860349, + -0.005629742, + 0.024070991, + 0.025725506, + -0.0008345782, + -0.032299638, + -0.019532057, + -0.036340754, + -0.010439548, + 0.055989947, + 0.0016819679, + 0.013206833, + 0.023251055, + -0.004787843, + 0.0106811365, + -0.03171397, + -0.0021559936, + -0.016881905, + -0.01862427, + 0.018917104, + -0.0072952383, + -0.010227243, + -0.012657769, + 0.005109961, + -0.027175037, + 0.008030985, + -0.037014272, + -0.018946389, + -0.03859558, + 0.016003402, + 0.00072888326, + 0.011837833, + 0.017745767, + 0.00578348, + -0.0567806, + -0.042988095, + -0.040616136, + 0.00510264, + -0.008052947, + -0.027482513, + 0.006178807, + -0.016676921, + -0.041523926, + 0.022855729, + 0.014861348, + -0.006010427, + 0.046794944, + 0.016589072, + -0.05060179, + -0.026560085, + 0.039591216, + -0.020469127, + -0.0010194299, + -0.033353843, + 0.0010057034, + -0.010695778, + 0.008594691, + -0.0025110554, + 0.043925166, + -0.034437332, + -0.029942323, + -0.012137988, + 0.017130814, + 0.00019834957, + 0.014217112, + -0.012467426, + 0.010351698, + 0.024671301, + 0.018433928, + -0.040996823, + -0.03487658, + 0.011347335, + 0.003953265, + 0.0394448, + 0.020703396, + 0.053705838, + 0.0068413448, + -0.0038873772, + -0.011405902, + 0.012218517, + -0.009956371, + 0.012394218, + -0.011369297, + -0.030396216, + 0.020600904, + -0.004908637, + -0.023661023, + 0.0041545886, + 0.061963767, + -0.009055905, + -0.0022163908, + 0.03598935, + 0.013865711, + 0.031596836, + -5.7423003e-05, + 0.00028597112, + -0.027101828, + -0.006427716, + 0.006248355, + -0.030044815, + 0.028287807, + -0.006614398, + -0.02610619, + -0.023763515, + 0.0057761595, + 0.0033511242, + 0.016296238, + 0.009744066, + -0.03188967, + 0.013448422, + -0.032768175, + -0.0040630777, + 0.019766325, + 0.00077418104, + -0.0031003847, + -0.018961031, + -0.017760409, + 0.009934409, + 0.019195298, + -0.0071195373, + 0.009809954, + -0.03136257, + 0.0045169713, + -0.062022336, + 0.009070547, + -0.024759153, + 0.00054357393, + -0.010768986, + -0.019575983, + 0.011728019, + 0.005670007, + -0.027848555, + -0.0036952046, + 0.02260682, + 0.008968055, + -0.047819864, + -0.015329883, + -0.007262294, + -0.031304, + -0.012262442, + 0.015022407, + 0.0053661913, + 0.019561341, + 0.018243587, + 0.03385166, + 0.036194336, + -0.025183761, + -0.00045755383, + -0.0021962584, + -0.024759153, + 0.08380922, + 0.025857281, + 0.015578792, + -0.024437035, + -0.01573985, + 0.006555831, + 0.002873438, + 0.016442655, + 0.024964137, + 0.020893738, + 0.015695926, + -0.0045608967, + 0.012277084, + 0.0118305115, + -0.019341715, + -0.034290913, + 0.0007929408, + 0.013997487, + -0.004736597, + -0.0037171673, + 0.04413015, + -0.01735044, + -0.007804038, + 0.0008267998, + -0.010666494, + -0.0074929013, + -0.025271613, + 0.0067022485, + 0.0071048955, + 0.035842936, + 0.0019656513, + 0.0033621055, + 0.0010972141, + 0.02787784, + -0.013506989, + -0.02159654, + 0.045272205, + 0.0020443504, + 0.018726762, + -0.013851069, + -0.0086312955, + -0.005135584, + 0.009341419, + -0.021332989, + -0.03639932, + 0.0041033425, + -0.009275531, + -0.025754789, + -0.042431712, + 0.03493515, + -0.015754493, + -0.022650745, + 0.010278489, + 0.014919915, + 0.0073904092, + -0.017335799, + -0.022255417, + 0.005497967, + -0.027731422, + 0.016515862, + -0.02831709, + -0.00705731, + -0.014334246, + 0.038068477, + 0.032943875, + -0.023265697, + -9.7230186e-05, + -0.02057162, + 0.020776603, + 0.037102126, + 0.0314797, + 0.020542337, + 0.02456881, + 0.0027819271, + -0.022006508, + 0.030044815, + 0.017409008, + -0.0005202387, + -0.006658323, + 0.011845153, + 0.0023353547, + -0.010739704, + 0.03598935, + 0.009378023, + -0.017789692, + 0.022138285, + -0.017496858, + 0.008272573, + -0.0009883163, + 0.003664091, + 0.017262591, + 0.046531394, + 0.017833618, + 0.010827553, + -0.021362273, + -0.0028624567, + -0.009663536, + 0.017189382, + 0.0079284925, + 0.0063215634, + -0.009487836, + -0.006079975, + -0.06577062, + 0.041436072, + -0.00773815, + 0.0033804076, + 0.00952444, + -0.021816166, + -0.011757303, + -0.016120536, + 0.021494048, + -0.033031724, + -0.00014916254, + -0.034993716, + 0.012569918, + -0.025857281, + -0.0040996824, + 0.04064542, + 0.0035268248, + 0.013558235, + -0.016735489, + 0.0075404868, + 0.019239223, + -0.01793611, + -0.00994905, + 0.0026410006, + 0.00025989057, + 0.014334246, + 0.012738299, + 0.013836428, + -0.013748577, + -0.00816276, + 0.0034316536, + -0.053588703, + 0.080646604, + 0.015710568, + -0.017218666, + -0.030396216, + 0.022518968, + 0.015285958, + -0.0071890857, + 0.023675665, + 0.017701842, + -0.022328626, + -0.021318348, + 0.00986852, + 0.0032742552, + 0.002516546, + -0.010446869, + 0.015403092, + -0.01922458, + 0.02363174, + -0.021757599, + -0.019078163, + -0.010666494, + 0.032006804, + -0.035667237, + -0.01249671, + 0.0022072396, + 0.017057607, + -0.01079095, + -0.021918658, + 0.012877394, + 0.062022336, + 0.02039592, + 0.002143182, + -0.013624122, + 0.035608668, + 0.008770391, + -0.02143548, + 0.012943283, + 0.014905273, + 0.0090778675, + 0.017247949, + 0.016340163, + -0.032416772, + -0.010783629, + 0.027262887, + 0.0071305186, + -0.01648658, + 0.01904888, + 0.01639873, + 0.017657917, + 0.0045389337, + -0.016281595, + -2.3807097e-06, + 0.019488132, + 0.0008785033, + 0.021494048, + 0.02014701, + 0.017628634, + -0.0037025255, + 0.008909488, + 0.018551063, + 0.014905273, + 0.014407455, + 0.011105746, + 0.024759153, + -0.007950455, + 0.016428012, + 0.013323967, + 0.0045425943, + 0.025154479, + -0.01973704, + -0.011742661, + 0.015798418, + -0.000675807, + -0.01981025, + 0.03417378, + 0.027057903, + 0.016808698, + 0.026677217, + 0.014004807, + -0.014231754, + 0.0058274055, + 0.009151076, + -0.0075551285, + 0.021054797, + -0.013609481, + -0.0023262035, + -0.014400134, + -0.0030399875, + 0.027585005, + 0.024422392, + 0.0050294315, + -0.010483474, + 0.03976692, + 0.0050806776, + 0.019253865, + 0.004341271, + -0.0033547846, + 0.029913038, + 0.0065851146, + -0.0004239236, + 0.010659174, + 0.008909488, + 0.007635658, + -0.012511352, + -0.018902464, + -0.025989057, + 0.024070991, + 0.017160099, + 0.0070243664, + 0.017394366, + -0.00798706, + 0.022401836, + 0.014143904, + 0.007796717, + 0.015168824, + 0.0028423243, + -0.0015538528, + 0.0215819, + -0.0007179019, + 0.0022731274, + -0.027848555, + -0.07227154, + -0.006478962, + -0.0009938069, + -0.006358168, + 0.018302152, + 0.02218221, + -0.04779058, + -0.02083517, + -0.0050440733, + 0.03332456, + 0.017570067, + -0.030864751, + 0.012101383, + 0.026662577, + -0.020864455, + -0.0040008505, + 0.032211788, + 0.0051392447, + 0.015183466, + -0.023573173, + 0.010864158, + -0.04225601, + -0.004209495, + -0.008799675, + -0.0007357465, + -0.013572876, + 0.030454783, + -0.001258273, + 0.004132626, + -0.020952305, + 0.009063226, + -0.018404644, + 0.015622717, + 0.018316794, + -0.021655107, + 0.008968055, + -0.009656216, + 0.0024195446, + 0.014941878, + 0.020703396, + 0.025740148, + -0.0015437866, + -0.051655997, + -0.036194336, + -0.0033053688, + 0.013514309, + -0.047907714, + -0.035491534, + 0.0017881204, + 0.029239519, + -0.013748577, + 0.004974525, + 0.021567257, + 0.013228796, + 0.009744066, + 0.018946389, + 0.0198981, + -0.022211492, + 0.010498115, + 0.0021889375, + -0.019619908, + 0.043515198, + 0.0052746804, + 0.0120281745, + -0.008462915, + 0.0050879987, + 0.007752792, + -0.031596836, + -0.004776862, + 0.04462797, + 0.02499342, + 0.03139185, + -0.010410264, + 0.04064542, + 0.000760912, + -0.0042058346, + -0.022928936, + -0.023573173, + -0.023661023, + 0.009019301, + 0.017526142, + 0.02262146, + 0.005746876, + 0.02262146, + -0.016632996, + -0.0019034239, + -0.008265252, + 0.013258079, + -0.006493604, + -0.022665385, + 0.024027066, + -0.0078772465, + -0.0077674338, + 0.01470761, + -0.0028423243, + 0.010666494, + 0.006519227, + -0.018126452, + 0.009224285, + 0.017204024, + 0.018668195, + -0.006735192, + 0.00901198, + -0.032006804, + -0.0020059159, + 0.0070499894, + -0.018799972, + 0.039825484, + 0.029049177, + 0.023236413, + 0.024158841, + -0.03921053, + -0.011449827, + 0.051509578, + 0.014466021, + -3.903506e-05, + 0.06489211, + 0.0058640097, + 0.015783777, + -0.0049891667, + 0.0068413448, + -0.020674111, + -0.049196187, + 0.014692969, + 0.0022822784, + 0.014861348, + 0.00416557, + -0.021552615, + -0.030835466, + -0.006672965, + -0.020952305, + -0.021464765, + -0.000118963995, + 0.0064569996 + ], + "index": 0, + "object": "embedding" + } + ], + "model": "text-embedding-3-small", + "object": "list", + "usage": { + "prompt_tokens": 10, + "total_tokens": 10 + } + } + }, + "is_streaming": false + }, + "id_normalization_mapping": {} +} diff --git a/tests/integration/responses/recordings/b7c02d59e1fa664de53afecc490f0bb6d7889a12817d450089650c31351a05d0.json b/tests/integration/responses/recordings/b7c02d59e1fa664de53afecc490f0bb6d7889a12817d450089650c31351a05d0.json new file mode 100644 index 000000000..aa550551f --- /dev/null +++ b/tests/integration/responses/recordings/b7c02d59e1fa664de53afecc490f0bb6d7889a12817d450089650c31351a05d0.json @@ -0,0 +1,1301 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[openai_client-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/chat/completions", + "headers": {}, + "body": { + "model": "gpt-4o", + "messages": [ + { + "role": "user", + "content": "How many experts does the Llama 4 Maverick model have?" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "index": 0, + "id": "call_aPe1vS1v5bIwPgl789D5bfmW", + "type": "function", + "function": { + "name": "knowledge_search", + "arguments": "{\"query\":\"Llama 4 Maverick model number of experts\"}" + } + } + ] + }, + { + "role": "tool", + "tool_call_id": "call_aPe1vS1v5bIwPgl789D5bfmW", + "content": [ + { + "type": "text", + "text": "knowledge_search tool found 1 chunks:\nBEGIN of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "[1] document_id: file-5efa8a5a4b414ce98726c4e133a18747, score: 2.5781234969335522, attributes: {'filename': 'test_sequential_file_search.txt', 'document_id': 'file-5efa8a5a4b414ce98726c4e133a18747', 'token_count': 19.0, 'metadata_token_count': 11.0} (cite as <|file-5efa8a5a4b414ce98726c4e133a18747|>)\nThe Llama 4 Maverick model has 128 experts in its mixture of experts architecture.\n" + }, + { + "type": "text", + "text": "END of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "The above results were retrieved to help answer the user's query: \"Llama 4 Maverick model number of experts\". Use them as supporting information only in answering this query. Cite sources immediately at the end of sentences before punctuation, using `<|file-id|>` format (e.g., 'This is a fact <|file-Cn3MSNn72ENTiiq11Qda4A|>.'). Do not add extra punctuation. Use only the file IDs provided (do not invent new ones).\n" + } + ] + } + ], + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "knowledge_search", + "description": "Search for information in a database.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The query to search for. Can be a natural language sentence or keywords." + } + }, + "required": [ + "query" + ] + } + } + } + ] + }, + "endpoint": "/v1/chat/completions", + "model": "gpt-4o" + }, + "response": { + "body": [ + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "", + "function_call": null, + "refusal": null, + "role": "assistant", + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "O03slw1rkPQ" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "The", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "Z22d6y8jm7" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " L", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "M1RTqftUfWQ" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "lama", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "wRB9tjdWt" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " ", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "2Ie0cwe295L7" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "4", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "w7ojg0W83Ps9" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " Maver", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "kKiuBFk" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "ick", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "wPqT5252mu" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " model", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "mmCy5CZ" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " has", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "1n17SBtPZ" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " ", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "DYqD3ctW9a9u" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "128", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "QKyk69bD5c" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " experts", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "o5pdg" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " in", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "OKOS0I8tDl" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " its", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "JoJNpDAjO" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " mixture", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "QX6Km" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " of", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "zD5yU4wtPN" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " experts", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "hCLbg" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " architecture", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": " <", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "YRgNO0pJ2BU" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "|", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "v1wCeSbjZla2" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "file", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "sNS4FMXNs" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "-", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "oPXVseE3gpNS" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "5", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "SYwjps97VSR2" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "efa", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "vREn1ZCKof" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "8", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "oG7KTI5QYWY7" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "a", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "V3x9gQaWoBt0" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "5", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "EvJlWuAET6Nb" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "a", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "6BfrQHnEMHWR" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "4", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "3GnFXH0Nd7nS" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "b", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "JGjeeuoBf0YP" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "414", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "fER0VBQe41" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "ce", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "3tim4DdI68s" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "987", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "k0otyr0K5V" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "26", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "k32cphGm4aF" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "c", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "YUCMUXq10b9S" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "4", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "6vzpUVxQwHV3" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "e", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "SK14VlvhCkVZ" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "133", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "rjYZR3DGDK" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "a", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "rqtWqGcq7lgN" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "187", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "mXq9LEM2yq" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "47", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "nmKBeCHg3cd" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": "|", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "ZGtVGqQwwPwS" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": ">.", + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "WFBpp2u4Y7H" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-b7c02d59e1fa", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": "stop", + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "No5TXsA" + } + } + ], + "is_streaming": true + }, + "id_normalization_mapping": { + "file-1": "file-5efa8a5a4b414ce98726c4e133a18747" + } +} diff --git a/tests/integration/responses/recordings/da9a93d127e1b0f7cc09445fdb876987dc481bd94343d6f1694b6d9e4f9110d0.json b/tests/integration/responses/recordings/da9a93d127e1b0f7cc09445fdb876987dc481bd94343d6f1694b6d9e4f9110d0.json new file mode 100644 index 000000000..376ef812e --- /dev/null +++ b/tests/integration/responses/recordings/da9a93d127e1b0f7cc09445fdb876987dc481bd94343d6f1694b6d9e4f9110d0.json @@ -0,0 +1,639 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[client_with_models-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/chat/completions", + "headers": {}, + "body": { + "model": "gpt-4o", + "messages": [ + { + "role": "user", + "content": "How many experts does the Llama 4 Maverick model have?" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "index": 0, + "id": "call_qzY7B7EArJwpMqLVer8kcAey", + "type": "function", + "function": { + "name": "knowledge_search", + "arguments": "{\"query\":\"Llama 4 Maverick model number of experts\"}" + } + } + ] + }, + { + "role": "tool", + "tool_call_id": "call_qzY7B7EArJwpMqLVer8kcAey", + "content": [ + { + "type": "text", + "text": "knowledge_search tool found 1 chunks:\nBEGIN of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "[1] document_id: file-d7cee10212814cfcb75cc091eee11688, score: 2.5781234969335522, attributes: {'filename': 'test_sequential_file_search.txt', 'document_id': 'file-d7cee10212814cfcb75cc091eee11688', 'token_count': 19.0, 'metadata_token_count': 11.0} (cite as <|file-d7cee10212814cfcb75cc091eee11688|>)\nThe Llama 4 Maverick model has 128 experts in its mixture of experts architecture.\n" + }, + { + "type": "text", + "text": "END of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "The above results were retrieved to help answer the user's query: \"Llama 4 Maverick model number of experts\". Use them as supporting information only in answering this query. Cite sources immediately at the end of sentences before punctuation, using `<|file-id|>` format (e.g., 'This is a fact <|file-Cn3MSNn72ENTiiq11Qda4A|>.'). Do not add extra punctuation. Use only the file IDs provided (do not invent new ones).\n" + } + ] + }, + { + "role": "assistant", + "content": "The Llama 4 Maverick model has 128 experts in its mixture of experts architecture <|file-d7cee10212814cfcb75cc091eee11688|>." + }, + { + "role": "user", + "content": "Can you tell me more about the architecture?" + } + ], + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "knowledge_search", + "description": "Search for information in a database.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The query to search for. Can be a natural language sentence or keywords." + } + }, + "required": [ + "query" + ] + } + } + } + ] + }, + "endpoint": "/v1/chat/completions", + "model": "gpt-4o" + }, + "response": { + "body": [ + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": "assistant", + "tool_calls": [ + { + "index": 0, + "id": "call_1ALB4oPNgIKUK5psXuwbr75h", + "function": { + "arguments": "", + "name": "knowledge_search" + }, + "type": "function" + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "r" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "{\"", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "query", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "GPmHVALApsFsy7" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "\":\"", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "67TAf4jbLYhHW1" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "L", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "4K" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "lama", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "ICELdTK8jGFgntX" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " ", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "0a" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "4", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "5W" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " Maver", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "R6oVaTFMpIpZc" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "ick", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " model", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "j2lmlybaF29O5" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " architecture", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "6Elgqc" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " details", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "dRsGKjozfWR" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "\"}", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-da9a93d127e1", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": "tool_calls", + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "S" + } + } + ], + "is_streaming": true + }, + "id_normalization_mapping": { + "file-1": "file-d7cee10212814cfcb75cc091eee11688" + } +} diff --git a/tests/integration/responses/recordings/e0ef89da13c3b389e85bbf1fd7e9b113a256b2d1196c6abf60af8b1d38c2a802.json b/tests/integration/responses/recordings/e0ef89da13c3b389e85bbf1fd7e9b113a256b2d1196c6abf60af8b1d38c2a802.json new file mode 100644 index 000000000..8eb5c3ae1 --- /dev/null +++ b/tests/integration/responses/recordings/e0ef89da13c3b389e85bbf1fd7e9b113a256b2d1196c6abf60af8b1d38c2a802.json @@ -0,0 +1,1576 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[openai_client-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/embeddings", + "headers": {}, + "body": { + "model": "text-embedding-3-small", + "input": [ + "Llama 4 Maverick model number of experts" + ], + "encoding_format": "float" + }, + "endpoint": "/v1/embeddings", + "model": "text-embedding-3-small" + }, + "response": { + "body": { + "__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse", + "__data__": { + "data": [ + { + "embedding": [ + 0.028038898, + -0.016252311, + -0.0097294245, + -0.04087969, + -0.02822924, + 0.015183466, + -0.024495602, + 0.038302746, + 0.02269467, + -0.030191232, + -0.00035506175, + 0.0075697703, + -0.008470236, + -0.0077088666, + -0.022885012, + 0.013038454, + 0.0002318654, + -0.00646066, + -0.034671597, + 0.04208031, + -0.027848555, + 0.04225601, + 0.020103084, + -0.022387194, + 0.016764771, + 0.023617098, + -0.06331081, + -0.061495233, + 0.02389529, + -0.024275975, + 0.060382463, + -0.0627837, + 0.02541803, + -0.016984398, + -0.056136362, + 0.0136314435, + 0.036604304, + -0.004403498, + -0.043749467, + -0.007869925, + -0.012635807, + 0.0048903353, + -0.012189234, + 0.031333286, + 0.04779058, + -0.03434948, + -0.05897686, + 0.014334246, + -0.0032101977, + 0.0035066924, + -0.0019821231, + 0.010644532, + 0.027599646, + 0.1062989, + -0.029634846, + -0.012950603, + 0.02388065, + -0.020776603, + 0.084453456, + 0.007686904, + 0.017042965, + -0.04038187, + 0.011918362, + -0.0043339496, + 0.017921468, + -0.024334542, + -0.040850405, + 0.017394366, + -0.004549915, + -0.039034832, + -0.091540046, + 0.028331732, + -0.013140946, + -0.021259781, + -0.011208238, + 0.0038983584, + 0.021318348, + -0.026311174, + 0.013829106, + -0.0029374955, + -0.0049635437, + 0.023514606, + 0.011471789, + -0.020718036, + -0.028068181, + -0.0027142093, + -0.024861645, + -0.018887822, + -0.033968795, + -0.07847963, + -0.032504622, + -0.0034554463, + 0.013184871, + -0.010293131, + 0.046912078, + 0.016471937, + -0.045447905, + -0.025989057, + 0.004985506, + 0.045096505, + -0.041172523, + 0.031918954, + 0.006189788, + 0.0054796645, + 0.0027983992, + -0.01071774, + -0.0037135067, + -0.02881491, + -0.044686537, + 0.038917698, + -0.0019253865, + -0.033734526, + 0.0023847704, + 2.3463932e-05, + -0.06266657, + 0.013294684, + -0.03742424, + -0.062198035, + -0.056809884, + -0.05994321, + -0.03408593, + -0.02950307, + 0.0353744, + -0.060323894, + -0.0041436073, + 0.008550766, + -0.012935962, + -0.02941522, + 0.017994676, + -0.014290321, + -0.029180953, + -0.02143548, + 0.04038187, + -0.021259781, + -0.0068852697, + -0.043603048, + -0.037629224, + -0.01054204, + -0.021991868, + 0.024671301, + -0.006383791, + -0.010856837, + 0.007159802, + -0.055462845, + 0.011076462, + -0.013843749, + -0.0028752682, + -0.01683798, + -0.046384975, + -0.017467575, + -0.067059085, + 0.009736746, + -0.021494048, + 0.011698736, + -0.00095262704, + 0.0028441546, + 0.0067681363, + -0.04003047, + 0.0013635104, + -0.025008062, + -0.01156696, + -0.0154323755, + -0.00552359, + 0.0141292615, + -0.0071012354, + 0.046912078, + -0.021406198, + 1.7673015e-05, + -0.08644473, + -0.05557998, + 0.043690898, + 0.0022383532, + 0.0018540081, + -0.068640396, + 0.01249671, + -0.026999336, + 0.05177313, + -0.030220514, + -0.06114383, + -0.03341241, + -0.012006212, + -0.0049672043, + 0.013514309, + -0.048054133, + -0.03739496, + 0.022372551, + -0.020498412, + 0.016354803, + -0.015652, + -0.02166975, + -0.019356357, + 0.020644829, + 0.013851069, + 0.023075353, + 0.03976692, + -0.009063226, + -0.0074745994, + -0.018258227, + 0.028683133, + 0.007818679, + -0.009583008, + 0.02057162, + 0.041933894, + -0.047175627, + -0.005227095, + 0.030191232, + -0.012386897, + 0.0081774015, + -0.004883014, + -0.022680027, + 0.07268151, + 0.002150503, + 0.066707686, + 0.023573173, + -0.05874259, + -0.010388302, + 0.0109300455, + -0.013536273, + -0.012313688, + 0.037804928, + -0.0433395, + -0.013624122, + -0.02108408, + 0.031099018, + -0.005142905, + 0.02899061, + 0.026003698, + -0.0521831, + 0.0028587962, + 0.027013978, + -0.026516158, + -0.00045503728, + 0.010446869, + -0.022460401, + -0.0025055646, + -0.0306012, + -0.010952008, + 0.019458849, + 0.033470977, + 0.0020864455, + -0.037453525, + -0.044481553, + 0.0031681026, + -0.01139126, + 0.038917698, + 0.017862901, + -0.010600607, + -0.054730758, + 0.010915404, + 0.033207428, + 0.014348888, + 0.021991868, + -0.0147808185, + -0.027570363, + 0.012723656, + 0.03598935, + -0.038214896, + 0.008982697, + -0.010739704, + -0.026911486, + -0.013426459, + 0.00467803, + -0.055960663, + 0.03273889, + -0.062432304, + 0.012489389, + -0.010644532, + 0.016984398, + -0.017306516, + -0.019078163, + -0.03994262, + -0.031743255, + -0.028331732, + 0.02566694, + -0.03391023, + -0.044100866, + -0.004473046, + -0.004498669, + 0.026677217, + 0.028214598, + -0.00960497, + -0.033383127, + 0.027189678, + 0.056341346, + -0.015637359, + -0.0028331731, + 0.08603476, + 0.015871627, + 0.017540783, + -0.039561935, + 0.040206168, + -0.029078461, + 0.001742365, + -0.019488132, + 0.0027325114, + -0.0055821566, + 0.026311174, + -0.019092806, + 0.0038654148, + 0.015695926, + 0.011523035, + 0.03631147, + -0.02932737, + -0.0613781, + -0.019707758, + 0.056107078, + 0.0059225764, + 0.011471789, + -0.01836072, + -0.051216744, + -0.011654811, + 0.0039715674, + -0.034320198, + -0.0075258454, + 0.022313984, + -0.02992768, + -0.029883755, + -0.009597649, + 0.013785182, + -0.04626784, + -0.0117792655, + -0.038127046, + 0.024803078, + 0.007869925, + -0.033178143, + -0.023441397, + -0.02106944, + -0.01352163, + 0.018492496, + -0.012577239, + -0.014436738, + -0.007082933, + -0.027101828, + -0.010073505, + 0.026369741, + -0.018756047, + -0.040762555, + -0.032943875, + -0.015124899, + 0.012262442, + -0.052388083, + -0.00798706, + 0.013968203, + 0.033383127, + -0.023412114, + -0.01393892, + -0.00066253793, + -0.0016883736, + 0.010278489, + 0.041113958, + -0.038302746, + -0.03935695, + 0.05203668, + 0.029546995, + -0.0030198551, + 0.020132368, + 0.002609887, + 0.023251055, + -0.013865711, + 0.01104718, + 0.0076063746, + 0.045184355, + 0.025754789, + 0.023909932, + 0.0010304112, + 0.05101176, + 0.061963767, + -0.06506781, + -0.009802633, + -0.010278489, + 0.03994262, + -0.025022704, + -0.028448867, + -0.0017917807, + -0.024158841, + 0.0040228134, + 0.02865385, + 0.008623974, + 0.00026011936, + 0.020849813, + 0.038946982, + -0.034730166, + 0.0197224, + -0.010219922, + 0.0070353476, + 0.025959773, + 0.007108556, + -0.03748281, + -0.0012198385, + -0.0109812915, + 0.015871627, + -0.009385344, + 0.012357614, + -0.048932634, + 0.034203064, + -0.0016462787, + 0.03970835, + 0.028770983, + 0.020337353, + 0.043222364, + 0.010607928, + -0.048346967, + -0.049430456, + 0.024773793, + -0.06618059, + 0.014868669, + 0.018228944, + 0.0015575133, + 0.008301857, + 0.022167567, + 0.056077797, + -0.08433632, + 0.015095616, + 0.009297494, + -0.0103809815, + 0.006943837, + 0.019678475, + -0.025871923, + 0.039327666, + 0.053881537, + -0.012474747, + -0.026808994, + -0.010886121, + 0.006537529, + -0.009443911, + 0.0025202064, + 0.011771944, + -0.0075770915, + 0.0148833105, + -0.03859558, + 0.016340163, + 0.0066436813, + 0.0024268655, + 0.021625824, + -0.04729276, + 0.006230053, + -0.05663418, + 0.029210236, + -0.0019802928, + -0.025066629, + -0.011449827, + 0.02244576, + 0.040499005, + -0.00033424306, + -0.022035792, + -0.0004804315, + -0.03689714, + 0.0071195373, + 0.027570363, + -0.035520818, + -0.04213888, + -0.023763515, + 0.014824743, + 0.042900246, + -0.026896844, + -0.021845449, + 0.04533077, + -0.028112106, + 0.07625409, + -0.0009636083, + 0.020879095, + -0.015139541, + 0.037512094, + -0.04199246, + -0.0040484364, + -0.027687497, + -0.0042021745, + 0.008645937, + 0.006387451, + -0.0019290469, + -0.00057423004, + -0.019356357, + 0.010073505, + 0.010051542, + -0.01300917, + 0.0057871407, + -0.0088802045, + -0.006248355, + 0.006943837, + -0.058859725, + -0.04506722, + 0.018580345, + 0.0005788056, + -0.0024854324, + -0.020161651, + 0.06553635, + -0.0076063746, + 0.054701474, + -0.055550694, + 0.02932737, + -0.0063435263, + 0.021567257, + -0.038654145, + -0.018799972, + 0.01708689, + -0.0070646307, + 0.004396177, + -0.034290913, + -0.0022163908, + -0.026399026, + -0.032446057, + -0.05133388, + -0.038917698, + 0.01735044, + -0.0062007695, + 0.03382238, + 0.025461955, + 0.0075624497, + -0.0026410006, + 0.025798714, + -0.036575023, + 0.0006657408, + -0.011801228, + 0.014524588, + -0.02159654, + -0.024612736, + 0.016559787, + 0.050221108, + 0.018375361, + 0.01675013, + 0.024524884, + -0.013353251, + 0.009341419, + 0.014561193, + 0.037512094, + -0.003748281, + -0.016120536, + -0.029356653, + -0.016120536, + 0.052680917, + -0.013770539, + -0.028683133, + -0.04497937, + -0.059298974, + -0.0020882757, + -0.026970053, + 0.045857873, + -0.014568513, + -0.018067885, + -0.006171486, + 0.025623014, + 0.022416476, + 0.002584264, + -0.003913, + -0.004495009, + -0.024173483, + -0.024275975, + 0.03478873, + 0.028580641, + 0.031099018, + 0.027336095, + -0.024671301, + 0.00045320706, + 0.0006012257, + 0.0012299047, + -0.037131406, + -0.028844193, + -0.02338283, + 0.014546551, + 0.029459145, + 0.013792503, + -0.0040081716, + 0.008806996, + 0.02660401, + 0.025945133, + 0.004908637, + -0.018580345, + 0.007635658, + 0.0059701623, + -0.0141292615, + 0.02363174, + -0.0015840513, + 0.005289322, + -0.0017268081, + 0.014927235, + -0.004699993, + 0.035520818, + 0.016091254, + 0.04896192, + 0.00552725, + -0.0022456741, + -0.013243438, + -0.0063398657, + 0.0072549735, + -0.028375657, + -0.034730166, + -0.012796865, + -0.023324264, + -0.003792206, + -0.009546403, + 0.01393892, + -0.04673638, + 0.007965097, + 0.0018924426, + 0.014121941, + -0.012189234, + -0.0070499894, + -0.030161947, + -0.0038471124, + 0.00019137189, + 0.014671005, + 0.025915848, + -6.9205016e-05, + 0.01913673, + -0.01131073, + 0.017526142, + -0.025959773, + 0.0023481662, + -0.0067937593, + -0.047497746, + -0.023792798, + 0.008001701, + -0.027921764, + -0.015915552, + -0.02142084, + -0.0074270135, + 0.0154323755, + -0.05414509, + 0.039679065, + -0.02039592, + -0.013997487, + 0.0033547846, + 0.032416772, + 0.025183761, + -0.008536124, + 0.015007765, + 0.014473342, + -0.023251055, + 0.004787843, + 0.06061673, + 0.0076649417, + -0.0058017825, + 0.027907122, + 0.004795164, + 0.0040337946, + 0.025447313, + 0.037804928, + 0.014897953, + -0.04158249, + 0.027467871, + 0.045184355, + 0.00078836526, + -0.00365677, + 0.015505584, + 0.003554278, + -0.021303706, + 0.05874259, + -0.0055821566, + -0.04096754, + 0.0031900653, + 0.00089039974, + -0.029371295, + -0.009956371, + 0.017233307, + 0.023089996, + -0.020103084, + 0.026560085, + -0.036780007, + 0.010293131, + -0.0133825345, + -0.0041106637, + 0.002584264, + -0.044393703, + -0.021772241, + 0.011252164, + 0.047146346, + 0.0046707094, + 0.009195002, + 0.007174444, + 0.026823634, + -0.009253568, + 0.047322046, + -0.0053003035, + -0.02108408, + 6.102624e-05, + -0.017306516, + 0.012394218, + -1.0159125e-05, + -0.0011548658, + 0.00408138, + -0.015505584, + 0.0153006, + -0.03604792, + 0.008602012, + -0.028712418, + 0.028873475, + 0.0023609777, + 0.0118305115, + -0.011398581, + 0.0077674338, + -0.008697183, + -0.027321454, + 0.012277084, + -0.05221238, + 0.011837833, + 0.018433928, + -0.0088436, + -0.0024506582, + 0.018477853, + -0.08416062, + -0.024290618, + 0.0033438033, + 0.002134031, + -0.011010575, + -0.042431712, + -0.025989057, + -0.014802781, + 0.007218369, + 0.021742957, + 0.007847963, + 0.0031424796, + -0.000641948, + 0.005194151, + 0.0044071586, + -0.031684685, + 0.034730166, + -0.025491238, + -0.028917402, + 0.010952008, + -0.0396205, + -0.035579383, + 0.021259781, + -0.014553872, + -0.0057175923, + 0.018580345, + 0.010695778, + 0.005461362, + 0.027570363, + 0.00526736, + -0.0007124113, + 0.0066327, + -0.0035652593, + 0.0043559126, + -0.021977225, + 0.0021010872, + -0.0025531503, + -0.0148320645, + -0.019707758, + -0.020454487, + -0.014261037, + 0.012935962, + -0.009619611, + 0.0030820826, + 0.024188126, + 0.030981883, + 0.00093386736, + 0.025959773, + -0.01181587, + 0.013799823, + -0.012591881, + -0.034905866, + 0.014092658, + 0.010637212, + 0.002600736, + -0.02609155, + -0.020088444, + 0.020000592, + -0.018843897, + 0.012906678, + 0.016764771, + 0.028551359, + 0.005461362, + 0.031508986, + 0.0067205504, + 0.025227688, + -0.0020077461, + -0.026501518, + 0.008514161, + 0.01869748, + -0.040235452, + -0.029429862, + -0.04913762, + -0.019253865, + -0.036487173, + -0.010593286, + -0.0153006, + 0.004183872, + 0.022489686, + -0.015754493, + 0.018258227, + -0.012848111, + 0.002796569, + -0.0029210236, + -0.011435185, + -0.0010477982, + -0.005179509, + -0.048581235, + -0.012269763, + 0.0147808185, + -0.003605524, + 0.010322414, + -0.037892777, + -0.011713378, + -0.0108787995, + -0.0068193823, + 0.015447017, + 0.00010146256, + -0.08902167, + -0.0045425943, + 0.034613032, + 0.022504328, + 0.017848259, + 0.04123109, + 0.023836724, + 0.050338242, + -0.05314945, + 0.0045023295, + -0.02941522, + 0.00493426, + 0.03783421, + -0.009334098, + 0.006233713, + -0.02815603, + 0.019458849, + 0.027482513, + -0.04328093, + 0.0075697703, + -0.0051465654, + -0.017042965, + -0.026472233, + -0.01717474, + -0.020439845, + 0.009626932, + -0.03376381, + 0.0063947723, + 0.049079053, + -0.007071952, + -0.01131073, + 0.017409008, + -0.005212453, + 0.030396216, + 0.0025275273, + -0.0066436813, + -0.017247949, + -0.052915186, + -0.002789248, + -0.014107299, + -0.020981587, + -0.022065075, + 0.006621719, + 0.020190936, + -0.02593049, + -0.036750723, + 0.013726614, + 0.008982697, + -0.009114472, + -0.040528286, + 0.004524292, + -0.033265993, + -0.0044840276, + -0.022460401, + -0.03282674, + -0.003927642, + -0.0015465319, + 0.028024256, + 0.009070547, + -0.03291459, + -0.015681285, + -8.361796e-05, + -0.0111277085, + -0.016281595, + -0.00935606, + 0.0032522925, + -0.0042717224, + 0.008462915, + -0.013624122, + 0.008206685, + -0.016691564, + 0.039561935, + 0.00034110638, + 0.0015703248, + -0.011354656, + -0.015183466, + 0.042021744, + 0.016208386, + -0.0109812915, + 0.026838277, + -0.024041709, + -0.016179103, + 0.016120536, + -0.032065373, + -0.004685351, + 0.020190936, + 0.0126797315, + -0.00433761, + 0.044598687, + -0.005629742, + 0.019532057, + 0.036165055, + 0.020205576, + 0.014495305, + 0.0068999114, + 0.049371887, + -0.0348473, + 0.004139947, + -0.027570363, + 0.025710864, + 0.03247534, + 0.012591881, + -0.001785375, + -0.016720846, + -0.014283, + -0.007796717, + 0.006995083, + 0.014692969, + 0.037863493, + 0.038156327, + 0.022885012, + 0.018741405, + 0.029195594, + 0.07982667, + 0.007891889, + 0.03153827, + 0.020498412, + 0.029122386, + 0.019268507, + 0.010673815, + 0.018565703, + 0.014612439, + -0.036340754, + 0.031186868, + -0.018433928, + -0.0045645568, + 0.015051691, + 0.045623608, + 0.027145753, + -0.0015977779, + -0.019956667, + 0.042109594, + 0.0028258525, + -0.030659767, + -0.0029338351, + 0.0057908013, + 0.017160099, + 0.020600904, + -0.031186868, + -0.010073505, + 0.00527102, + 0.06735192, + 0.038039193, + -0.0034810693, + -0.025271613, + 0.059416108, + -0.009956371, + 0.0035670896, + -0.0072805965, + 0.017057607, + 0.018580345, + -0.010505436, + 0.002619038, + 0.009553724, + -0.009583008, + 0.03809776, + 0.000790653, + -0.02610619, + 0.017042965, + -0.0075112036, + 0.015110257, + -0.017233307, + -0.0024268655, + -0.0198981, + -0.0027215302, + 0.0103809815, + 0.029532354, + -0.012460106, + -0.009626932, + 0.027423946, + -0.00527102, + -0.0037958664, + 0.016047327, + -0.041377507, + 0.010607928, + 0.00021951145, + -0.008433632, + -0.011237522, + -0.0015373809, + 0.016076611, + -0.020966947, + 0.057951935, + -0.012687053, + 0.061846636, + -0.0018741405, + 0.054818608, + 0.020776603, + 0.044657253, + 0.028888118, + 0.047732014, + 0.0094292695, + 0.019107448, + 0.013353251, + 0.052739482, + 0.032856025, + -0.04427657, + 0.030747617, + 0.017613992, + 0.033734526, + 0.00331635, + -0.005860349, + -0.005629742, + 0.024070991, + 0.025725506, + -0.0008345782, + -0.032299638, + -0.019532057, + -0.036340754, + -0.010439548, + 0.055989947, + 0.0016819679, + 0.013206833, + 0.023251055, + -0.004787843, + 0.0106811365, + -0.03171397, + -0.0021559936, + -0.016881905, + -0.01862427, + 0.018917104, + -0.0072952383, + -0.010227243, + -0.012657769, + 0.005109961, + -0.027175037, + 0.008030985, + -0.037014272, + -0.018946389, + -0.03859558, + 0.016003402, + 0.00072888326, + 0.011837833, + 0.017745767, + 0.00578348, + -0.0567806, + -0.042988095, + -0.040616136, + 0.00510264, + -0.008052947, + -0.027482513, + 0.006178807, + -0.016676921, + -0.041523926, + 0.022855729, + 0.014861348, + -0.006010427, + 0.046794944, + 0.016589072, + -0.05060179, + -0.026560085, + 0.039591216, + -0.020469127, + -0.0010194299, + -0.033353843, + 0.0010057034, + -0.010695778, + 0.008594691, + -0.0025110554, + 0.043925166, + -0.034437332, + -0.029942323, + -0.012137988, + 0.017130814, + 0.00019834957, + 0.014217112, + -0.012467426, + 0.010351698, + 0.024671301, + 0.018433928, + -0.040996823, + -0.03487658, + 0.011347335, + 0.003953265, + 0.0394448, + 0.020703396, + 0.053705838, + 0.0068413448, + -0.0038873772, + -0.011405902, + 0.012218517, + -0.009956371, + 0.012394218, + -0.011369297, + -0.030396216, + 0.020600904, + -0.004908637, + -0.023661023, + 0.0041545886, + 0.061963767, + -0.009055905, + -0.0022163908, + 0.03598935, + 0.013865711, + 0.031596836, + -5.7423003e-05, + 0.00028597112, + -0.027101828, + -0.006427716, + 0.006248355, + -0.030044815, + 0.028287807, + -0.006614398, + -0.02610619, + -0.023763515, + 0.0057761595, + 0.0033511242, + 0.016296238, + 0.009744066, + -0.03188967, + 0.013448422, + -0.032768175, + -0.0040630777, + 0.019766325, + 0.00077418104, + -0.0031003847, + -0.018961031, + -0.017760409, + 0.009934409, + 0.019195298, + -0.0071195373, + 0.009809954, + -0.03136257, + 0.0045169713, + -0.062022336, + 0.009070547, + -0.024759153, + 0.00054357393, + -0.010768986, + -0.019575983, + 0.011728019, + 0.005670007, + -0.027848555, + -0.0036952046, + 0.02260682, + 0.008968055, + -0.047819864, + -0.015329883, + -0.007262294, + -0.031304, + -0.012262442, + 0.015022407, + 0.0053661913, + 0.019561341, + 0.018243587, + 0.03385166, + 0.036194336, + -0.025183761, + -0.00045755383, + -0.0021962584, + -0.024759153, + 0.08380922, + 0.025857281, + 0.015578792, + -0.024437035, + -0.01573985, + 0.006555831, + 0.002873438, + 0.016442655, + 0.024964137, + 0.020893738, + 0.015695926, + -0.0045608967, + 0.012277084, + 0.0118305115, + -0.019341715, + -0.034290913, + 0.0007929408, + 0.013997487, + -0.004736597, + -0.0037171673, + 0.04413015, + -0.01735044, + -0.007804038, + 0.0008267998, + -0.010666494, + -0.0074929013, + -0.025271613, + 0.0067022485, + 0.0071048955, + 0.035842936, + 0.0019656513, + 0.0033621055, + 0.0010972141, + 0.02787784, + -0.013506989, + -0.02159654, + 0.045272205, + 0.0020443504, + 0.018726762, + -0.013851069, + -0.0086312955, + -0.005135584, + 0.009341419, + -0.021332989, + -0.03639932, + 0.0041033425, + -0.009275531, + -0.025754789, + -0.042431712, + 0.03493515, + -0.015754493, + -0.022650745, + 0.010278489, + 0.014919915, + 0.0073904092, + -0.017335799, + -0.022255417, + 0.005497967, + -0.027731422, + 0.016515862, + -0.02831709, + -0.00705731, + -0.014334246, + 0.038068477, + 0.032943875, + -0.023265697, + -9.7230186e-05, + -0.02057162, + 0.020776603, + 0.037102126, + 0.0314797, + 0.020542337, + 0.02456881, + 0.0027819271, + -0.022006508, + 0.030044815, + 0.017409008, + -0.0005202387, + -0.006658323, + 0.011845153, + 0.0023353547, + -0.010739704, + 0.03598935, + 0.009378023, + -0.017789692, + 0.022138285, + -0.017496858, + 0.008272573, + -0.0009883163, + 0.003664091, + 0.017262591, + 0.046531394, + 0.017833618, + 0.010827553, + -0.021362273, + -0.0028624567, + -0.009663536, + 0.017189382, + 0.0079284925, + 0.0063215634, + -0.009487836, + -0.006079975, + -0.06577062, + 0.041436072, + -0.00773815, + 0.0033804076, + 0.00952444, + -0.021816166, + -0.011757303, + -0.016120536, + 0.021494048, + -0.033031724, + -0.00014916254, + -0.034993716, + 0.012569918, + -0.025857281, + -0.0040996824, + 0.04064542, + 0.0035268248, + 0.013558235, + -0.016735489, + 0.0075404868, + 0.019239223, + -0.01793611, + -0.00994905, + 0.0026410006, + 0.00025989057, + 0.014334246, + 0.012738299, + 0.013836428, + -0.013748577, + -0.00816276, + 0.0034316536, + -0.053588703, + 0.080646604, + 0.015710568, + -0.017218666, + -0.030396216, + 0.022518968, + 0.015285958, + -0.0071890857, + 0.023675665, + 0.017701842, + -0.022328626, + -0.021318348, + 0.00986852, + 0.0032742552, + 0.002516546, + -0.010446869, + 0.015403092, + -0.01922458, + 0.02363174, + -0.021757599, + -0.019078163, + -0.010666494, + 0.032006804, + -0.035667237, + -0.01249671, + 0.0022072396, + 0.017057607, + -0.01079095, + -0.021918658, + 0.012877394, + 0.062022336, + 0.02039592, + 0.002143182, + -0.013624122, + 0.035608668, + 0.008770391, + -0.02143548, + 0.012943283, + 0.014905273, + 0.0090778675, + 0.017247949, + 0.016340163, + -0.032416772, + -0.010783629, + 0.027262887, + 0.0071305186, + -0.01648658, + 0.01904888, + 0.01639873, + 0.017657917, + 0.0045389337, + -0.016281595, + -2.3807097e-06, + 0.019488132, + 0.0008785033, + 0.021494048, + 0.02014701, + 0.017628634, + -0.0037025255, + 0.008909488, + 0.018551063, + 0.014905273, + 0.014407455, + 0.011105746, + 0.024759153, + -0.007950455, + 0.016428012, + 0.013323967, + 0.0045425943, + 0.025154479, + -0.01973704, + -0.011742661, + 0.015798418, + -0.000675807, + -0.01981025, + 0.03417378, + 0.027057903, + 0.016808698, + 0.026677217, + 0.014004807, + -0.014231754, + 0.0058274055, + 0.009151076, + -0.0075551285, + 0.021054797, + -0.013609481, + -0.0023262035, + -0.014400134, + -0.0030399875, + 0.027585005, + 0.024422392, + 0.0050294315, + -0.010483474, + 0.03976692, + 0.0050806776, + 0.019253865, + 0.004341271, + -0.0033547846, + 0.029913038, + 0.0065851146, + -0.0004239236, + 0.010659174, + 0.008909488, + 0.007635658, + -0.012511352, + -0.018902464, + -0.025989057, + 0.024070991, + 0.017160099, + 0.0070243664, + 0.017394366, + -0.00798706, + 0.022401836, + 0.014143904, + 0.007796717, + 0.015168824, + 0.0028423243, + -0.0015538528, + 0.0215819, + -0.0007179019, + 0.0022731274, + -0.027848555, + -0.07227154, + -0.006478962, + -0.0009938069, + -0.006358168, + 0.018302152, + 0.02218221, + -0.04779058, + -0.02083517, + -0.0050440733, + 0.03332456, + 0.017570067, + -0.030864751, + 0.012101383, + 0.026662577, + -0.020864455, + -0.0040008505, + 0.032211788, + 0.0051392447, + 0.015183466, + -0.023573173, + 0.010864158, + -0.04225601, + -0.004209495, + -0.008799675, + -0.0007357465, + -0.013572876, + 0.030454783, + -0.001258273, + 0.004132626, + -0.020952305, + 0.009063226, + -0.018404644, + 0.015622717, + 0.018316794, + -0.021655107, + 0.008968055, + -0.009656216, + 0.0024195446, + 0.014941878, + 0.020703396, + 0.025740148, + -0.0015437866, + -0.051655997, + -0.036194336, + -0.0033053688, + 0.013514309, + -0.047907714, + -0.035491534, + 0.0017881204, + 0.029239519, + -0.013748577, + 0.004974525, + 0.021567257, + 0.013228796, + 0.009744066, + 0.018946389, + 0.0198981, + -0.022211492, + 0.010498115, + 0.0021889375, + -0.019619908, + 0.043515198, + 0.0052746804, + 0.0120281745, + -0.008462915, + 0.0050879987, + 0.007752792, + -0.031596836, + -0.004776862, + 0.04462797, + 0.02499342, + 0.03139185, + -0.010410264, + 0.04064542, + 0.000760912, + -0.0042058346, + -0.022928936, + -0.023573173, + -0.023661023, + 0.009019301, + 0.017526142, + 0.02262146, + 0.005746876, + 0.02262146, + -0.016632996, + -0.0019034239, + -0.008265252, + 0.013258079, + -0.006493604, + -0.022665385, + 0.024027066, + -0.0078772465, + -0.0077674338, + 0.01470761, + -0.0028423243, + 0.010666494, + 0.006519227, + -0.018126452, + 0.009224285, + 0.017204024, + 0.018668195, + -0.006735192, + 0.00901198, + -0.032006804, + -0.0020059159, + 0.0070499894, + -0.018799972, + 0.039825484, + 0.029049177, + 0.023236413, + 0.024158841, + -0.03921053, + -0.011449827, + 0.051509578, + 0.014466021, + -3.903506e-05, + 0.06489211, + 0.0058640097, + 0.015783777, + -0.0049891667, + 0.0068413448, + -0.020674111, + -0.049196187, + 0.014692969, + 0.0022822784, + 0.014861348, + 0.00416557, + -0.021552615, + -0.030835466, + -0.006672965, + -0.020952305, + -0.021464765, + -0.000118963995, + 0.0064569996 + ], + "index": 0, + "object": "embedding" + } + ], + "model": "text-embedding-3-small", + "object": "list", + "usage": { + "prompt_tokens": 10, + "total_tokens": 10 + } + } + }, + "is_streaming": false + }, + "id_normalization_mapping": {} +} diff --git a/tests/integration/responses/recordings/e7777f594336f5ad72b1c9b12db316808a248f008a07ea177c5c88c746004e04.json b/tests/integration/responses/recordings/e7777f594336f5ad72b1c9b12db316808a248f008a07ea177c5c88c746004e04.json new file mode 100644 index 000000000..f57b20355 --- /dev/null +++ b/tests/integration/responses/recordings/e7777f594336f5ad72b1c9b12db316808a248f008a07ea177c5c88c746004e04.json @@ -0,0 +1,639 @@ +{ + "test_id": "tests/integration/responses/test_tool_responses.py::test_response_sequential_file_search[openai_client-txt=openai/gpt-4o:emb=openai/text-embedding-3-small:dim=1536]", + "request": { + "method": "POST", + "url": "https://api.openai.com/v1/v1/chat/completions", + "headers": {}, + "body": { + "model": "gpt-4o", + "messages": [ + { + "role": "user", + "content": "How many experts does the Llama 4 Maverick model have?" + }, + { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "index": 0, + "id": "call_aPe1vS1v5bIwPgl789D5bfmW", + "type": "function", + "function": { + "name": "knowledge_search", + "arguments": "{\"query\":\"Llama 4 Maverick model number of experts\"}" + } + } + ] + }, + { + "role": "tool", + "tool_call_id": "call_aPe1vS1v5bIwPgl789D5bfmW", + "content": [ + { + "type": "text", + "text": "knowledge_search tool found 1 chunks:\nBEGIN of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "[1] document_id: file-5efa8a5a4b414ce98726c4e133a18747, score: 2.5781234969335522, attributes: {'filename': 'test_sequential_file_search.txt', 'document_id': 'file-5efa8a5a4b414ce98726c4e133a18747', 'token_count': 19.0, 'metadata_token_count': 11.0} (cite as <|file-5efa8a5a4b414ce98726c4e133a18747|>)\nThe Llama 4 Maverick model has 128 experts in its mixture of experts architecture.\n" + }, + { + "type": "text", + "text": "END of knowledge_search tool results.\n" + }, + { + "type": "text", + "text": "The above results were retrieved to help answer the user's query: \"Llama 4 Maverick model number of experts\". Use them as supporting information only in answering this query. Cite sources immediately at the end of sentences before punctuation, using `<|file-id|>` format (e.g., 'This is a fact <|file-Cn3MSNn72ENTiiq11Qda4A|>.'). Do not add extra punctuation. Use only the file IDs provided (do not invent new ones).\n" + } + ] + }, + { + "role": "assistant", + "content": "The Llama 4 Maverick model has 128 experts in its mixture of experts architecture <|file-5efa8a5a4b414ce98726c4e133a18747|>." + }, + { + "role": "user", + "content": "Can you tell me more about the architecture?" + } + ], + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "knowledge_search", + "description": "Search for information in a database.", + "parameters": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The query to search for. Can be a natural language sentence or keywords." + } + }, + "required": [ + "query" + ] + } + } + } + ] + }, + "endpoint": "/v1/chat/completions", + "model": "gpt-4o" + }, + "response": { + "body": [ + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": "assistant", + "tool_calls": [ + { + "index": 0, + "id": "call_ySLmLmkOHqFkNCZrQhrXtOqO", + "function": { + "arguments": "", + "name": "knowledge_search" + }, + "type": "function" + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "U" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "{\"", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "query", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "e6rByqKuAwR8vT" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "\":\"", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "uvCVa9Q9XrZzCW" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "L", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "3C" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "lama", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "WlwxWIRZuBm8zMC" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " ", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "Ri" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "4", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "B0" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " Maver", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "wh9WtlhhNdqRg" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "ick", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " model", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "3NfXKCEu7YGSJ" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " architecture", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "H5JoWf" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": " details", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "MTPeJFplAMI" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": [ + { + "index": 0, + "id": null, + "function": { + "arguments": "\"}", + "name": null + }, + "type": null + } + ] + }, + "finish_reason": null, + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "" + } + }, + { + "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", + "__data__": { + "id": "rec-e7777f594336", + "choices": [ + { + "delta": { + "content": null, + "function_call": null, + "refusal": null, + "role": null, + "tool_calls": null + }, + "finish_reason": "tool_calls", + "index": 0, + "logprobs": null + } + ], + "created": 0, + "model": "gpt-4o-2024-08-06", + "object": "chat.completion.chunk", + "service_tier": "default", + "system_fingerprint": "fp_f64f290af2", + "usage": null, + "obfuscation": "7" + } + } + ], + "is_streaming": true + }, + "id_normalization_mapping": { + "file-1": "file-5efa8a5a4b414ce98726c4e133a18747" + } +}