mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-01 19:45:19 +02:00
* Start refactor * Interface updates * Rework Assistant, Provider, and tests for better domain boundaries * Consolidate and simplify OpenAI provider and provider concepts * Clean up assistant streaming * Improve assistant message orchestration logic * Clean up "thinking" UI interactions * Remove stale class * Regenerate VCR test responses
120 lines
3.5 KiB
YAML
120 lines
3.5 KiB
YAML
---
|
|
http_interactions:
|
|
- request:
|
|
method: post
|
|
uri: https://api.openai.com/v1/responses
|
|
body:
|
|
encoding: UTF-8
|
|
string: '{"model":"gpt-4o","input":[{"role":"user","content":"This is a chat
|
|
test. If it''s working, respond with a single word: Yes"}],"instructions":null,"tools":[],"previous_response_id":null,"stream":null}'
|
|
headers:
|
|
Content-Type:
|
|
- application/json
|
|
Authorization:
|
|
- Bearer <OPENAI_ACCESS_TOKEN>
|
|
Accept-Encoding:
|
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
Accept:
|
|
- "*/*"
|
|
User-Agent:
|
|
- Ruby
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Date:
|
|
- Mon, 31 Mar 2025 20:38:55 GMT
|
|
Content-Type:
|
|
- application/json
|
|
Transfer-Encoding:
|
|
- chunked
|
|
Connection:
|
|
- keep-alive
|
|
Openai-Version:
|
|
- '2020-10-01'
|
|
Openai-Organization:
|
|
- "<OPENAI_ORGANIZATION_ID>"
|
|
X-Request-Id:
|
|
- req_f99033a5841a7d9357ee08d301ad634e
|
|
Openai-Processing-Ms:
|
|
- '713'
|
|
Strict-Transport-Security:
|
|
- max-age=31536000; includeSubDomains; preload
|
|
Cf-Cache-Status:
|
|
- DYNAMIC
|
|
Set-Cookie:
|
|
- __cf_bm=UOaolWyAE3WXhLfg9c3KmO4d_Nq6t9cedTfZ6hznYEE-1743453535-1.0.1.1-GyQq_xeRpsyxxp8QQja5Bvo2XqUGfXHNGehtQoPV.BIgyLbERSIqJAK0IEKcYgpuLCyvQdlMNGqtdBHB6r5XMPHjOSMN1bTQYJHLsvlD5Z4;
|
|
path=/; expires=Mon, 31-Mar-25 21:08:55 GMT; domain=.api.openai.com; HttpOnly;
|
|
Secure; SameSite=None
|
|
- _cfuvid=_zDj2dj75eLeGSzZxpBpzHxYg4gJpEfQpcnT9aCJXqM-1743453535930-0.0.1.1-604800000;
|
|
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
Server:
|
|
- cloudflare
|
|
Cf-Ray:
|
|
- 9292a7325d09cf53-CMH
|
|
Alt-Svc:
|
|
- h3=":443"; ma=86400
|
|
body:
|
|
encoding: ASCII-8BIT
|
|
string: |-
|
|
{
|
|
"id": "resp_67eafd5f2b7c81928d6834e7f4d26deb0bfadc995fda2b45",
|
|
"object": "response",
|
|
"created_at": 1743453535,
|
|
"status": "completed",
|
|
"error": null,
|
|
"incomplete_details": null,
|
|
"instructions": null,
|
|
"max_output_tokens": null,
|
|
"model": "gpt-4o-2024-08-06",
|
|
"output": [
|
|
{
|
|
"type": "message",
|
|
"id": "msg_67eafd5fba44819287b79107821a818b0bfadc995fda2b45",
|
|
"status": "completed",
|
|
"role": "assistant",
|
|
"content": [
|
|
{
|
|
"type": "output_text",
|
|
"text": "Yes",
|
|
"annotations": []
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"parallel_tool_calls": true,
|
|
"previous_response_id": null,
|
|
"reasoning": {
|
|
"effort": null,
|
|
"generate_summary": null
|
|
},
|
|
"store": true,
|
|
"temperature": 1.0,
|
|
"text": {
|
|
"format": {
|
|
"type": "text"
|
|
}
|
|
},
|
|
"tool_choice": "auto",
|
|
"tools": [],
|
|
"top_p": 1.0,
|
|
"truncation": "disabled",
|
|
"usage": {
|
|
"input_tokens": 25,
|
|
"input_tokens_details": {
|
|
"cached_tokens": 0
|
|
},
|
|
"output_tokens": 2,
|
|
"output_tokens_details": {
|
|
"reasoning_tokens": 0
|
|
},
|
|
"total_tokens": 27
|
|
},
|
|
"user": null,
|
|
"metadata": {}
|
|
}
|
|
recorded_at: Mon, 31 Mar 2025 20:38:55 GMT
|
|
recorded_with: VCR 6.3.1
|