You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stringstr = "{\"model\":\"o3\",\"input\":[{\"role\":\"system\",\"content\":\"你是一个智能体\"},{\"type\":\"message\",\"role\":\"user\",\"content\":\"北京现在的天气怎么样?\"},{\"type\":\"function_call\",\"name\":\"get_weather\",\"arguments\":\"{\\\"city\\\": \\\"北京\\\", \\\"unit\\\": \\\"celsius\\\"}\",\"status\":\"completed\",\"call_id\":\"call_weather456\"},{\"type\":\"function_call_output\",\"output\":\"{\\\"temperature\\\": 15, \\\"condition\\\": \\\"晴朗\\\"}\",\"status\":\"completed\",\"call_id\":\"call_weather456\"},{\"type\":\"message\",\"role\":\"user\",\"content\":\"比较一下上海的天气\"},{\"type\":\"message\",\"id\":\"msg_def456\",\"role\":\"assistant\",\"content\":[{\"type\":\"output_text\",\"text\":\"Machine learning is a subset of artificial intelligence that enables computers to learn and improve from experience.\",\"annotations\":[{\"type\":\"url_citation\",\"url\":\"https://example.com/ml-guide\",\"title\":\"Introduction to Machine Learning\",\"start_index\":0,\"end_index\":50}]}],\"status\":\"completed\"},{\"type\":\"message\",\"role\":\"user\",\"content\":[{\"type\":\"input_image\",\"image_url\":\"https://example.com/ahdhadh.jpg\"},{\"type\":\"input_text\",\"text\":\"识别图片并且生成一张相同的图片。\"}]},{\"type\":\"image_generation_call\",\"id\":\"call_cacda\",\"result\":\"https://example.com/ahdhadhadadacf.jpg\",\"status\":\"completed\"},{\"id\":\"msg_def456121313\",\"role\":\"assistant\",\"content\":[{\"type\":\"refusal\",\"refusal\":\"test\"}],\"status\":\"incomplete\"},{\"type\":\"message\",\"role\":\"user\",\"content\":\"再次生成\"}],\"store\":false,\"stream\":true,\"temperature\":1.0,\"tools\":[{\"type\":\"function\",\"name\":\"get_weather\",\"description\":\"Retrieves current weather for the given location.\",\"parameters\":{\"type\":\"object\",\"properties\":{\"location\":{\"type\":\"object\",\"properties\":{\"x\":{\"type\":\"string\"},\"y\":{\"type\":\"string\"}},\"description\":\"City and country e.g. Bogotá, Colombia\",\"required\":[\"x\",\"y\"],\"additionalProperties\":false},\"units\":{\"type\":\"string\",\"enum\":[\"celsius\",\"fahrenheit\"],\"description\":\"Units the temperature will be returned in.\"}},\"required\":[\"location\",\"units\"],\"additionalProperties\":false},\"strict\":true},{\"type\":\"file_search\"},{\"type\":\"custom\",\"name\":\"test\",\"description\":\"test\",\"format\":{\"type\":\"text\"}}],\"reasoning\":{\"effort\":\"medium\"},\"background\":false,\"truncation\":\"disabled\",\"metadata\":{},\"top_p\":1.0,\"parallel_tool_calls\":true,\"text\":{\"format\":{\"type\":\"json_schema\",\"json_schema\":{\"name\":\"analysis_result\",\"schema\":{\"type\":\"object\",\"properties\":{\"image_analysis\":{\"type\":\"string\"},\"weather_info\":{\"type\":\"object\"},\"summary\":{\"type\":\"string\"}}}}}},\"tool_choice\":{\"type\":\"allowed_tools\",\"mode\":\"auto\",\"tools\":[{\"type\":\"file_search\"},{\"type\":\"function\",\"name\":\"get_weather\"}]}}";
0 commit comments