openai-reassembler 0.3.0

Reassemble OpenAI-compatible SSE streaming responses into non-streaming format
Documentation
{
  "chat_simple": {
    "endpoint": "/chat/completions",
    "body": {
      "messages": [{"role": "user", "content": "Reply with exactly: The quick brown fox."}],
      "logprobs": true
    },
    "allowed_mismatches": [
      "id", "created",
      "annotations", "audio", "function_call", "kv_transfer_params",
      "logprobs", "nvext", "prompt_logprobs", "prompt_token_ids", "prompt_tokens_details",
      "reasoning", "refusal", "service_tier", "stop_reason",
      "system_fingerprint", "token_ids", "tool_calls"
    ]
  },
  "chat_tools": {
    "endpoint": "/chat/completions",
    "body": {
      "messages": [{"role": "user", "content": "What is the weather in Paris?"}],
      "tools": [
        {
          "type": "function",
          "function": {
            "name": "get_weather",
            "parameters": {
              "type": "object",
              "properties": {"location": {"type": "string"}}
            }
          }
        }
      ],
      "tool_choice": "required"
    },
    "allowed_mismatches": [
      "id", "created", "model",
      "annotations", "audio", "function_call", "kv_transfer_params",
      "logprobs", "nvext", "prompt_logprobs", "prompt_token_ids", "prompt_tokens_details",
      "reasoning", "refusal", "service_tier", "stop_reason",
      "system_fingerprint", "token_ids"
    ]
  },
  "legacy_completion": {
    "endpoint": "/completions",
    "body": {
      "prompt": "The quick brown fox jumped over the lazy dog and then",
      "max_tokens": 50
    },
    "allowed_mismatches": [
      "id", "created",
      "kv_transfer_params", "logprobs", "nvext", "prompt_logprobs",
      "prompt_token_ids", "prompt_tokens_details",
      "service_tier", "stop_reason", "system_fingerprint", "token_ids"
    ]
  },
  "responses_simple": {
    "endpoint": "/responses",
    "body": {
      "input": "Reply with exactly: The quick brown fox."
    },
    "allowed_mismatches": [
      "id", "completed_at", "created_at",
      "logprobs", "nvext"
    ]
  }
}