ruby_llm-providers-qiniu 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/.flayignore +1 -0
  3. data/.github/workflows/ci.yml +28 -0
  4. data/.github/workflows/gitleaks.yml +23 -0
  5. data/.github/workflows/release.yml +36 -0
  6. data/.overcommit.yml +31 -0
  7. data/.rspec +2 -0
  8. data/.rubocop.yml +29 -0
  9. data/Archspec.rb +14 -0
  10. data/LICENSE +21 -0
  11. data/README.md +114 -0
  12. data/lib/ruby_llm/providers/qiniu.rb +134 -0
  13. data/models.json +859 -0
  14. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_anthropic_claude_sonnet_5_can_handle_a_multi_turn_conversation.yml +154 -0
  15. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_anthropic_claude_sonnet_5_can_have_a_basic_conversation.yml +61 -0
  16. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_anthropic_claude_sonnet_5_can_use_tools.yml +121 -0
  17. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_anthropic_claude_sonnet_5_returns_structured_output.yml +62 -0
  18. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_anthropic_claude_sonnet_5_returns_the_raw_response.yml +66 -0
  19. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_anthropic_claude_sonnet_5_supports_streaming_responses.yml +105 -0
  20. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_deepseek_deepseek_v4_1_flash_can_handle_a_multi_turn_conversation.yml +127 -0
  21. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_deepseek_deepseek_v4_1_flash_can_have_a_basic_conversation.yml +58 -0
  22. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_deepseek_deepseek_v4_1_flash_can_use_tools.yml +119 -0
  23. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_deepseek_deepseek_v4_1_flash_returns_structured_output.yml +59 -0
  24. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_deepseek_deepseek_v4_1_flash_returns_the_raw_response.yml +58 -0
  25. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_deepseek_deepseek_v4_1_flash_supports_streaming_responses.yml +89 -0
  26. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_gemini_3_1_flash_lite_preview_can_handle_a_multi_turn_conversation.yml +195 -0
  27. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_gemini_3_1_flash_lite_preview_can_have_a_basic_conversation.yml +96 -0
  28. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_gemini_3_1_flash_lite_preview_can_use_tools.yml +165 -0
  29. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_gemini_3_1_flash_lite_preview_returns_structured_output.yml +97 -0
  30. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_gemini_3_1_flash_lite_preview_returns_the_raw_response.yml +97 -0
  31. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_gemini_3_1_flash_lite_preview_supports_streaming_responses.yml +70 -0
  32. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_google_gemini_3_1_flash_lite_can_handle_a_multi_turn_conversation.yml +194 -0
  33. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_google_gemini_3_1_flash_lite_can_have_a_basic_conversation.yml +96 -0
  34. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_google_gemini_3_1_flash_lite_can_use_tools.yml +165 -0
  35. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_google_gemini_3_1_flash_lite_returns_structured_output.yml +97 -0
  36. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_google_gemini_3_1_flash_lite_returns_the_raw_response.yml +97 -0
  37. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_google_gemini_3_1_flash_lite_supports_streaming_responses.yml +70 -0
  38. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_google_gemini_3_8_flash_can_handle_a_multi_turn_conversation.yml +199 -0
  39. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_google_gemini_3_8_flash_can_have_a_basic_conversation.yml +97 -0
  40. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_google_gemini_3_8_flash_can_use_tools.yml +166 -0
  41. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_google_gemini_3_8_flash_returns_structured_output.yml +98 -0
  42. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_google_gemini_3_8_flash_returns_the_raw_response.yml +98 -0
  43. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_google_gemini_3_8_flash_supports_streaming_responses.yml +71 -0
  44. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_2_can_handle_a_multi_turn_conversation.yml +419 -0
  45. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_2_can_have_a_basic_conversation.yml +210 -0
  46. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_2_can_use_tools.yml +468 -0
  47. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_2_returns_structured_output.yml +229 -0
  48. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_2_returns_the_raw_response.yml +210 -0
  49. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_2_supports_streaming_responses.yml +102 -0
  50. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_4_can_handle_a_multi_turn_conversation.yml +421 -0
  51. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_4_can_have_a_basic_conversation.yml +157 -0
  52. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_4_can_use_tools.yml +469 -0
  53. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_4_mini_can_handle_a_multi_turn_conversation.yml +422 -0
  54. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_4_mini_can_have_a_basic_conversation.yml +211 -0
  55. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_4_mini_can_use_tools.yml +469 -0
  56. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_4_mini_returns_structured_output.yml +230 -0
  57. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_4_mini_returns_the_raw_response.yml +211 -0
  58. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_4_mini_supports_streaming_responses.yml +102 -0
  59. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_4_returns_structured_output.yml +230 -0
  60. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_4_returns_the_raw_response.yml +157 -0
  61. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_4_supports_streaming_responses.yml +102 -0
  62. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_6_luna_can_handle_a_multi_turn_conversation.yml +389 -0
  63. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_6_luna_can_have_a_basic_conversation.yml +241 -0
  64. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_6_luna_can_use_tools.yml +437 -0
  65. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_6_luna_returns_structured_output.yml +214 -0
  66. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_6_luna_returns_the_raw_response.yml +241 -0
  67. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_5_6_luna_supports_streaming_responses.yml +106 -0
  68. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_6_luna_can_handle_a_multi_turn_conversation.yml +389 -0
  69. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_6_luna_can_have_a_basic_conversation.yml +202 -0
  70. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_6_luna_can_use_tools.yml +437 -0
  71. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_6_luna_returns_structured_output.yml +221 -0
  72. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_6_luna_returns_the_raw_response.yml +202 -0
  73. data/spec/fixtures/vcr_cassettes/rubyllm_chat_qiniu_openai_gpt_6_luna_supports_streaming_responses.yml +112 -0
  74. data/spec/ruby_llm/chat_schema_spec.rb +30 -0
  75. data/spec/ruby_llm/chat_spec.rb +35 -0
  76. data/spec/ruby_llm/chat_streaming_spec.rb +22 -0
  77. data/spec/ruby_llm/chat_tools_spec.rb +32 -0
  78. data/spec/ruby_llm/embedding_spec.rb +49 -0
  79. data/spec/ruby_llm/image_spec.rb +23 -0
  80. data/spec/ruby_llm/models_spec.rb +11 -0
  81. data/spec/ruby_llm/moderation_spec.rb +22 -0
  82. data/spec/ruby_llm/providers/qiniu_spec.rb +103 -0
  83. data/spec/ruby_llm/rerank_spec.rb +23 -0
  84. data/spec/ruby_llm/speech_spec.rb +25 -0
  85. data/spec/ruby_llm/video_spec.rb +27 -0
  86. data/spec/spec_helper.rb +26 -0
  87. data/spec/support/models.rb +30 -0
  88. data/spec/support/rubyllm_configuration.rb +14 -0
  89. data/spec/support/vcr_configuration.rb +16 -0
  90. metadata +147 -0
