mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
- Add FeedbackProcessingError for feedback handling - Add validation for empty and long feedback messages - Add test coverage for edge cases Co-Authored-By: Joe Moura <joao@crewai.com>
88 lines
3.2 KiB
YAML
88 lines
3.2 KiB
YAML
interactions:
|
|
- request:
|
|
body: '{"messages": [{"role": "system", "content": "You are test role. test backstory\nYour
|
|
personal goal is: test goal\nTo give my best complete final answer to the task
|
|
respond using the exact following format:\n\nThought: I now can give a great
|
|
answer\nFinal Answer: Your final answer must be the great and the most complete
|
|
as possible, it must be outcome described.\n\nI MUST use these formats, my job
|
|
depends on it!"}, {"role": "user", "content": "\nCurrent Task: Test task\n\nThis
|
|
is the expected criteria for your final answer: Test output\nyou MUST return
|
|
the actual complete content as the final answer, not a summary.\n\nBegin! This
|
|
is VERY important to you, use the tools available and give your best Final Answer,
|
|
your job depends on it!\n\nThought:"}], "model": "gpt-4o-mini", "stop": ["\nObservation:"]}'
|
|
headers:
|
|
accept:
|
|
- application/json
|
|
accept-encoding:
|
|
- gzip, deflate
|
|
connection:
|
|
- keep-alive
|
|
content-length:
|
|
- '811'
|
|
content-type:
|
|
- application/json
|
|
host:
|
|
- api.openai.com
|
|
user-agent:
|
|
- OpenAI/Python 1.61.0
|
|
x-stainless-arch:
|
|
- x64
|
|
x-stainless-async:
|
|
- 'false'
|
|
x-stainless-lang:
|
|
- python
|
|
x-stainless-os:
|
|
- Linux
|
|
x-stainless-package-version:
|
|
- 1.61.0
|
|
x-stainless-raw-response:
|
|
- 'true'
|
|
x-stainless-retry-count:
|
|
- '0'
|
|
x-stainless-runtime:
|
|
- CPython
|
|
x-stainless-runtime-version:
|
|
- 3.12.7
|
|
method: POST
|
|
uri: https://api.openai.com/v1/chat/completions
|
|
response:
|
|
content: "{\n \"error\": {\n \"message\": \"Incorrect API key provided:
|
|
sk-proj-********************************************************************************************************************************************************sLcA.
|
|
You can find your API key at https://platform.openai.com/account/api-keys.\",\n
|
|
\ \"type\": \"invalid_request_error\",\n \"param\": null,\n \"code\":
|
|
\"invalid_api_key\"\n }\n}\n"
|
|
headers:
|
|
CF-Cache-Status:
|
|
- DYNAMIC
|
|
CF-RAY:
|
|
- 910f1c7ccc8127f2-SEA
|
|
Connection:
|
|
- keep-alive
|
|
Content-Length:
|
|
- '414'
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
Date:
|
|
- Wed, 12 Feb 2025 19:51:04 GMT
|
|
Server:
|
|
- cloudflare
|
|
Set-Cookie:
|
|
- __cf_bm=uoaTXzwc1Tflq58CAcpdIc5LJh9YYja0fjw1f6h9WAw-1739389864-1.0.1.1-Ka49kxdgi8wyYRkDXc.Os2ipvsC.ix_sMqVQlLOpR2S1GwoPVnJhFDI59yvwNeTdTgt.BGGvVafkitRFhUAikw;
|
|
path=/; expires=Wed, 12-Feb-25 20:21:04 GMT; domain=.api.openai.com; HttpOnly;
|
|
Secure; SameSite=None
|
|
- _cfuvid=0mZZJhB4.6zG3zb_yZrfjjsFaLI9JTnoBgNzXw6chnU-1739389864561-0.0.1.1-604800000;
|
|
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
|
|
X-Content-Type-Options:
|
|
- nosniff
|
|
alt-svc:
|
|
- h3=":443"; ma=86400
|
|
strict-transport-security:
|
|
- max-age=31536000; includeSubDomains; preload
|
|
vary:
|
|
- Origin
|
|
x-request-id:
|
|
- req_aad5d7ba9d16d23112bcbae8689a4630
|
|
http_version: HTTP/1.1
|
|
status_code: 401
|
|
version: 1
|