Close #45: Add verbosity setting

This commit is contained in:
gabrii
2025-09-23 17:43:33 +02:00
parent b375519909
commit 424c29d55d
11 changed files with 1203 additions and 8 deletions
+1
View File
@@ -17,4 +17,5 @@ AZURE_DEPLOYMENT=gpt-5
# Optional Azure settings
AZURE_API_VERSION=
AZURE_SUMMARY_LEVEL=
AZURE_VERBOSITY_LEVEL=
AZURE_TRUNCATION=
+1 -1
View File
@@ -40,7 +40,7 @@ env/
.env
# Recordings
recordings/
/recordings/
# Legacy openai backend
backend_openai.py
+8 -7
View File
@@ -39,13 +39,14 @@ If you prefer to deploy the service (for example, to allow multiple members of y
Make a copy of the file `.env.example` as `.env` and update the following flags as needed:
| Flag | Description | Default |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ----------- |
| `AZURE_BASE_URL` | Your Azure OpenAI endpoint base URL (no trailing slash), e.g. `https://<resource>.openai.azure.com`. | required |
| `AZURE_API_KEY` | Azure OpenAI API key. | required |
| `AZURE_DEPLOYMENT` | Name of the Azure model deployment to use. | `gpt-5` |
| `SERVICE_API_KEY` | Arbitrary API key to protect your service. Set it to a random string. | `change-me` |
| `AZURE_SUMMARY_LEVEL` | Set to `none` to disable summaries. You might have to disable them if your organization hasn't been approved for this feature. | `detailed` |
| Flag | Description | Default |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ----------- |
| `SERVICE_API_KEY` | Arbitrary API key to protect your service. Set it to a random string. | `change-me` |
| `AZURE_BASE_URL` | Your Azure OpenAI endpoint base URL (no trailing slash), e.g. `https://<resource>.openai.azure.com`. | required |
| `AZURE_API_KEY` | Azure OpenAI API key. | required |
| `AZURE_DEPLOYMENT` | Name of the Azure model deployment to use. | `gpt-5` |
| `AZURE_VERBOSITY_LEVEL` | Hint the model to be more or less expansive in its replies. Use either `high` / `medium` / `low` | `medium` |
| `AZURE_SUMMARY_LEVEL` | Set to `none` to disable summaries. You might have to disable them if your organization hasn't been approved for this feature. | `detailed` |
Alternatively, you can pass them through the environment where you run the application.
+4
View File
@@ -178,6 +178,10 @@ class RequestAdapter:
if settings["AZURE_SUMMARY_LEVEL"] in {"auto", "detailed", "concise"}:
responses_body["reasoning"]["summary"] = settings["AZURE_SUMMARY_LEVEL"]
# No need to pass verbosity if it's set to medium, as it's the model's default
if settings["AZURE_VERBOSITY_LEVEL"] in {"low", "high"}:
responses_body["text"] = {"verbosity": settings["AZURE_VERBOSITY_LEVEL"]}
responses_body["store"] = False
responses_body["stream_options"] = {"include_obfuscation": False}
responses_body["truncation"] = settings["AZURE_TRUNCATION"]
+1
View File
@@ -23,6 +23,7 @@ AZURE_DEPLOYMENT = env.str("AZURE_DEPLOYMENT") or "gpt-5"
AZURE_API_VERSION = env.str("AZURE_API_VERSION") or "2025-04-01-preview"
AZURE_SUMMARY_LEVEL = env.str("AZURE_SUMMARY_LEVEL") or "detailed"
AZURE_VERBOSITY_LEVEL = env.str("AZURE_VERBOSITY_LEVEL") or "medium"
AZURE_TRUNCATION = env.str("AZURE_TRUNCATION") or "auto"
AZURE_RESPONSES_API_URL = (
@@ -0,0 +1,396 @@
{
"model": "gpt-minimal",
"temperature": 0,
"user": "REDACTED",
"messages": [
{
"role": "system",
"content": "REDACTED"
},
{
"role": "user",
"content": "REDACTED"
},
{
"role": "user",
"content": "REDACTED"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"explanation": {
"type": "string",
"description": "REDACTED"
},
"query": {
"type": "string",
"description": "REDACTED"
},
"target_directories": {
"type": "array",
"items": {
"type": "string"
},
"description": "REDACTED"
},
"search_only_prs": {
"type": "boolean",
"description": "REDACTED"
}
},
"required": [
"explanation",
"query",
"target_directories"
]
}
}
},
{
"type": "function",
"function": {
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "REDACTED"
},
"is_background": {
"type": "boolean",
"description": "REDACTED"
},
"explanation": {
"type": "string",
"description": "REDACTED"
}
},
"required": [
"command",
"is_background"
]
}
}
},
{
"type": "function",
"function": {
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"pattern": {
"type": "string",
"description": "REDACTED"
},
"path": {
"type": "string",
"description": "REDACTED"
},
"glob": {
"type": "string",
"description": "REDACTED"
},
"output_mode": {
"type": "string",
"description": "REDACTED",
"enum": [
"content",
"files_with_matches",
"count"
]
},
"-B": {
"type": "number",
"description": "REDACTED"
},
"-A": {
"type": "number",
"description": "REDACTED"
},
"-C": {
"type": "number",
"description": "REDACTED"
},
"-i": {
"type": "boolean",
"description": "REDACTED"
},
"type": {
"type": "string",
"description": "REDACTED"
},
"head_limit": {
"type": "number",
"description": "REDACTED"
},
"multiline": {
"type": "boolean",
"description": "REDACTED"
}
},
"required": [
"pattern"
]
}
}
},
{
"type": "function",
"function": {
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"target_file": {
"type": "string",
"description": "REDACTED"
},
"explanation": {
"type": "string",
"description": "REDACTED"
}
},
"required": [
"target_file"
]
}
}
},
{
"type": "function",
"function": {
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"paths": {
"description": "REDACTED",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": []
}
}
},
{
"type": "function",
"function": {
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"target_notebook": {
"type": "string",
"description": "REDACTED"
},
"cell_idx": {
"type": "number",
"description": "REDACTED"
},
"is_new_cell": {
"type": "boolean",
"description": "REDACTED"
},
"cell_language": {
"type": "string",
"description": "REDACTED"
},
"old_string": {
"type": "string",
"description": "REDACTED"
},
"new_string": {
"type": "string",
"description": "REDACTED"
}
},
"required": [
"target_notebook",
"cell_idx",
"is_new_cell",
"cell_language",
"old_string",
"new_string"
]
}
}
},
{
"type": "function",
"function": {
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"merge": {
"type": "boolean",
"description": "REDACTED"
},
"todos": {
"type": "array",
"description": "REDACTED",
"items": {
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "REDACTED"
},
"status": {
"type": "string",
"enum": [
"pending",
"in_progress",
"completed",
"cancelled"
],
"description": "REDACTED"
},
"id": {
"type": "string",
"description": "REDACTED"
}
},
"required": [
"content",
"status",
"id"
]
},
"minItems": 2
}
},
"required": [
"merge",
"todos"
]
}
}
},
{
"type": "function",
"function": {
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"target_file": {
"type": "string",
"description": "REDACTED"
},
"instructions": {
"type": "string",
"description": "REDACTED"
},
"code_edit": {
"type": "string",
"description": "REDACTED"
}
},
"required": [
"target_file",
"instructions",
"code_edit"
]
}
}
},
{
"type": "function",
"function": {
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"target_file": {
"type": "string",
"description": "REDACTED"
},
"offset": {
"type": "integer",
"description": "REDACTED"
},
"limit": {
"type": "integer",
"description": "REDACTED"
}
},
"required": [
"target_file"
]
}
}
},
{
"type": "function",
"function": {
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"target_directory": {
"type": "string",
"description": "REDACTED"
},
"ignore_globs": {
"type": "array",
"items": {
"type": "string"
},
"description": "REDACTED"
}
},
"required": [
"target_directory"
]
}
}
},
{
"type": "function",
"function": {
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"target_directory": {
"type": "string",
"description": "REDACTED"
},
"glob_pattern": {
"type": "string",
"description": "REDACTED"
}
},
"required": [
"glob_pattern"
]
}
}
}
],
"tool_choice": "auto",
"stream": true
}
@@ -0,0 +1,144 @@
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641856,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":"<think>\n\n"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":"</think>\n\n"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":"Hey"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":"!"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" I"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":"’m"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" here"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" and"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" ready"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" to"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" help"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" How"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":"’s"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" your"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" project"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" going"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":"?"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" Do"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" you"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" want"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" me"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" to"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" pick"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" up"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" anything"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" specific"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" in"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" your"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" repo"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" run"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" tests"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641857,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" or"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" review"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" recent"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" changes"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":"?"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" If"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" you"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":"’re"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" working"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" on"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" “"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":"add"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" support"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" for"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" verbosity"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":"”"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" branch"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" I"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" can"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" check"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" adapters"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" and"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" tests"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" around"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" verbosity"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" recordings"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" and"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641858,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" make"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641859,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" sure"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641859,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" everything"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641859,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":" passes"},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641859,"model":"gpt-minimal","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}]}
data: {"id":"chatcmpl-W6D40tdKgwgksA18Xc4zKeCN","object":"chat.completion.chunk","created":1758641860,"model":"gpt-minimal","choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}
data: [DONE]
@@ -0,0 +1,403 @@
{
"instructions": "REDACTED",
"input": [
{
"role": "user",
"content": [
{
"type": "input_text",
"text": "REDACTED"
}
]
},
{
"role": "user",
"content": [
{
"type": "input_text",
"text": "REDACTED"
}
]
}
],
"model": "gpt-5",
"tools": [
{
"type": "function",
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"explanation": {
"type": "string",
"description": "REDACTED"
},
"query": {
"type": "string",
"description": "REDACTED"
},
"target_directories": {
"type": "array",
"items": {
"type": "string"
},
"description": "REDACTED"
},
"search_only_prs": {
"type": "boolean",
"description": "REDACTED"
}
},
"required": [
"explanation",
"query",
"target_directories"
]
},
"strict": false
},
{
"type": "function",
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "REDACTED"
},
"is_background": {
"type": "boolean",
"description": "REDACTED"
},
"explanation": {
"type": "string",
"description": "REDACTED"
}
},
"required": [
"command",
"is_background"
]
},
"strict": false
},
{
"type": "function",
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"pattern": {
"type": "string",
"description": "REDACTED"
},
"path": {
"type": "string",
"description": "REDACTED"
},
"glob": {
"type": "string",
"description": "REDACTED"
},
"output_mode": {
"type": "string",
"description": "REDACTED",
"enum": [
"content",
"files_with_matches",
"count"
]
},
"-B": {
"type": "number",
"description": "REDACTED"
},
"-A": {
"type": "number",
"description": "REDACTED"
},
"-C": {
"type": "number",
"description": "REDACTED"
},
"-i": {
"type": "boolean",
"description": "REDACTED"
},
"type": {
"type": "string",
"description": "REDACTED"
},
"head_limit": {
"type": "number",
"description": "REDACTED"
},
"multiline": {
"type": "boolean",
"description": "REDACTED"
}
},
"required": [
"pattern"
]
},
"strict": false
},
{
"type": "function",
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"target_file": {
"type": "string",
"description": "REDACTED"
},
"explanation": {
"type": "string",
"description": "REDACTED"
}
},
"required": [
"target_file"
]
},
"strict": false
},
{
"type": "function",
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"paths": {
"description": "REDACTED",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": []
},
"strict": false
},
{
"type": "function",
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"target_notebook": {
"type": "string",
"description": "REDACTED"
},
"cell_idx": {
"type": "number",
"description": "REDACTED"
},
"is_new_cell": {
"type": "boolean",
"description": "REDACTED"
},
"cell_language": {
"type": "string",
"description": "REDACTED"
},
"old_string": {
"type": "string",
"description": "REDACTED"
},
"new_string": {
"type": "string",
"description": "REDACTED"
}
},
"required": [
"target_notebook",
"cell_idx",
"is_new_cell",
"cell_language",
"old_string",
"new_string"
]
},
"strict": false
},
{
"type": "function",
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"merge": {
"type": "boolean",
"description": "REDACTED"
},
"todos": {
"type": "array",
"description": "REDACTED",
"items": {
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "REDACTED"
},
"status": {
"type": "string",
"enum": [
"pending",
"in_progress",
"completed",
"cancelled"
],
"description": "REDACTED"
},
"id": {
"type": "string",
"description": "REDACTED"
}
},
"required": [
"content",
"status",
"id"
]
},
"minItems": 2
}
},
"required": [
"merge",
"todos"
]
},
"strict": false
},
{
"type": "function",
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"target_file": {
"type": "string",
"description": "REDACTED"
},
"instructions": {
"type": "string",
"description": "REDACTED"
},
"code_edit": {
"type": "string",
"description": "REDACTED"
}
},
"required": [
"target_file",
"instructions",
"code_edit"
]
},
"strict": false
},
{
"type": "function",
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"target_file": {
"type": "string",
"description": "REDACTED"
},
"offset": {
"type": "integer",
"description": "REDACTED"
},
"limit": {
"type": "integer",
"description": "REDACTED"
}
},
"required": [
"target_file"
]
},
"strict": false
},
{
"type": "function",
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"target_directory": {
"type": "string",
"description": "REDACTED"
},
"ignore_globs": {
"type": "array",
"items": {
"type": "string"
},
"description": "REDACTED"
}
},
"required": [
"target_directory"
]
},
"strict": false
},
{
"type": "function",
"name": "REDACTED",
"description": "REDACTED",
"parameters": {
"type": "object",
"properties": {
"target_directory": {
"type": "string",
"description": "REDACTED"
},
"glob_pattern": {
"type": "string",
"description": "REDACTED"
}
},
"required": [
"glob_pattern"
]
},
"strict": false
}
],
"tool_choice": "auto",
"prompt_cache_key": "REDACTED",
"stream": true,
"reasoning": {
"effort": "minimal",
"summary": "detailed"
},
"text": {
"verbosity": "high"
},
"store": false,
"stream_options": {
"include_obfuscation": false
},
"truncation": "auto"
}
File diff suppressed because one or more lines are too long
+1
View File
@@ -10,6 +10,7 @@ AZURE_BASE_URL = "https://test-resource.openai.azure.com"
AZURE_API_KEY = "test-api-key"
AZURE_DEPLOYMENT = "gpt-5"
AZURE_SUMMARY_LEVEL = "detailed"
AZURE_VERBOSITY_LEVEL = "medium"
AZURE_TRUNCATION = "auto"
RECORD_TRAFFIC = False
+10
View File
@@ -40,3 +40,13 @@ class TestReplyWithParallelToolCall(ReplyBase):
"""Parallel tool calls in the reply."""
recording = "reply_parallel_tool_call"
class TestReplyVerbosityLevelHigh(ReplyBase):
"""Reply with verbosity level set to high."""
def modify_settings(self, app):
"""Sets verbosity level to high."""
app.config["AZURE_VERBOSITY_LEVEL"] = "high"
recording = "verbosity_level"