@@ -0,0 +1,157 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: "<QINIU_BASE_URL>/bypass/openai/v1/responses"
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"model":"openai/gpt-5.4","input":[{"role":"user","content":"What is
9
+ the capital of France?"}],"stream":false,"store":false,"include":["reasoning.encrypted_content"]}'
10
+ headers:
11
+ User-Agent:
12
+ - Faraday v2.14.4
13
+ Authorization:
14
+ - Bearer <AUTH_TOKEN>
15
+ Content-Type:
16
+ - application/json
17
+ Accept-Encoding:
18
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
19
+ Accept:
20
+ - "*/*"
21
+ response:
22
+ status:
23
+ code: 200
24
+ message: OK
25
+ headers:
26
+ Content-Type:
27
+ - application/json; charset=utf-8
28
+ Access-Control-Allow-Credentials:
29
+ - 'true'
30
+ Access-Control-Allow-Headers:
31
+ - ''
32
+ Access-Control-Allow-Methods:
33
+ - GET, POST, PUT, PATCH, DELETE, OPTIONS
34
+ Access-Control-Allow-Origin:
35
+ - ''
36
+ Access-Control-Expose-Headers:
37
+ - Http_x_reqid
38
+ Http-X-Reqid:
39
+ - chatptrsp-5f4cbc4200e64250a99fdc010bc408b5
40
+ Request-Id:
41
+ - 07426215-8758-9d1e-8259-46bd88e9dbfd
42
+ X-Request-Id:
43
+ - 07426215-8758-9d1e-8259-46bd88e9dbfd
44
+ Server:
45
+ - APISIX
46
+ Cache-Control:
47
+ - no-cache
48
+ Transfer-Encoding:
49
+ - chunked
50
+ Connection:
51
+ - keep-alive
52
+ Date:
53
+ - Mon, 28 Sep 2026 07:55:19 GMT
54
+ Eo-Log-Uuid:
55
+ - '1452566510295703465'
56
+ Eo-Cache-Status:
57
+ - MISS
58
+ body:
59
+ encoding: UTF-8
60
+ string: |-
61
+ {
62
+ "id": "resp_0ea28d1023d1b7e7016aba1d68356087d0b938b64d9961b9be",
63
+ "object": "response",
64
+ "created_at": 1790582120,
65
+ "status": "completed",
66
+ "access_programs": null,
67
+ "background": false,
68
+ "billing": {
69
+ "payer": "developer"
70
+ },
71
+ "completed_at": 1790582121,
72
+ "error": null,
73
+ "frequency_penalty": 0.0,
74
+ "incomplete_details": null,
75
+ "instructions": null,
76
+ "max_output_tokens": null,
77
+ "max_tool_calls": null,
78
+ "model": "openai/gpt-5.4",
79
+ "moderation": null,
80
+ "output": [
81
+ {
82
+ "id": "msg_0ea28d1023d1b7e7016aba1d68e50087d08a348081f2b2bd57",
83
+ "type": "message",
84
+ "status": "completed",
85
+ "content": [
86
+ {
87
+ "type": "output_text",
88
+ "annotations": [],
89
+ "logprobs": [],
90
+ "text": "Paris."
91
+ }
92
+ ],
93
+ "phase": "final_answer",
94
+ "role": "assistant"
95
+ }
96
+ ],
97
+ "parallel_tool_calls": true,
98
+ "presence_penalty": 0.0,
99
+ "previous_response_id": null,
100
+ "prompt_cache_key": null,
101
+ "prompt_cache_retention": "24h",
102
+ "reasoning": {
103
+ "context": "current_turn",
104
+ "effort": "none",
105
+ "mode": "standard",
106
+ "summary": null
107
+ },
108
+ "safety_identifier": null,
109
+ "service_tier": "default",
110
+ "store": false,
111
+ "temperature": 1.0,
112
+ "text": {
113
+ "format": {
114
+ "type": "text"
115
+ },
116
+ "verbosity": "medium"
117
+ },
118
+ "tool_choice": "auto",
119
+ "tool_usage": {
120
+ "image_gen": {
121
+ "input_tokens": 0,
122
+ "input_tokens_details": {
123
+ "image_tokens": 0,
124
+ "text_tokens": 0
125
+ },
126
+ "output_tokens": 0,
127
+ "output_tokens_details": {
128
+ "image_tokens": 0,
129
+ "text_tokens": 0
130
+ },
131
+ "total_tokens": 0
132
+ },
133
+ "web_search": {
134
+ "num_requests": 0
135
+ }
136
+ },
137
+ "tools": [],
138
+ "top_logprobs": 0,
139
+ "top_p": 0.98,
140
+ "truncation": "disabled",
141
+ "usage": {
142
+ "input_tokens": 13,
143
+ "input_tokens_details": {
144
+ "cache_write_tokens": 0,
145
+ "cached_tokens": 0
146
+ },
147
+ "output_tokens": 6,
148
+ "output_tokens_details": {
149
+ "reasoning_tokens": 0
150
+ },
151
+ "total_tokens": 19
152
+ },
153
+ "user": null,
154
+ "metadata": {}
155
+ }
156
+ recorded_at: Mon, 28 Sep 2026 07:55:21 GMT
157
+ recorded_with: VCR 6.4.0
@@ -0,0 +1,102 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: "<QINIU_BASE_URL>/bypass/openai/v1/responses"
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"model":"openai/gpt-5.4","input":[{"role":"user","content":"Count
9
+ from 1 to 3"}],"stream":true,"store":false,"include":["reasoning.encrypted_content"]}'
10
+ headers:
11
+ User-Agent:
12
+ - Faraday v2.14.4
13
+ Authorization:
14
+ - Bearer <AUTH_TOKEN>
15
+ Content-Type:
16
+ - application/json
17
+ Accept-Encoding:
18
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
19
+ Accept:
20
+ - "*/*"
21
+ response:
22
+ status:
23
+ code: 200
24
+ message: OK
25
+ headers:
26
+ Content-Type:
27
+ - text/event-stream
28
+ Access-Control-Allow-Credentials:
29
+ - 'true'
30
+ Access-Control-Allow-Headers:
31
+ - ''
32
+ Access-Control-Allow-Methods:
33
+ - GET, POST, PUT, PATCH, DELETE, OPTIONS
34
+ Access-Control-Allow-Origin:
35
+ - ''
36
+ Access-Control-Expose-Headers:
37
+ - Http_x_reqid
38
+ Http-X-Reqid:
39
+ - chatptrsp-aab5af96469b42b4835ebb815e26c204
40
+ Request-Id:
41
+ - b7bb1dd0-7fd0-41b8-9139-c9e1bf4e06b7
42
+ X-Request-Id:
43
+ - b7bb1dd0-7fd0-41b8-9139-c9e1bf4e06b7
44
+ Server:
45
+ - APISIX
46
+ Cache-Control:
47
+ - no-cache
48
+ Transfer-Encoding:
49
+ - chunked
50
+ Connection:
51
+ - keep-alive
52
+ Date:
53
+ - Mon, 28 Sep 2026 07:50:34 GMT
54
+ Eo-Log-Uuid:
55
+ - '12860901292482091998'
56
+ Eo-Cache-Status:
57
+ - MISS
58
+ body:
59
+ encoding: UTF-8
60
+ string: |+
61
+ event: response.created
62
+ data: {"type":"response.created","response":{"id":"resp_0a90cd34c3580d8e016aba1c4bf68087d0a93381e33c253b0d","object":"response","created_at":1790581835,"status":"in_progress","access_programs":null,"background":false,"completed_at":null,"error":null,"frequency_penalty":0.0,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"model":"openai/gpt-5.4","moderation":null,"output":[],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":"24h","reasoning":{"context":"current_turn","effort":"none","mode":"standard","summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tool_usage":{"image_gen":{"input_tokens":0,"input_tokens_details":{"image_tokens":0,"text_tokens":0},"output_tokens":0,"output_tokens_details":{"image_tokens":0,"text_tokens":0},"total_tokens":0},"web_search":{"num_requests":0}},"tools":[],"top_logprobs":0,"top_p":0.98,"truncation":"disabled","usage":null,"user":null,"metadata":{}},"sequence_number":0}
63
+
64
+ event: response.in_progress
65
+ data: {"type":"response.in_progress","response":{"id":"resp_0a90cd34c3580d8e016aba1c4bf68087d0a93381e33c253b0d","object":"response","created_at":1790581835,"status":"in_progress","access_programs":null,"background":false,"completed_at":null,"error":null,"frequency_penalty":0.0,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"model":"openai/gpt-5.4","moderation":null,"output":[],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":"24h","reasoning":{"context":"current_turn","effort":"none","mode":"standard","summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tool_usage":{"image_gen":{"input_tokens":0,"input_tokens_details":{"image_tokens":0,"text_tokens":0},"output_tokens":0,"output_tokens_details":{"image_tokens":0,"text_tokens":0},"total_tokens":0},"web_search":{"num_requests":0}},"tools":[],"top_logprobs":0,"top_p":0.98,"truncation":"disabled","usage":null,"user":null,"metadata":{}},"sequence_number":1}
66
+
67
+ event: response.output_item.added
68
+ data: {"type":"response.output_item.added","item":{"id":"msg_0a90cd34c3580d8e016aba1c4c5a8087d088e6f85f19542f1c","type":"message","status":"in_progress","content":[],"phase":"final_answer","role":"assistant"},"output_index":0,"sequence_number":2}
69
+
70
+ event: response.content_part.added
71
+ data: {"type":"response.content_part.added","content_index":0,"item_id":"msg_0a90cd34c3580d8e016aba1c4c5a8087d088e6f85f19542f1c","output_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":""},"sequence_number":3}
72
+
73
+ event: response.output_text.delta
74
+ data: {"type":"response.output_text.delta","content_index":0,"delta":"1","item_id":"msg_0a90cd34c3580d8e016aba1c4c5a8087d088e6f85f19542f1c","logprobs":[],"obfuscation":"XFChipjQSQqydJa","output_index":0,"sequence_number":4}
75
+
76
+ event: response.output_text.delta
77
+ data: {"type":"response.output_text.delta","content_index":0,"delta":"\n","item_id":"msg_0a90cd34c3580d8e016aba1c4c5a8087d088e6f85f19542f1c","logprobs":[],"obfuscation":"5Cu9FsKy6Kl5hQo","output_index":0,"sequence_number":5}
78
+
79
+ event: response.output_text.delta
80
+ data: {"type":"response.output_text.delta","content_index":0,"delta":"2","item_id":"msg_0a90cd34c3580d8e016aba1c4c5a8087d088e6f85f19542f1c","logprobs":[],"obfuscation":"ZbExzjiOM8QPX70","output_index":0,"sequence_number":6}
81
+
82
+ event: response.output_text.delta
83
+ data: {"type":"response.output_text.delta","content_index":0,"delta":"\n","item_id":"msg_0a90cd34c3580d8e016aba1c4c5a8087d088e6f85f19542f1c","logprobs":[],"obfuscation":"9oB4aMBc0IhJe2E","output_index":0,"sequence_number":7}
84
+
85
+ event: response.output_text.delta
86
+ data: {"type":"response.output_text.delta","content_index":0,"delta":"3","item_id":"msg_0a90cd34c3580d8e016aba1c4c5a8087d088e6f85f19542f1c","logprobs":[],"obfuscation":"gwnxBcHdBUhe7je","output_index":0,"sequence_number":8}
87
+
88
+ event: response.output_text.done
89
+ data: {"type":"response.output_text.done","content_index":0,"item_id":"msg_0a90cd34c3580d8e016aba1c4c5a8087d088e6f85f19542f1c","logprobs":[],"output_index":0,"sequence_number":9,"text":"1\n2\n3"}
90
+
91
+ event: response.content_part.done
92
+ data: {"type":"response.content_part.done","content_index":0,"item_id":"msg_0a90cd34c3580d8e016aba1c4c5a8087d088e6f85f19542f1c","output_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":"1\n2\n3"},"sequence_number":10}
93
+
94
+ event: response.output_item.done
95
+ data: {"type":"response.output_item.done","item":{"id":"msg_0a90cd34c3580d8e016aba1c4c5a8087d088e6f85f19542f1c","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"1\n2\n3"}],"phase":"final_answer","role":"assistant"},"output_index":0,"sequence_number":11}
96
+
97
+ event: response.completed
98
+ data: {"type":"response.completed","response":{"id":"resp_0a90cd34c3580d8e016aba1c4bf68087d0a93381e33c253b0d","object":"response","created_at":1790581835,"status":"completed","access_programs":null,"background":false,"completed_at":1790581836,"error":null,"frequency_penalty":0.0,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"model":"openai/gpt-5.4","moderation":null,"output":[{"id":"msg_0a90cd34c3580d8e016aba1c4c5a8087d088e6f85f19542f1c","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"1\n2\n3"}],"phase":"final_answer","role":"assistant"}],"parallel_tool_calls":true,"presence_penalty":0.0,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":"24h","reasoning":{"context":"current_turn","effort":"none","mode":"standard","summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tool_usage":{"image_gen":{"input_tokens":0,"input_tokens_details":{"image_tokens":0,"text_tokens":0},"output_tokens":0,"output_tokens_details":{"image_tokens":0,"text_tokens":0},"total_tokens":0},"web_search":{"num_requests":0}},"tools":[],"top_logprobs":0,"top_p":0.98,"truncation":"disabled","usage":{"input_tokens":13,"input_tokens_details":{"cache_write_tokens":0,"cached_tokens":0},"output_tokens":9,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":22},"user":null,"metadata":{}},"sequence_number":12}
99
+
100
+ recorded_at: Mon, 28 Sep 2026 07:50:36 GMT
101
+ recorded_with: VCR 6.4.0
102
+ ...
@@ -0,0 +1,389 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: "<QINIU_BASE_URL>/bypass/openai/v1/responses"
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"model":"openai/gpt-5.6-luna","input":[{"role":"user","content":"Who
9
+ created the programming language Ruby?"}],"stream":false,"store":false,"include":["reasoning.encrypted_content"]}'
10
+ headers:
11
+ User-Agent:
12
+ - Faraday v2.14.4
13
+ Authorization:
14
+ - Bearer <AUTH_TOKEN>
15
+ Content-Type:
16
+ - application/json
17
+ Accept-Encoding:
18
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
19
+ Accept:
20
+ - "*/*"
21
+ response:
22
+ status:
23
+ code: 200
24
+ message: OK
25
+ headers:
26
+ Content-Type:
27
+ - application/json
28
+ Access-Control-Allow-Credentials:
29
+ - 'true'
30
+ Access-Control-Allow-Headers:
31
+ - ''
32
+ Access-Control-Allow-Methods:
33
+ - GET, POST, PUT, PATCH, DELETE, OPTIONS
34
+ Access-Control-Allow-Origin:
35
+ - ''
36
+ Access-Control-Expose-Headers:
37
+ - Http_x_reqid
38
+ Http-X-Reqid:
39
+ - chatptrsp-5918b07907ef4532aa0c6f1bf2d3cae3
40
+ X-Ratelimit-Abusepenalty-Active:
41
+ - 'False'
42
+ X-Ratelimit-Key:
43
+ - gpt-5.6-luna
44
+ X-Ratelimit-Limit-Requests:
45
+ - '15000'
46
+ X-Ratelimit-Limit-Tokens:
47
+ - '15000000'
48
+ X-Ratelimit-Remaining-Requests:
49
+ - '14999'
50
+ X-Ratelimit-Remaining-Tokens:
51
+ - '14999990'
52
+ X-Ratelimit-Renewalperiod-Requests:
53
+ - '60'
54
+ X-Ratelimit-Renewalperiod-Tokens:
55
+ - '60'
56
+ X-Ratelimit-Reset-Requests:
57
+ - '0'
58
+ X-Ratelimit-Reset-Tokens:
59
+ - '0'
60
+ X-Request-Id:
61
+ - b9c215e1-6028-4d55-9a57-d2db6fedc6ed
62
+ Server:
63
+ - APISIX
64
+ Cache-Control:
65
+ - no-cache
66
+ Transfer-Encoding:
67
+ - chunked
68
+ Connection:
69
+ - keep-alive
70
+ Date:
71
+ - Wed, 30 Sep 2026 04:44:12 GMT
72
+ Eo-Log-Uuid:
73
+ - '864409409814422274'
74
+ Eo-Cache-Status:
75
+ - MISS
76
+ body:
77
+ encoding: UTF-8
78
+ string: |-
79
+ {
80
+ "id": "resp_009ed0a79e253f54016abc939d776c819495cf07d224d1e070",
81
+ "object": "response",
82
+ "created_at": 1790743453,
83
+ "status": "completed",
84
+ "background": false,
85
+ "completed_at": 1790743454,
86
+ "content_filters": [
87
+ {
88
+ "blocked": false,
89
+ "source_type": "prompt",
90
+ "content_filter_raw": [],
91
+ "content_filter_results": {},
92
+ "content_filter_offsets": {
93
+ "start_offset": 0,
94
+ "end_offset": 820,
95
+ "check_offset": 0
96
+ }
97
+ },
98
+ {
99
+ "blocked": false,
100
+ "source_type": "completion",
101
+ "content_filter_raw": [],
102
+ "content_filter_results": {},
103
+ "content_filter_offsets": {
104
+ "start_offset": 0,
105
+ "end_offset": 99,
106
+ "check_offset": 0
107
+ }
108
+ }
109
+ ],
110
+ "error": null,
111
+ "frequency_penalty": 0.0,
112
+ "incomplete_details": null,
113
+ "instructions": null,
114
+ "max_output_tokens": null,
115
+ "max_tool_calls": null,
116
+ "model": "openai/gpt-5.6-luna",
117
+ "moderation": null,
118
+ "output": [
119
+ {
120
+ "id": "msg_009ed0a79e253f54016abc939dd4b0819493fd01fa3d4d4a9e",
121
+ "type": "message",
122
+ "status": "completed",
123
+ "content": [
124
+ {
125
+ "type": "output_text",
126
+ "annotations": [],
127
+ "logprobs": [],
128
+ "text": "Ruby was created by **Yukihiro \u201cMatz\u201d Matsumoto**, a Japanese computer scientist, in the mid-1990s."
129
+ }
130
+ ],
131
+ "phase": "final_answer",
132
+ "role": "assistant"
133
+ }
134
+ ],
135
+ "parallel_tool_calls": true,
136
+ "presence_penalty": 0.0,
137
+ "previous_response_id": null,
138
+ "prompt_cache_key": null,
139
+ "prompt_cache_retention": "24h",
140
+ "reasoning": {
141
+ "context": "all_turns",
142
+ "effort": "medium",
143
+ "mode": "standard",
144
+ "summary": null
145
+ },
146
+ "safety_identifier": null,
147
+ "service_tier": "default",
148
+ "store": false,
149
+ "temperature": 1.0,
150
+ "text": {
151
+ "format": {
152
+ "type": "text"
153
+ },
154
+ "verbosity": "medium"
155
+ },
156
+ "tool_choice": "auto",
157
+ "tool_usage": {
158
+ "image_gen": {
159
+ "input_tokens": 0,
160
+ "input_tokens_details": {
161
+ "image_tokens": 0,
162
+ "text_tokens": 0
163
+ },
164
+ "output_tokens": 0,
165
+ "output_tokens_details": {
166
+ "image_tokens": 0,
167
+ "text_tokens": 0
168
+ },
169
+ "total_tokens": 0
170
+ },
171
+ "web_search": {
172
+ "num_requests": 0
173
+ }
174
+ },
175
+ "tools": [],
176
+ "top_logprobs": 0,
177
+ "top_p": 0.98,
178
+ "truncation": "disabled",
179
+ "usage": {
180
+ "input_tokens": 13,
181
+ "input_tokens_details": {
182
+ "cache_write_tokens": 0,
183
+ "cached_tokens": 0
184
+ },
185
+ "output_tokens": 34,
186
+ "output_tokens_details": {
187
+ "reasoning_tokens": 0
188
+ },
189
+ "total_tokens": 47
190
+ },
191
+ "user": null,
192
+ "metadata": {}
193
+ }
194
+ recorded_at: Wed, 30 Sep 2026 04:44:14 GMT
195
+ - request:
196
+ method: post
197
+ uri: "<QINIU_BASE_URL>/bypass/openai/v1/responses"
198
+ body:
199
+ encoding: UTF-8
200
+ string: '{"model":"openai/gpt-5.6-luna","input":[{"role":"user","content":"Who
201
+ created the programming language Ruby?"},{"role":"assistant","content":[{"type":"output_text","text":"Ruby
202
+ was created by **Yukihiro “Matz” Matsumoto**, a Japanese computer scientist,
203
+ in the mid-1990s."}]},{"role":"user","content":"What year was Ruby first released?"}],"stream":false,"store":false,"include":["reasoning.encrypted_content"]}'
204
+ headers:
205
+ User-Agent:
206
+ - Faraday v2.14.4
207
+ Authorization:
208
+ - Bearer <AUTH_TOKEN>
209
+ Content-Type:
210
+ - application/json
211
+ Accept-Encoding:
212
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
213
+ Accept:
214
+ - "*/*"
215
+ response:
216
+ status:
217
+ code: 200
218
+ message: OK
219
+ headers:
220
+ Content-Type:
221
+ - application/json
222
+ Access-Control-Allow-Credentials:
223
+ - 'true'
224
+ Access-Control-Allow-Headers:
225
+ - ''
226
+ Access-Control-Allow-Methods:
227
+ - GET, POST, PUT, PATCH, DELETE, OPTIONS
228
+ Access-Control-Allow-Origin:
229
+ - ''
230
+ Access-Control-Expose-Headers:
231
+ - Http_x_reqid
232
+ Http-X-Reqid:
233
+ - chatptrsp-90aaa8c13cb6467eb338e6d57bf7c694
234
+ X-Ratelimit-Abusepenalty-Active:
235
+ - 'False'
236
+ X-Ratelimit-Key:
237
+ - gpt-5.6-luna
238
+ X-Ratelimit-Limit-Requests:
239
+ - '15000'
240
+ X-Ratelimit-Limit-Tokens:
241
+ - '15000000'
242
+ X-Ratelimit-Remaining-Requests:
243
+ - '14999'
244
+ X-Ratelimit-Remaining-Tokens:
245
+ - '14999957'
246
+ X-Ratelimit-Renewalperiod-Requests:
247
+ - '60'
248
+ X-Ratelimit-Renewalperiod-Tokens:
249
+ - '60'
250
+ X-Ratelimit-Reset-Requests:
251
+ - '0'
252
+ X-Ratelimit-Reset-Tokens:
253
+ - '0'
254
+ X-Request-Id:
255
+ - c4e76fee-2fa6-4509-b1cf-9ac3b25287c7
256
+ Server:
257
+ - APISIX
258
+ Cache-Control:
259
+ - no-cache
260
+ Transfer-Encoding:
261
+ - chunked
262
+ Connection:
263
+ - keep-alive
264
+ Date:
265
+ - Wed, 30 Sep 2026 04:44:14 GMT
266
+ Eo-Log-Uuid:
267
+ - '8694196613560039140'
268
+ Eo-Cache-Status:
269
+ - MISS
270
+ body:
271
+ encoding: UTF-8
272
+ string: |-
273
+ {
274
+ "id": "resp_0501c1c29baeccca016abc939f72108196935f62f90f40bdb0",
275
+ "object": "response",
276
+ "created_at": 1790743455,
277
+ "status": "completed",
278
+ "background": false,
279
+ "completed_at": 1790743456,
280
+ "content_filters": [
281
+ {
282
+ "blocked": false,
283
+ "source_type": "prompt",
284
+ "content_filter_raw": [],
285
+ "content_filter_results": {},
286
+ "content_filter_offsets": {
287
+ "start_offset": 0,
288
+ "end_offset": 1024,
289
+ "check_offset": 0
290
+ }
291
+ },
292
+ {
293
+ "blocked": false,
294
+ "source_type": "completion",
295
+ "content_filter_raw": [],
296
+ "content_filter_results": {},
297
+ "content_filter_offsets": {
298
+ "start_offset": 0,
299
+ "end_offset": 45,
300
+ "check_offset": 0
301
+ }
302
+ }
303
+ ],
304
+ "error": null,
305
+ "frequency_penalty": 0.0,
306
+ "incomplete_details": null,
307
+ "instructions": null,
308
+ "max_output_tokens": null,
309
+ "max_tool_calls": null,
310
+ "model": "openai/gpt-5.6-luna",
311
+ "moderation": null,
312
+ "output": [
313
+ {
314
+ "id": "msg_0501c1c29baeccca016abc939ffa088196aee7b1776a484f49",
315
+ "type": "message",
316
+ "status": "completed",
317
+ "content": [
318
+ {
319
+ "type": "output_text",
320
+ "annotations": [],
321
+ "logprobs": [],
322
+ "text": "Ruby was first publicly released in **1995**."
323
+ }
324
+ ],
325
+ "phase": "final_answer",
326
+ "role": "assistant"
327
+ }
328
+ ],
329
+ "parallel_tool_calls": true,
330
+ "presence_penalty": 0.0,
331
+ "previous_response_id": null,
332
+ "prompt_cache_key": null,
333
+ "prompt_cache_retention": "24h",
334
+ "reasoning": {
335
+ "context": "all_turns",
336
+ "effort": "medium",
337
+ "mode": "standard",
338
+ "summary": null
339
+ },
340
+ "safety_identifier": null,
341
+ "service_tier": "default",
342
+ "store": false,
343
+ "temperature": 1.0,
344
+ "text": {
345
+ "format": {
346
+ "type": "text"
347
+ },
348
+ "verbosity": "medium"
349
+ },
350
+ "tool_choice": "auto",
351
+ "tool_usage": {
352
+ "image_gen": {
353
+ "input_tokens": 0,
354
+ "input_tokens_details": {
355
+ "image_tokens": 0,
356
+ "text_tokens": 0
357
+ },
358
+ "output_tokens": 0,
359
+ "output_tokens_details": {
360
+ "image_tokens": 0,
361
+ "text_tokens": 0
362
+ },
363
+ "total_tokens": 0
364
+ },
365
+ "web_search": {
366
+ "num_requests": 0
367
+ }
368
+ },
369
+ "tools": [],
370
+ "top_logprobs": 0,
371
+ "top_p": 0.98,
372
+ "truncation": "disabled",
373
+ "usage": {
374
+ "input_tokens": 60,
375
+ "input_tokens_details": {
376
+ "cache_write_tokens": 0,
377
+ "cached_tokens": 0
378
+ },
379
+ "output_tokens": 15,
380
+ "output_tokens_details": {
381
+ "reasoning_tokens": 0
382
+ },
383
+ "total_tokens": 75
384
+ },
385
+ "user": null,
386
+ "metadata": {}
387
+ }
388
+ recorded_at: Wed, 30 Sep 2026 04:44:16 GMT
389
+ recorded_with: VCR 6.4.0