-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Adrian Cole <[email protected]>
- Loading branch information
1 parent
a708ba2
commit 42e5d99
Showing
3 changed files
with
100 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
interactions: | ||
- request: | ||
body: '{"messages": [{"role": "system", "content": "You are a helpful assistant. | ||
Expect to need to read a file using read_file."}, {"role": "user", "content": | ||
"What are the contents of this file? test.txt"}], "model": "gpt-4o-mini", "tools": | ||
[{"type": "function", "function": {"name": "read_file", "description": "Read | ||
the contents of the file.", "parameters": {"type": "object", "properties": {"filename": | ||
{"type": "string", "description": "The path to the file, which can be relative | ||
or\nabsolute. If it is a plain filename, it is assumed to be in the\ncurrent | ||
working directory."}}, "required": ["filename"]}}}]}' | ||
headers: | ||
accept: | ||
- '*/*' | ||
accept-encoding: | ||
- gzip, deflate | ||
api-key: | ||
- test_azure_api_key | ||
connection: | ||
- keep-alive | ||
content-length: | ||
- '608' | ||
content-type: | ||
- application/json | ||
host: | ||
- test.openai.azure.com | ||
user-agent: | ||
- python-httpx/0.27.2 | ||
method: POST | ||
uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-05-01-preview | ||
response: | ||
body: | ||
string: '{"choices":[{"content_filter_results":{},"finish_reason":"tool_calls","index":0,"logprobs":null,"message":{"content":null,"role":"assistant","tool_calls":[{"function":{"arguments":"{\n \"filename\": | ||
\"test.txt\"\n}","name":"read_file"},"id":"call_a47abadDxlGKIWjvYYvGVAHa","type":"function"}]}}],"created":1727256650,"id":"chatcmpl-ABIeABbq5WVCq0e0AriGFaYDSih3P","model":"gpt-4-32k","object":"chat.completion","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}],"system_fingerprint":null,"usage":{"completion_tokens":16,"prompt_tokens":109,"total_tokens":125}} | ||
' | ||
headers: | ||
Cache-Control: | ||
- no-cache, must-revalidate | ||
Content-Length: | ||
- '769' | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Wed, 25 Sep 2024 09:30:50 GMT | ||
Set-Cookie: test_set_cookie | ||
Strict-Transport-Security: | ||
- max-age=31536000; includeSubDomains; preload | ||
access-control-allow-origin: | ||
- '*' | ||
apim-request-id: | ||
- 8c0e3372-8ffd-4ff5-a5d1-0b962c4ea339 | ||
azureml-model-session: | ||
- d145-20240919052126 | ||
openai-organization: test_openai_org_key | ||
x-accel-buffering: | ||
- 'no' | ||
x-content-type-options: | ||
- nosniff | ||
x-ms-client-request-id: | ||
- 8c0e3372-8ffd-4ff5-a5d1-0b962c4ea339 | ||
x-ms-rai-invoked: | ||
- 'true' | ||
x-ms-region: | ||
- Switzerland North | ||
x-ratelimit-remaining-requests: | ||
- '79' | ||
x-ratelimit-remaining-tokens: | ||
- '79824' | ||
x-request-id: | ||
- 401bd803-b790-47b7-b098-98708d44f060 | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters