diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/batch_list_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/batch_list_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b2638f76916009797b26a3e71e2e547e8c2ffbf1 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/batch_list_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/batch_usage.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/batch_usage.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bf3fb384ca788a585b4156889b69dabb1e86741e Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/batch_usage.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/completion_create_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/completion_create_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..159e23d28b9d9da2c92bbf61d2164ee7c5eb9b35 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/completion_create_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/container_create_response.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/container_create_response.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..713d39289880724496ba79239fc91cd76d8efd4f Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/container_create_response.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/container_retrieve_response.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/container_retrieve_response.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ff77dbc15d7a576506c87196a348b8c172dc5dd0 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/container_retrieve_response.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/create_embedding_response.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/create_embedding_response.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..db099ce514dbde43819771bf97fdba2100565933 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/create_embedding_response.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/embedding_create_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/embedding_create_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b2c3865f1a06c05b2130d625a647cf4bea802924 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/embedding_create_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/eval_create_response.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/eval_create_response.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fe692dd54dfed5822244c4ea50ff4dee720965ae Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/eval_create_response.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/eval_retrieve_response.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/eval_retrieve_response.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..150ed0aab4af3b421ad97a7dd391c96cfc88f16a Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/eval_retrieve_response.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/eval_update_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/eval_update_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..46d32bd073dd80ec1688ac0a0f5606d5bb9b1c1e Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/eval_update_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/file_chunking_strategy.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/file_chunking_strategy.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4eb1033272264106bf7f36cdd2989ddf874befce Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/file_chunking_strategy.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/file_create_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/file_create_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9a7b6453f470dee28a1f159fc258795ac2c5d696 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/file_create_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/file_purpose.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/file_purpose.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..60eba144b5d9e397a259b581d2da3b716347aad5 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/file_purpose.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_edit_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_edit_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..393751044be6d450204931c9c345927bef17c8e4 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_edit_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_edit_stream_event.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_edit_stream_event.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..948e5b03df56fcbb219cf6a8d1c7cf5e46331bea Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_edit_stream_event.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_gen_stream_event.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_gen_stream_event.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6a29b6d2f9d4d90d61c1fc061dedf07fff60a63c Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_gen_stream_event.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_generate_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_generate_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dab31226fb419756ba88e1a59ac45f2d8c4a849c Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_generate_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_model.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_model.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..defc9ddf5939ac23cfa2dd4ab0cee7afdc3962b4 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/image_model.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/images_response.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/images_response.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..74ce2ad6e2c396b11a3d611bd5bdc77ac8a09d5f Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/images_response.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2ed6e8a9af5c5ea2080a53df071d738a5becfd3a Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation_create_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation_create_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b4d0571f07730cdca950136f0d9c08633d13941c Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation_create_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation_image_url_input_param.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation_image_url_input_param.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..afeaf2ebc9ae2f86ba351be6692b99b82303fdaf Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation_image_url_input_param.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation_model.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation_model.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..021b2c9d738d452dfbcd83c4cb95fbd640bc511d Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation_model.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation_multi_modal_input_param.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation_multi_modal_input_param.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1cfdd245712067f89f841250daa9bc846171bcac Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/moderation_multi_modal_input_param.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/skill.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/skill.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1c5f077c26b28585a6f4ccca2920445d37844649 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/skill.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/skill_list_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/skill_list_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f434cf2829f1405a8df259bc0d577b8affae6332 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/skill_list_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/skill_update_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/skill_update_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6c79259c66270e0c6a365b6b32bc1fb744330b1b Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/skill_update_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/static_file_chunking_strategy_param.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/static_file_chunking_strategy_param.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..149ee52cf617d7ba284d15cb6ccc7049136a8772 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/static_file_chunking_strategy_param.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..251d9f712cce3cfcb58c2082bc15070061a07d13 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store_create_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store_create_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d9c5830309c8eb1ccb5a0685d14bbb03537920fc Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store_create_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store_deleted.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store_deleted.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..35a3ab97ae4c4eeaa80339f70a1470e0eb56c2c0 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store_deleted.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store_list_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store_list_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d6470577c68add68725545993dabbe3189a85942 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store_list_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store_search_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store_search_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9396d785f168b79bfd8947d3adbe836e396ff9cf Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/vector_store_search_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..db06b9cd15771b89cd87cc566bb1ef01558fdb7e Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_create_character_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_create_character_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7a95dbd2b338e25d6f863638d24700931937af63 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_create_character_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_create_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_create_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e9a5a6dd8efa5e422e6805758f0f3a2c5441def5 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_create_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_download_content_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_download_content_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ffe7453530314b5fa36706ac05d737a30e42bad3 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_download_content_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_edit_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_edit_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b9c3d19442b4e178dbf44ff3a57d58360f976daa Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_edit_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_extend_params.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_extend_params.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2c72054aec46d33b6661be83a8979829b7e014cf Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/video_extend_params.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/websocket_connection_options.cpython-310.pyc b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/websocket_connection_options.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..83d6f98b715d30c7aca8e6a52bfd1099b8aebd55 Binary files /dev/null and b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/__pycache__/websocket_connection_options.cpython-310.pyc differ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/__init__.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..50bdac7c6592724f494529017a64f849704a1b0b --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/__init__.py @@ -0,0 +1,102 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .chat_completion import ChatCompletion as ChatCompletion +from .chat_completion_role import ChatCompletionRole as ChatCompletionRole +from .chat_completion_audio import ChatCompletionAudio as ChatCompletionAudio +from .chat_completion_chunk import ChatCompletionChunk as ChatCompletionChunk +from .completion_list_params import CompletionListParams as CompletionListParams +from .parsed_chat_completion import ( + ParsedChoice as ParsedChoice, + ParsedChatCompletion as ParsedChatCompletion, + ParsedChatCompletionMessage as ParsedChatCompletionMessage, +) +from .chat_completion_deleted import ChatCompletionDeleted as ChatCompletionDeleted +from .chat_completion_message import ChatCompletionMessage as ChatCompletionMessage +from .chat_completion_modality import ChatCompletionModality as ChatCompletionModality +from .completion_create_params import CompletionCreateParams as CompletionCreateParams +from .completion_update_params import CompletionUpdateParams as CompletionUpdateParams +from .parsed_function_tool_call import ( + ParsedFunction as ParsedFunction, + ParsedFunctionToolCall as ParsedFunctionToolCall, +) +from .chat_completion_tool_param import ChatCompletionToolParam as ChatCompletionToolParam +from .chat_completion_audio_param import ChatCompletionAudioParam as ChatCompletionAudioParam +from .chat_completion_function_tool import ChatCompletionFunctionTool as ChatCompletionFunctionTool +from .chat_completion_message_param import ChatCompletionMessageParam as ChatCompletionMessageParam +from .chat_completion_store_message import ChatCompletionStoreMessage as ChatCompletionStoreMessage +from .chat_completion_token_logprob import ChatCompletionTokenLogprob as ChatCompletionTokenLogprob +from .chat_completion_reasoning_effort import ChatCompletionReasoningEffort as ChatCompletionReasoningEffort +from .chat_completion_tool_union_param import ChatCompletionToolUnionParam as ChatCompletionToolUnionParam +from .chat_completion_content_part_text import ChatCompletionContentPartText as ChatCompletionContentPartText +from .chat_completion_custom_tool_param import ChatCompletionCustomToolParam as ChatCompletionCustomToolParam +from .chat_completion_message_tool_call import ( + ChatCompletionMessageToolCall as ChatCompletionMessageToolCall, + ChatCompletionMessageToolCallUnion as ChatCompletionMessageToolCallUnion, +) +from .chat_completion_content_part_image import ChatCompletionContentPartImage as ChatCompletionContentPartImage +from .chat_completion_content_part_param import ChatCompletionContentPartParam as ChatCompletionContentPartParam +from .chat_completion_tool_message_param import ChatCompletionToolMessageParam as ChatCompletionToolMessageParam +from .chat_completion_user_message_param import ChatCompletionUserMessageParam as ChatCompletionUserMessageParam +from .chat_completion_allowed_tools_param import ChatCompletionAllowedToolsParam as ChatCompletionAllowedToolsParam +from .chat_completion_function_tool_param import ChatCompletionFunctionToolParam as ChatCompletionFunctionToolParam +from .chat_completion_stream_options_param import ChatCompletionStreamOptionsParam as ChatCompletionStreamOptionsParam +from .chat_completion_system_message_param import ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam +from .chat_completion_function_message_param import ( + ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam, +) +from .chat_completion_assistant_message_param import ( + ChatCompletionAssistantMessageParam as ChatCompletionAssistantMessageParam, +) +from .chat_completion_content_part_text_param import ( + ChatCompletionContentPartTextParam as ChatCompletionContentPartTextParam, +) +from .chat_completion_developer_message_param import ( + ChatCompletionDeveloperMessageParam as ChatCompletionDeveloperMessageParam, +) +from .chat_completion_message_tool_call_param import ( + ChatCompletionMessageToolCallParam as ChatCompletionMessageToolCallParam, +) +from .chat_completion_named_tool_choice_param import ( + ChatCompletionNamedToolChoiceParam as ChatCompletionNamedToolChoiceParam, +) +from .chat_completion_content_part_image_param import ( + ChatCompletionContentPartImageParam as ChatCompletionContentPartImageParam, +) +from .chat_completion_message_custom_tool_call import ( + ChatCompletionMessageCustomToolCall as ChatCompletionMessageCustomToolCall, +) +from .chat_completion_prediction_content_param import ( + ChatCompletionPredictionContentParam as ChatCompletionPredictionContentParam, +) +from .chat_completion_tool_choice_option_param import ( + ChatCompletionToolChoiceOptionParam as ChatCompletionToolChoiceOptionParam, +) +from .chat_completion_allowed_tool_choice_param import ( + ChatCompletionAllowedToolChoiceParam as ChatCompletionAllowedToolChoiceParam, +) +from .chat_completion_content_part_refusal_param import ( + ChatCompletionContentPartRefusalParam as ChatCompletionContentPartRefusalParam, +) +from .chat_completion_function_call_option_param import ( + ChatCompletionFunctionCallOptionParam as ChatCompletionFunctionCallOptionParam, +) +from .chat_completion_message_function_tool_call import ( + ChatCompletionMessageFunctionToolCall as ChatCompletionMessageFunctionToolCall, +) +from .chat_completion_message_tool_call_union_param import ( + ChatCompletionMessageToolCallUnionParam as ChatCompletionMessageToolCallUnionParam, +) +from .chat_completion_content_part_input_audio_param import ( + ChatCompletionContentPartInputAudioParam as ChatCompletionContentPartInputAudioParam, +) +from .chat_completion_message_custom_tool_call_param import ( + ChatCompletionMessageCustomToolCallParam as ChatCompletionMessageCustomToolCallParam, +) +from .chat_completion_named_tool_choice_custom_param import ( + ChatCompletionNamedToolChoiceCustomParam as ChatCompletionNamedToolChoiceCustomParam, +) +from .chat_completion_message_function_tool_call_param import ( + ChatCompletionMessageFunctionToolCallParam as ChatCompletionMessageFunctionToolCallParam, +) diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion.py new file mode 100644 index 0000000000000000000000000000000000000000..31219aa8128aaddde873a6569e27582417e767e3 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion.py @@ -0,0 +1,95 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ..._models import BaseModel +from ..completion_usage import CompletionUsage +from .chat_completion_message import ChatCompletionMessage +from .chat_completion_token_logprob import ChatCompletionTokenLogprob + +__all__ = ["ChatCompletion", "Choice", "ChoiceLogprobs"] + + +class ChoiceLogprobs(BaseModel): + """Log probability information for the choice.""" + + content: Optional[List[ChatCompletionTokenLogprob]] = None + """A list of message content tokens with log probability information.""" + + refusal: Optional[List[ChatCompletionTokenLogprob]] = None + """A list of message refusal tokens with log probability information.""" + + +class Choice(BaseModel): + finish_reason: Literal["stop", "length", "tool_calls", "content_filter", "function_call"] + """The reason the model stopped generating tokens. + + This will be `stop` if the model hit a natural stop point or a provided stop + sequence, `length` if the maximum number of tokens specified in the request was + reached, `content_filter` if content was omitted due to a flag from our content + filters, `tool_calls` if the model called a tool, or `function_call` + (deprecated) if the model called a function. + """ + + index: int + """The index of the choice in the list of choices.""" + + logprobs: Optional[ChoiceLogprobs] = None + """Log probability information for the choice.""" + + message: ChatCompletionMessage + """A chat completion message generated by the model.""" + + +class ChatCompletion(BaseModel): + """ + Represents a chat completion response returned by model, based on the provided input. + """ + + id: str + """A unique identifier for the chat completion.""" + + choices: List[Choice] + """A list of chat completion choices. + + Can be more than one if `n` is greater than 1. + """ + + created: int + """The Unix timestamp (in seconds) of when the chat completion was created.""" + + model: str + """The model used for the chat completion.""" + + object: Literal["chat.completion"] + """The object type, which is always `chat.completion`.""" + + service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] = None + """Specifies the processing type used for serving the request. + + - If set to 'auto', then the request will be processed with the service tier + configured in the Project settings. Unless otherwise configured, the Project + will use 'default'. + - If set to 'default', then the request will be processed with the standard + pricing and performance for the selected model. + - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or + '[priority](https://openai.com/api-priority-processing/)', then the request + will be processed with the corresponding service tier. + - When not set, the default behavior is 'auto'. + + When the `service_tier` parameter is set, the response body will include the + `service_tier` value based on the processing mode actually used to serve the + request. This response value may be different from the value set in the + parameter. + """ + + system_fingerprint: Optional[str] = None + """This fingerprint represents the backend configuration that the model runs with. + + Can be used in conjunction with the `seed` request parameter to understand when + backend changes have been made that might impact determinism. + """ + + usage: Optional[CompletionUsage] = None + """Usage statistics for the completion request.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_allowed_tool_choice_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_allowed_tool_choice_param.py new file mode 100644 index 0000000000000000000000000000000000000000..c5ba21626de5b138b3c32709e697106431bcd1b3 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_allowed_tool_choice_param.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +from .chat_completion_allowed_tools_param import ChatCompletionAllowedToolsParam + +__all__ = ["ChatCompletionAllowedToolChoiceParam"] + + +class ChatCompletionAllowedToolChoiceParam(TypedDict, total=False): + """Constrains the tools available to the model to a pre-defined set.""" + + allowed_tools: Required[ChatCompletionAllowedToolsParam] + """Constrains the tools available to the model to a pre-defined set.""" + + type: Required[Literal["allowed_tools"]] + """Allowed tool configuration type. Always `allowed_tools`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_audio.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_audio.py new file mode 100644 index 0000000000000000000000000000000000000000..df346d8c9dcf36a658bb675a4844672f668c4464 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_audio.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from ..._models import BaseModel + +__all__ = ["ChatCompletionAudio"] + + +class ChatCompletionAudio(BaseModel): + """ + If the audio output modality is requested, this object contains data + about the audio response from the model. [Learn more](https://platform.openai.com/docs/guides/audio). + """ + + id: str + """Unique identifier for this audio response.""" + + data: str + """ + Base64 encoded audio bytes generated by the model, in the format specified in + the request. + """ + + expires_at: int + """ + The Unix timestamp (in seconds) for when this audio response will no longer be + accessible on the server for use in multi-turn conversations. + """ + + transcript: str + """Transcript of the audio generated by the model.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_audio_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_audio_param.py new file mode 100644 index 0000000000000000000000000000000000000000..fe64ba49aa0ab4a9ff35dc9606c5b026dee8d9aa --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_audio_param.py @@ -0,0 +1,43 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +__all__ = ["ChatCompletionAudioParam", "Voice", "VoiceID"] + + +class VoiceID(TypedDict, total=False): + """Custom voice reference.""" + + id: Required[str] + """The custom voice ID, e.g. `voice_1234`.""" + + +Voice: TypeAlias = Union[ + str, Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse", "marin", "cedar"], VoiceID +] + + +class ChatCompletionAudioParam(TypedDict, total=False): + """Parameters for audio output. + + Required when audio output is requested with + `modalities: ["audio"]`. [Learn more](https://platform.openai.com/docs/guides/audio). + """ + + format: Required[Literal["wav", "aac", "mp3", "flac", "opus", "pcm16"]] + """Specifies the output audio format. + + Must be one of `wav`, `mp3`, `flac`, `opus`, or `pcm16`. + """ + + voice: Required[Voice] + """The voice the model uses to respond. + + Supported built-in voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, + `fable`, `nova`, `onyx`, `sage`, `shimmer`, `marin`, and `cedar`. You may also + provide a custom voice object with an `id`, for example + `{ "id": "voice_1234" }`. + """ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_chunk.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_chunk.py new file mode 100644 index 0000000000000000000000000000000000000000..ecbfd0a5aa967c7a1bd2dec461d4290360be5955 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_chunk.py @@ -0,0 +1,181 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ..._models import BaseModel +from ..completion_usage import CompletionUsage +from .chat_completion_token_logprob import ChatCompletionTokenLogprob + +__all__ = [ + "ChatCompletionChunk", + "Choice", + "ChoiceDelta", + "ChoiceDeltaFunctionCall", + "ChoiceDeltaToolCall", + "ChoiceDeltaToolCallFunction", + "ChoiceLogprobs", +] + + +class ChoiceDeltaFunctionCall(BaseModel): + """Deprecated and replaced by `tool_calls`. + + The name and arguments of a function that should be called, as generated by the model. + """ + + arguments: Optional[str] = None + """ + The arguments to call the function with, as generated by the model in JSON + format. Note that the model does not always generate valid JSON, and may + hallucinate parameters not defined by your function schema. Validate the + arguments in your code before calling your function. + """ + + name: Optional[str] = None + """The name of the function to call.""" + + +class ChoiceDeltaToolCallFunction(BaseModel): + arguments: Optional[str] = None + """ + The arguments to call the function with, as generated by the model in JSON + format. Note that the model does not always generate valid JSON, and may + hallucinate parameters not defined by your function schema. Validate the + arguments in your code before calling your function. + """ + + name: Optional[str] = None + """The name of the function to call.""" + + +class ChoiceDeltaToolCall(BaseModel): + index: int + + id: Optional[str] = None + """The ID of the tool call.""" + + function: Optional[ChoiceDeltaToolCallFunction] = None + + type: Optional[Literal["function"]] = None + """The type of the tool. Currently, only `function` is supported.""" + + +class ChoiceDelta(BaseModel): + """A chat completion delta generated by streamed model responses.""" + + content: Optional[str] = None + """The contents of the chunk message.""" + + function_call: Optional[ChoiceDeltaFunctionCall] = None + """Deprecated and replaced by `tool_calls`. + + The name and arguments of a function that should be called, as generated by the + model. + """ + + refusal: Optional[str] = None + """The refusal message generated by the model.""" + + role: Optional[Literal["developer", "system", "user", "assistant", "tool"]] = None + """The role of the author of this message.""" + + tool_calls: Optional[List[ChoiceDeltaToolCall]] = None + + +class ChoiceLogprobs(BaseModel): + """Log probability information for the choice.""" + + content: Optional[List[ChatCompletionTokenLogprob]] = None + """A list of message content tokens with log probability information.""" + + refusal: Optional[List[ChatCompletionTokenLogprob]] = None + """A list of message refusal tokens with log probability information.""" + + +class Choice(BaseModel): + delta: ChoiceDelta + """A chat completion delta generated by streamed model responses.""" + + finish_reason: Optional[Literal["stop", "length", "tool_calls", "content_filter", "function_call"]] = None + """The reason the model stopped generating tokens. + + This will be `stop` if the model hit a natural stop point or a provided stop + sequence, `length` if the maximum number of tokens specified in the request was + reached, `content_filter` if content was omitted due to a flag from our content + filters, `tool_calls` if the model called a tool, or `function_call` + (deprecated) if the model called a function. + """ + + index: int + """The index of the choice in the list of choices.""" + + logprobs: Optional[ChoiceLogprobs] = None + """Log probability information for the choice.""" + + +class ChatCompletionChunk(BaseModel): + """ + Represents a streamed chunk of a chat completion response returned + by the model, based on the provided input. + [Learn more](https://platform.openai.com/docs/guides/streaming-responses). + """ + + id: str + """A unique identifier for the chat completion. Each chunk has the same ID.""" + + choices: List[Choice] + """A list of chat completion choices. + + Can contain more than one elements if `n` is greater than 1. Can also be empty + for the last chunk if you set `stream_options: {"include_usage": true}`. + """ + + created: int + """The Unix timestamp (in seconds) of when the chat completion was created. + + Each chunk has the same timestamp. + """ + + model: str + """The model to generate the completion.""" + + object: Literal["chat.completion.chunk"] + """The object type, which is always `chat.completion.chunk`.""" + + service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] = None + """Specifies the processing type used for serving the request. + + - If set to 'auto', then the request will be processed with the service tier + configured in the Project settings. Unless otherwise configured, the Project + will use 'default'. + - If set to 'default', then the request will be processed with the standard + pricing and performance for the selected model. + - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or + '[priority](https://openai.com/api-priority-processing/)', then the request + will be processed with the corresponding service tier. + - When not set, the default behavior is 'auto'. + + When the `service_tier` parameter is set, the response body will include the + `service_tier` value based on the processing mode actually used to serve the + request. This response value may be different from the value set in the + parameter. + """ + + system_fingerprint: Optional[str] = None + """ + This fingerprint represents the backend configuration that the model runs with. + Can be used in conjunction with the `seed` request parameter to understand when + backend changes have been made that might impact determinism. + """ + + usage: Optional[CompletionUsage] = None + """ + An optional field that will only be present when you set + `stream_options: {"include_usage": true}` in your request. When present, it + contains a null value **except for the last chunk** which contains the token + usage statistics for the entire request. + + **NOTE:** If the stream is interrupted or cancelled, you may not receive the + final usage chunk which contains the total token usage for the request. + """ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_image_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_image_param.py new file mode 100644 index 0000000000000000000000000000000000000000..a230a340a7707c5fb5b3dd39a73b8ad35e5801c8 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_image_param.py @@ -0,0 +1,28 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionContentPartImageParam", "ImageURL"] + + +class ImageURL(TypedDict, total=False): + url: Required[str] + """Either a URL of the image or the base64 encoded image data.""" + + detail: Literal["auto", "low", "high"] + """Specifies the detail level of the image. + + Learn more in the + [Vision guide](https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding). + """ + + +class ChatCompletionContentPartImageParam(TypedDict, total=False): + """Learn about [image inputs](https://platform.openai.com/docs/guides/vision).""" + + image_url: Required[ImageURL] + + type: Required[Literal["image_url"]] + """The type of the content part.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_input_audio_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_input_audio_param.py new file mode 100644 index 0000000000000000000000000000000000000000..98d9e3c5eb5ad1f7fdea15d48e038e165ad5e5cf --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_input_audio_param.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionContentPartInputAudioParam", "InputAudio"] + + +class InputAudio(TypedDict, total=False): + data: Required[str] + """Base64 encoded audio data.""" + + format: Required[Literal["wav", "mp3"]] + """The format of the encoded audio data. Currently supports "wav" and "mp3".""" + + +class ChatCompletionContentPartInputAudioParam(TypedDict, total=False): + """Learn about [audio inputs](https://platform.openai.com/docs/guides/audio).""" + + input_audio: Required[InputAudio] + + type: Required[Literal["input_audio"]] + """The type of the content part. Always `input_audio`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_param.py new file mode 100644 index 0000000000000000000000000000000000000000..b8c710a980a4ef4522accabeff118a0c302a9b20 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_param.py @@ -0,0 +1,45 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam +from .chat_completion_content_part_image_param import ChatCompletionContentPartImageParam +from .chat_completion_content_part_input_audio_param import ChatCompletionContentPartInputAudioParam + +__all__ = ["ChatCompletionContentPartParam", "File", "FileFile"] + + +class FileFile(TypedDict, total=False): + file_data: str + """ + The base64 encoded file data, used when passing the file to the model as a + string. + """ + + file_id: str + """The ID of an uploaded file to use as input.""" + + filename: str + """The name of the file, used when passing the file to the model as a string.""" + + +class File(TypedDict, total=False): + """ + Learn about [file inputs](https://platform.openai.com/docs/guides/text) for text generation. + """ + + file: Required[FileFile] + + type: Required[Literal["file"]] + """The type of the content part. Always `file`.""" + + +ChatCompletionContentPartParam: TypeAlias = Union[ + ChatCompletionContentPartTextParam, + ChatCompletionContentPartImageParam, + ChatCompletionContentPartInputAudioParam, + File, +] diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_refusal_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_refusal_param.py new file mode 100644 index 0000000000000000000000000000000000000000..c18c7db770d6051f29f4ea8ef6a355007d1fe24c --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_refusal_param.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionContentPartRefusalParam"] + + +class ChatCompletionContentPartRefusalParam(TypedDict, total=False): + refusal: Required[str] + """The refusal message generated by the model.""" + + type: Required[Literal["refusal"]] + """The type of the content part.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_text.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_text.py new file mode 100644 index 0000000000000000000000000000000000000000..e6d1bf1ec04f80f92bf0d4369550d78c5d8b31e4 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_text.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["ChatCompletionContentPartText"] + + +class ChatCompletionContentPartText(BaseModel): + """ + Learn about [text inputs](https://platform.openai.com/docs/guides/text-generation). + """ + + text: str + """The text content.""" + + type: Literal["text"] + """The type of the content part.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_text_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_text_param.py new file mode 100644 index 0000000000000000000000000000000000000000..be69bf66fa940aa647a5ec8166af2e938c02e377 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_content_part_text_param.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionContentPartTextParam"] + + +class ChatCompletionContentPartTextParam(TypedDict, total=False): + """ + Learn about [text inputs](https://platform.openai.com/docs/guides/text-generation). + """ + + text: Required[str] + """The text content.""" + + type: Required[Literal["text"]] + """The type of the content part.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_custom_tool_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_custom_tool_param.py new file mode 100644 index 0000000000000000000000000000000000000000..d4f21ba0ca4113cb837826285432da9423bd4947 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_custom_tool_param.py @@ -0,0 +1,68 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +__all__ = [ + "ChatCompletionCustomToolParam", + "Custom", + "CustomFormat", + "CustomFormatText", + "CustomFormatGrammar", + "CustomFormatGrammarGrammar", +] + + +class CustomFormatText(TypedDict, total=False): + """Unconstrained free-form text.""" + + type: Required[Literal["text"]] + """Unconstrained text format. Always `text`.""" + + +class CustomFormatGrammarGrammar(TypedDict, total=False): + """Your chosen grammar.""" + + definition: Required[str] + """The grammar definition.""" + + syntax: Required[Literal["lark", "regex"]] + """The syntax of the grammar definition. One of `lark` or `regex`.""" + + +class CustomFormatGrammar(TypedDict, total=False): + """A grammar defined by the user.""" + + grammar: Required[CustomFormatGrammarGrammar] + """Your chosen grammar.""" + + type: Required[Literal["grammar"]] + """Grammar format. Always `grammar`.""" + + +CustomFormat: TypeAlias = Union[CustomFormatText, CustomFormatGrammar] + + +class Custom(TypedDict, total=False): + """Properties of the custom tool.""" + + name: Required[str] + """The name of the custom tool, used to identify it in tool calls.""" + + description: str + """Optional description of the custom tool, used to provide more context.""" + + format: CustomFormat + """The input format for the custom tool. Default is unconstrained text.""" + + +class ChatCompletionCustomToolParam(TypedDict, total=False): + """A custom tool that processes input using a specified format.""" + + custom: Required[Custom] + """Properties of the custom tool.""" + + type: Required[Literal["custom"]] + """The type of the custom tool. Always `custom`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_deleted.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_deleted.py new file mode 100644 index 0000000000000000000000000000000000000000..0a541cb23d7d1aaba30f4070f934848b8cdcf92c --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_deleted.py @@ -0,0 +1,18 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["ChatCompletionDeleted"] + + +class ChatCompletionDeleted(BaseModel): + id: str + """The ID of the chat completion that was deleted.""" + + deleted: bool + """Whether the chat completion was deleted.""" + + object: Literal["chat.completion.deleted"] + """The type of object being deleted.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_developer_message_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_developer_message_param.py new file mode 100644 index 0000000000000000000000000000000000000000..94fb3359f6f54522a83f416551bd34a43df8acdd --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_developer_message_param.py @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypedDict + +from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam + +__all__ = ["ChatCompletionDeveloperMessageParam"] + + +class ChatCompletionDeveloperMessageParam(TypedDict, total=False): + """ + Developer-provided instructions that the model should follow, regardless of + messages sent by the user. With o1 models and newer, `developer` messages + replace the previous `system` messages. + """ + + content: Required[Union[str, Iterable[ChatCompletionContentPartTextParam]]] + """The contents of the developer message.""" + + role: Required[Literal["developer"]] + """The role of the messages author, in this case `developer`.""" + + name: str + """An optional name for the participant. + + Provides the model information to differentiate between participants of the same + role. + """ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_function_call_option_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_function_call_option_param.py new file mode 100644 index 0000000000000000000000000000000000000000..b1ca37bf58d2098a8f4e770d2b23ce6384eb5bba --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_function_call_option_param.py @@ -0,0 +1,16 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Required, TypedDict + +__all__ = ["ChatCompletionFunctionCallOptionParam"] + + +class ChatCompletionFunctionCallOptionParam(TypedDict, total=False): + """ + Specifying a particular function via `{"name": "my_function"}` forces the model to call that function. + """ + + name: Required[str] + """The name of the function to call.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_function_message_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_function_message_param.py new file mode 100644 index 0000000000000000000000000000000000000000..5af12bf94faaba1b66a7c6104227ac0ea5aa38c0 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_function_message_param.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Optional +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionFunctionMessageParam"] + + +class ChatCompletionFunctionMessageParam(TypedDict, total=False): + content: Required[Optional[str]] + """The contents of the function message.""" + + name: Required[str] + """The name of the function to call.""" + + role: Required[Literal["function"]] + """The role of the messages author, in this case `function`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_function_tool.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_function_tool.py new file mode 100644 index 0000000000000000000000000000000000000000..5d43a1e8361d05fbe1c99bde39378515ced72bb0 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_function_tool.py @@ -0,0 +1,17 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel +from ..shared.function_definition import FunctionDefinition + +__all__ = ["ChatCompletionFunctionTool"] + + +class ChatCompletionFunctionTool(BaseModel): + """A function tool that can be used to generate a response.""" + + function: FunctionDefinition + + type: Literal["function"] + """The type of the tool. Currently, only `function` is supported.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_function_tool_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_function_tool_param.py new file mode 100644 index 0000000000000000000000000000000000000000..d336e8c08c856ab607a89b4bdcedebc57b9a44fa --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_function_tool_param.py @@ -0,0 +1,18 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +from ..shared_params.function_definition import FunctionDefinition + +__all__ = ["ChatCompletionFunctionToolParam"] + + +class ChatCompletionFunctionToolParam(TypedDict, total=False): + """A function tool that can be used to generate a response.""" + + function: Required[FunctionDefinition] + + type: Required[Literal["function"]] + """The type of the tool. Currently, only `function` is supported.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message.py new file mode 100644 index 0000000000000000000000000000000000000000..3f88f776b94859f11ce494086ded9430e3c0271b --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message.py @@ -0,0 +1,90 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ..._models import BaseModel +from .chat_completion_audio import ChatCompletionAudio +from .chat_completion_message_tool_call import ChatCompletionMessageToolCallUnion + +__all__ = ["ChatCompletionMessage", "Annotation", "AnnotationURLCitation", "FunctionCall"] + + +class AnnotationURLCitation(BaseModel): + """A URL citation when using web search.""" + + end_index: int + """The index of the last character of the URL citation in the message.""" + + start_index: int + """The index of the first character of the URL citation in the message.""" + + title: str + """The title of the web resource.""" + + url: str + """The URL of the web resource.""" + + +class Annotation(BaseModel): + """A URL citation when using web search.""" + + type: Literal["url_citation"] + """The type of the URL citation. Always `url_citation`.""" + + url_citation: AnnotationURLCitation + """A URL citation when using web search.""" + + +class FunctionCall(BaseModel): + """Deprecated and replaced by `tool_calls`. + + The name and arguments of a function that should be called, as generated by the model. + """ + + arguments: str + """ + The arguments to call the function with, as generated by the model in JSON + format. Note that the model does not always generate valid JSON, and may + hallucinate parameters not defined by your function schema. Validate the + arguments in your code before calling your function. + """ + + name: str + """The name of the function to call.""" + + +class ChatCompletionMessage(BaseModel): + """A chat completion message generated by the model.""" + + content: Optional[str] = None + """The contents of the message.""" + + refusal: Optional[str] = None + """The refusal message generated by the model.""" + + role: Literal["assistant"] + """The role of the author of this message.""" + + annotations: Optional[List[Annotation]] = None + """ + Annotations for the message, when applicable, as when using the + [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). + """ + + audio: Optional[ChatCompletionAudio] = None + """ + If the audio output modality is requested, this object contains data about the + audio response from the model. + [Learn more](https://platform.openai.com/docs/guides/audio). + """ + + function_call: Optional[FunctionCall] = None + """Deprecated and replaced by `tool_calls`. + + The name and arguments of a function that should be called, as generated by the + model. + """ + + tool_calls: Optional[List[ChatCompletionMessageToolCallUnion]] = None + """The tool calls generated by the model, such as function calls.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_custom_tool_call.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_custom_tool_call.py new file mode 100644 index 0000000000000000000000000000000000000000..9542d8b9244ae56a720c675166230bae407c1e58 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_custom_tool_call.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["ChatCompletionMessageCustomToolCall", "Custom"] + + +class Custom(BaseModel): + """The custom tool that the model called.""" + + input: str + """The input for the custom tool call generated by the model.""" + + name: str + """The name of the custom tool to call.""" + + +class ChatCompletionMessageCustomToolCall(BaseModel): + """A call to a custom tool created by the model.""" + + id: str + """The ID of the tool call.""" + + custom: Custom + """The custom tool that the model called.""" + + type: Literal["custom"] + """The type of the tool. Always `custom`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_custom_tool_call_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_custom_tool_call_param.py new file mode 100644 index 0000000000000000000000000000000000000000..3d03f0a93c7539bbb82a22cf5a9f8c653b9534a7 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_custom_tool_call_param.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionMessageCustomToolCallParam", "Custom"] + + +class Custom(TypedDict, total=False): + """The custom tool that the model called.""" + + input: Required[str] + """The input for the custom tool call generated by the model.""" + + name: Required[str] + """The name of the custom tool to call.""" + + +class ChatCompletionMessageCustomToolCallParam(TypedDict, total=False): + """A call to a custom tool created by the model.""" + + id: Required[str] + """The ID of the tool call.""" + + custom: Required[Custom] + """The custom tool that the model called.""" + + type: Required[Literal["custom"]] + """The type of the tool. Always `custom`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_function_tool_call.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_function_tool_call.py new file mode 100644 index 0000000000000000000000000000000000000000..e7278b923c9272db5e3be14dc196449b24cf5abf --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_function_tool_call.py @@ -0,0 +1,35 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["ChatCompletionMessageFunctionToolCall", "Function"] + + +class Function(BaseModel): + """The function that the model called.""" + + arguments: str + """ + The arguments to call the function with, as generated by the model in JSON + format. Note that the model does not always generate valid JSON, and may + hallucinate parameters not defined by your function schema. Validate the + arguments in your code before calling your function. + """ + + name: str + """The name of the function to call.""" + + +class ChatCompletionMessageFunctionToolCall(BaseModel): + """A call to a function tool created by the model.""" + + id: str + """The ID of the tool call.""" + + function: Function + """The function that the model called.""" + + type: Literal["function"] + """The type of the tool. Currently, only `function` is supported.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_function_tool_call_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_function_tool_call_param.py new file mode 100644 index 0000000000000000000000000000000000000000..a8094ea63a44f6dfa11bfde7a8f2896c65a6701b --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_function_tool_call_param.py @@ -0,0 +1,35 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionMessageFunctionToolCallParam", "Function"] + + +class Function(TypedDict, total=False): + """The function that the model called.""" + + arguments: Required[str] + """ + The arguments to call the function with, as generated by the model in JSON + format. Note that the model does not always generate valid JSON, and may + hallucinate parameters not defined by your function schema. Validate the + arguments in your code before calling your function. + """ + + name: Required[str] + """The name of the function to call.""" + + +class ChatCompletionMessageFunctionToolCallParam(TypedDict, total=False): + """A call to a function tool created by the model.""" + + id: Required[str] + """The ID of the tool call.""" + + function: Required[Function] + """The function that the model called.""" + + type: Required[Literal["function"]] + """The type of the tool. Currently, only `function` is supported.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_param.py new file mode 100644 index 0000000000000000000000000000000000000000..942da243041d34e67a9f5ccde0d2c739f27ff8f1 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_param.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypeAlias + +from .chat_completion_tool_message_param import ChatCompletionToolMessageParam +from .chat_completion_user_message_param import ChatCompletionUserMessageParam +from .chat_completion_system_message_param import ChatCompletionSystemMessageParam +from .chat_completion_function_message_param import ChatCompletionFunctionMessageParam +from .chat_completion_assistant_message_param import ChatCompletionAssistantMessageParam +from .chat_completion_developer_message_param import ChatCompletionDeveloperMessageParam + +__all__ = ["ChatCompletionMessageParam"] + +ChatCompletionMessageParam: TypeAlias = Union[ + ChatCompletionDeveloperMessageParam, + ChatCompletionSystemMessageParam, + ChatCompletionUserMessageParam, + ChatCompletionAssistantMessageParam, + ChatCompletionToolMessageParam, + ChatCompletionFunctionMessageParam, +] diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_tool_call.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_tool_call.py new file mode 100644 index 0000000000000000000000000000000000000000..71ac63f58e63c754416b016c2a2e92ef15df15d6 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_tool_call.py @@ -0,0 +1,17 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Annotated, TypeAlias + +from ..._utils import PropertyInfo +from .chat_completion_message_custom_tool_call import ChatCompletionMessageCustomToolCall +from .chat_completion_message_function_tool_call import Function as Function, ChatCompletionMessageFunctionToolCall + +__all__ = ["Function", "ChatCompletionMessageToolCallUnion"] + +ChatCompletionMessageToolCallUnion: TypeAlias = Annotated[ + Union[ChatCompletionMessageFunctionToolCall, ChatCompletionMessageCustomToolCall], + PropertyInfo(discriminator="type"), +] + +ChatCompletionMessageToolCall: TypeAlias = ChatCompletionMessageFunctionToolCall diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_tool_call_union_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_tool_call_union_param.py new file mode 100644 index 0000000000000000000000000000000000000000..fcca9bb1165719ae91084dae2348ae253b7b6f14 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_message_tool_call_union_param.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypeAlias + +from .chat_completion_message_custom_tool_call_param import ChatCompletionMessageCustomToolCallParam +from .chat_completion_message_function_tool_call_param import ChatCompletionMessageFunctionToolCallParam + +__all__ = ["ChatCompletionMessageToolCallUnionParam"] + +ChatCompletionMessageToolCallUnionParam: TypeAlias = Union[ + ChatCompletionMessageFunctionToolCallParam, ChatCompletionMessageCustomToolCallParam +] diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_modality.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_modality.py new file mode 100644 index 0000000000000000000000000000000000000000..8e3c1459790bad30989afe41f995eef4341f6f7c --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_modality.py @@ -0,0 +1,7 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal, TypeAlias + +__all__ = ["ChatCompletionModality"] + +ChatCompletionModality: TypeAlias = Literal["text", "audio"] diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_named_tool_choice_custom_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_named_tool_choice_custom_param.py new file mode 100644 index 0000000000000000000000000000000000000000..147fb879658c8980f46f1870b143dc33433c019d --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_named_tool_choice_custom_param.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionNamedToolChoiceCustomParam", "Custom"] + + +class Custom(TypedDict, total=False): + name: Required[str] + """The name of the custom tool to call.""" + + +class ChatCompletionNamedToolChoiceCustomParam(TypedDict, total=False): + """Specifies a tool the model should use. + + Use to force the model to call a specific custom tool. + """ + + custom: Required[Custom] + + type: Required[Literal["custom"]] + """For custom tool calling, the type is always `custom`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_named_tool_choice_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_named_tool_choice_param.py new file mode 100644 index 0000000000000000000000000000000000000000..f684fcea5eac2d75b6db00f0b8facfa40c662cad --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_named_tool_choice_param.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["ChatCompletionNamedToolChoiceParam", "Function"] + + +class Function(TypedDict, total=False): + name: Required[str] + """The name of the function to call.""" + + +class ChatCompletionNamedToolChoiceParam(TypedDict, total=False): + """Specifies a tool the model should use. + + Use to force the model to call a specific function. + """ + + function: Required[Function] + + type: Required[Literal["function"]] + """For function calling, the type is always `function`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_reasoning_effort.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_reasoning_effort.py new file mode 100644 index 0000000000000000000000000000000000000000..42a980c5b89ef438f04a1558e517e98c511b2dbd --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_reasoning_effort.py @@ -0,0 +1,7 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from ..shared.reasoning_effort import ReasoningEffort + +__all__ = ["ChatCompletionReasoningEffort"] + +ChatCompletionReasoningEffort = ReasoningEffort diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_role.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_role.py new file mode 100644 index 0000000000000000000000000000000000000000..3ec5e9ad87754b5b95e4500b1a8ee2f8d7f31c18 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_role.py @@ -0,0 +1,7 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal, TypeAlias + +__all__ = ["ChatCompletionRole"] + +ChatCompletionRole: TypeAlias = Literal["developer", "system", "user", "assistant", "tool", "function"] diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_store_message.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_store_message.py new file mode 100644 index 0000000000000000000000000000000000000000..6a805cce76036ec2b95569cc36810cf437b436f3 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_store_message.py @@ -0,0 +1,25 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import TypeAlias + +from .chat_completion_message import ChatCompletionMessage +from .chat_completion_content_part_text import ChatCompletionContentPartText +from .chat_completion_content_part_image import ChatCompletionContentPartImage + +__all__ = ["ChatCompletionStoreMessage", "ChatCompletionStoreMessageContentPart"] + +ChatCompletionStoreMessageContentPart: TypeAlias = Union[ChatCompletionContentPartText, ChatCompletionContentPartImage] + + +class ChatCompletionStoreMessage(ChatCompletionMessage): + """A chat completion message generated by the model.""" + + id: str + """The identifier of the chat message.""" + + content_parts: Optional[List[ChatCompletionStoreMessageContentPart]] = None + """ + If a content parts array was provided, this is an array of `text` and + `image_url` parts. Otherwise, null. + """ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_stream_options_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_stream_options_param.py new file mode 100644 index 0000000000000000000000000000000000000000..9b881fff027eec3195a184474be22702ce937c3d --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_stream_options_param.py @@ -0,0 +1,33 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import TypedDict + +__all__ = ["ChatCompletionStreamOptionsParam"] + + +class ChatCompletionStreamOptionsParam(TypedDict, total=False): + """Options for streaming response. Only set this when you set `stream: true`.""" + + include_obfuscation: bool + """When true, stream obfuscation will be enabled. + + Stream obfuscation adds random characters to an `obfuscation` field on streaming + delta events to normalize payload sizes as a mitigation to certain side-channel + attacks. These obfuscation fields are included by default, but add a small + amount of overhead to the data stream. You can set `include_obfuscation` to + false to optimize for bandwidth if you trust the network links between your + application and the OpenAI API. + """ + + include_usage: bool + """If set, an additional chunk will be streamed before the `data: [DONE]` message. + + The `usage` field on this chunk shows the token usage statistics for the entire + request, and the `choices` field will always be an empty array. + + All other chunks will also include a `usage` field, but with a null value. + **NOTE:** If the stream is interrupted, you may not receive the final usage + chunk which contains the total token usage for the request. + """ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_system_message_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_system_message_param.py new file mode 100644 index 0000000000000000000000000000000000000000..9dcc5e07f948b5ffbc8cd167595092aa0f4d952d --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_system_message_param.py @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypedDict + +from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam + +__all__ = ["ChatCompletionSystemMessageParam"] + + +class ChatCompletionSystemMessageParam(TypedDict, total=False): + """ + Developer-provided instructions that the model should follow, regardless of + messages sent by the user. With o1 models and newer, use `developer` messages + for this purpose instead. + """ + + content: Required[Union[str, Iterable[ChatCompletionContentPartTextParam]]] + """The contents of the system message.""" + + role: Required[Literal["system"]] + """The role of the messages author, in this case `system`.""" + + name: str + """An optional name for the participant. + + Provides the model information to differentiate between participants of the same + role. + """ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_token_logprob.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_token_logprob.py new file mode 100644 index 0000000000000000000000000000000000000000..4ce582366ac80a11f7b007762d8315a17cc1304c --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_token_logprob.py @@ -0,0 +1,56 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional + +from ..._models import BaseModel + +__all__ = ["ChatCompletionTokenLogprob", "TopLogprob"] + + +class TopLogprob(BaseModel): + token: str + """The token.""" + + bytes: Optional[List[int]] = None + """A list of integers representing the UTF-8 bytes representation of the token. + + Useful in instances where characters are represented by multiple tokens and + their byte representations must be combined to generate the correct text + representation. Can be `null` if there is no bytes representation for the token. + """ + + logprob: float + """The log probability of this token, if it is within the top 20 most likely + tokens. + + Otherwise, the value `-9999.0` is used to signify that the token is very + unlikely. + """ + + +class ChatCompletionTokenLogprob(BaseModel): + token: str + """The token.""" + + bytes: Optional[List[int]] = None + """A list of integers representing the UTF-8 bytes representation of the token. + + Useful in instances where characters are represented by multiple tokens and + their byte representations must be combined to generate the correct text + representation. Can be `null` if there is no bytes representation for the token. + """ + + logprob: float + """The log probability of this token, if it is within the top 20 most likely + tokens. + + Otherwise, the value `-9999.0` is used to signify that the token is very + unlikely. + """ + + top_logprobs: List[TopLogprob] + """List of the most likely tokens and their log probability, at this token + position. + + The number of entries may be fewer than the requested `top_logprobs`. + """ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_tool_choice_option_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_tool_choice_option_param.py new file mode 100644 index 0000000000000000000000000000000000000000..f3bb0a46dfc0397a53e64cbaf0d273ef7ac09335 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_tool_choice_option_param.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal, TypeAlias + +from .chat_completion_named_tool_choice_param import ChatCompletionNamedToolChoiceParam +from .chat_completion_allowed_tool_choice_param import ChatCompletionAllowedToolChoiceParam +from .chat_completion_named_tool_choice_custom_param import ChatCompletionNamedToolChoiceCustomParam + +__all__ = ["ChatCompletionToolChoiceOptionParam"] + +ChatCompletionToolChoiceOptionParam: TypeAlias = Union[ + Literal["none", "auto", "required"], + ChatCompletionAllowedToolChoiceParam, + ChatCompletionNamedToolChoiceParam, + ChatCompletionNamedToolChoiceCustomParam, +] diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_tool_message_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_tool_message_param.py new file mode 100644 index 0000000000000000000000000000000000000000..eb5e270e475fab7c329545fa90d0836352b2a2a9 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_tool_message_param.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypedDict + +from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam + +__all__ = ["ChatCompletionToolMessageParam"] + + +class ChatCompletionToolMessageParam(TypedDict, total=False): + content: Required[Union[str, Iterable[ChatCompletionContentPartTextParam]]] + """The contents of the tool message.""" + + role: Required[Literal["tool"]] + """The role of the messages author, in this case `tool`.""" + + tool_call_id: Required[str] + """Tool call that this message is responding to.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_tool_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_tool_param.py new file mode 100644 index 0000000000000000000000000000000000000000..a18b13b471ba7f4cb17bcad2c2c6b652d2f75eb7 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_tool_param.py @@ -0,0 +1,14 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import TypeAlias + +from .chat_completion_function_tool_param import ( + FunctionDefinition as FunctionDefinition, + ChatCompletionFunctionToolParam, +) + +__all__ = ["ChatCompletionToolParam", "FunctionDefinition"] + +ChatCompletionToolParam: TypeAlias = ChatCompletionFunctionToolParam diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_tool_union_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_tool_union_param.py new file mode 100644 index 0000000000000000000000000000000000000000..0f8bf7b0e76f84fd42a704a5097fb56817654aea --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_tool_union_param.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypeAlias + +from .chat_completion_custom_tool_param import ChatCompletionCustomToolParam +from .chat_completion_function_tool_param import ChatCompletionFunctionToolParam + +__all__ = ["ChatCompletionToolUnionParam"] + +ChatCompletionToolUnionParam: TypeAlias = Union[ChatCompletionFunctionToolParam, ChatCompletionCustomToolParam] diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_user_message_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_user_message_param.py new file mode 100644 index 0000000000000000000000000000000000000000..c97ba535eb130cf9cbe2814d5856f78268166ba9 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/chat_completion_user_message_param.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypedDict + +from .chat_completion_content_part_param import ChatCompletionContentPartParam + +__all__ = ["ChatCompletionUserMessageParam"] + + +class ChatCompletionUserMessageParam(TypedDict, total=False): + """ + Messages sent by an end user, containing prompts or additional context + information. + """ + + content: Required[Union[str, Iterable[ChatCompletionContentPartParam]]] + """The contents of the user message.""" + + role: Required[Literal["user"]] + """The role of the messages author, in this case `user`.""" + + name: str + """An optional name for the participant. + + Provides the model information to differentiate between participants of the same + role. + """ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/completion_create_params.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/completion_create_params.py new file mode 100644 index 0000000000000000000000000000000000000000..3c541b96b487546e930ef460a6b1a8f0e6c370eb --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/completion_create_params.py @@ -0,0 +1,462 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Dict, List, Union, Iterable, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from ..._types import SequenceNotStr +from ..shared.chat_model import ChatModel +from ..shared_params.metadata import Metadata +from ..shared.reasoning_effort import ReasoningEffort +from .chat_completion_audio_param import ChatCompletionAudioParam +from .chat_completion_message_param import ChatCompletionMessageParam +from .chat_completion_tool_union_param import ChatCompletionToolUnionParam +from ..shared_params.function_parameters import FunctionParameters +from ..shared_params.response_format_text import ResponseFormatText +from .chat_completion_stream_options_param import ChatCompletionStreamOptionsParam +from .chat_completion_prediction_content_param import ChatCompletionPredictionContentParam +from .chat_completion_tool_choice_option_param import ChatCompletionToolChoiceOptionParam +from ..shared_params.response_format_json_object import ResponseFormatJSONObject +from ..shared_params.response_format_json_schema import ResponseFormatJSONSchema +from .chat_completion_function_call_option_param import ChatCompletionFunctionCallOptionParam + +__all__ = [ + "CompletionCreateParamsBase", + "FunctionCall", + "Function", + "ResponseFormat", + "WebSearchOptions", + "WebSearchOptionsUserLocation", + "WebSearchOptionsUserLocationApproximate", + "CompletionCreateParamsNonStreaming", + "CompletionCreateParamsStreaming", +] + + +class CompletionCreateParamsBase(TypedDict, total=False): + messages: Required[Iterable[ChatCompletionMessageParam]] + """A list of messages comprising the conversation so far. + + Depending on the [model](https://platform.openai.com/docs/models) you use, + different message types (modalities) are supported, like + [text](https://platform.openai.com/docs/guides/text-generation), + [images](https://platform.openai.com/docs/guides/vision), and + [audio](https://platform.openai.com/docs/guides/audio). + """ + + model: Required[Union[str, ChatModel]] + """Model ID used to generate the response, like `gpt-4o` or `o3`. + + OpenAI offers a wide range of models with different capabilities, performance + characteristics, and price points. Refer to the + [model guide](https://platform.openai.com/docs/models) to browse and compare + available models. + """ + + audio: Optional[ChatCompletionAudioParam] + """Parameters for audio output. + + Required when audio output is requested with `modalities: ["audio"]`. + [Learn more](https://platform.openai.com/docs/guides/audio). + """ + + frequency_penalty: Optional[float] + """Number between -2.0 and 2.0. + + Positive values penalize new tokens based on their existing frequency in the + text so far, decreasing the model's likelihood to repeat the same line verbatim. + """ + + function_call: FunctionCall + """Deprecated in favor of `tool_choice`. + + Controls which (if any) function is called by the model. + + `none` means the model will not call a function and instead generates a message. + + `auto` means the model can pick between generating a message or calling a + function. + + Specifying a particular function via `{"name": "my_function"}` forces the model + to call that function. + + `none` is the default when no functions are present. `auto` is the default if + functions are present. + """ + + functions: Iterable[Function] + """Deprecated in favor of `tools`. + + A list of functions the model may generate JSON inputs for. + """ + + logit_bias: Optional[Dict[str, int]] + """Modify the likelihood of specified tokens appearing in the completion. + + Accepts a JSON object that maps tokens (specified by their token ID in the + tokenizer) to an associated bias value from -100 to 100. Mathematically, the + bias is added to the logits generated by the model prior to sampling. The exact + effect will vary per model, but values between -1 and 1 should decrease or + increase likelihood of selection; values like -100 or 100 should result in a ban + or exclusive selection of the relevant token. + """ + + logprobs: Optional[bool] + """Whether to return log probabilities of the output tokens or not. + + If true, returns the log probabilities of each output token returned in the + `content` of `message`. + """ + + max_completion_tokens: Optional[int] + """ + An upper bound for the number of tokens that can be generated for a completion, + including visible output tokens and + [reasoning tokens](https://platform.openai.com/docs/guides/reasoning). + """ + + max_tokens: Optional[int] + """ + The maximum number of [tokens](/tokenizer) that can be generated in the chat + completion. This value can be used to control + [costs](https://openai.com/api/pricing/) for text generated via API. + + This value is now deprecated in favor of `max_completion_tokens`, and is not + compatible with + [o-series models](https://platform.openai.com/docs/guides/reasoning). + """ + + metadata: Optional[Metadata] + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format, and querying for objects via API or the dashboard. + + Keys are strings with a maximum length of 64 characters. Values are strings with + a maximum length of 512 characters. + """ + + modalities: Optional[List[Literal["text", "audio"]]] + """ + Output types that you would like the model to generate. Most models are capable + of generating text, which is the default: + + `["text"]` + + The `gpt-4o-audio-preview` model can also be used to + [generate audio](https://platform.openai.com/docs/guides/audio). To request that + this model generate both text and audio responses, you can use: + + `["text", "audio"]` + """ + + n: Optional[int] + """How many chat completion choices to generate for each input message. + + Note that you will be charged based on the number of generated tokens across all + of the choices. Keep `n` as `1` to minimize costs. + """ + + parallel_tool_calls: bool + """ + Whether to enable + [parallel function calling](https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling) + during tool use. + """ + + prediction: Optional[ChatCompletionPredictionContentParam] + """ + Static predicted output content, such as the content of a text file that is + being regenerated. + """ + + presence_penalty: Optional[float] + """Number between -2.0 and 2.0. + + Positive values penalize new tokens based on whether they appear in the text so + far, increasing the model's likelihood to talk about new topics. + """ + + prompt_cache_key: str + """ + Used by OpenAI to cache responses for similar requests to optimize your cache + hit rates. Replaces the `user` field. + [Learn more](https://platform.openai.com/docs/guides/prompt-caching). + """ + + prompt_cache_retention: Optional[Literal["in_memory", "24h"]] + """The retention policy for the prompt cache. + + Set to `24h` to enable extended prompt caching, which keeps cached prefixes + active for longer, up to a maximum of 24 hours. + [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention). + """ + + reasoning_effort: Optional[ReasoningEffort] + """ + Constrains effort on reasoning for + [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. + Reducing reasoning effort can result in faster responses and fewer tokens used + on reasoning in a response. + + - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported + reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool + calls are supported for all reasoning values in gpt-5.1. + - All models before `gpt-5.1` default to `medium` reasoning effort, and do not + support `none`. + - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort. + - `xhigh` is supported for all models after `gpt-5.1-codex-max`. + """ + + response_format: ResponseFormat + """An object specifying the format that the model must output. + + Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured + Outputs which ensures the model will match your supplied JSON schema. Learn more + in the + [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs). + + Setting to `{ "type": "json_object" }` enables the older JSON mode, which + ensures the message the model generates is valid JSON. Using `json_schema` is + preferred for models that support it. + """ + + safety_identifier: str + """ + A stable identifier used to help detect users of your application that may be + violating OpenAI's usage policies. The IDs should be a string that uniquely + identifies each user, with a maximum length of 64 characters. We recommend + hashing their username or email address, in order to avoid sending us any + identifying information. + [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + """ + + seed: Optional[int] + """ + This feature is in Beta. If specified, our system will make a best effort to + sample deterministically, such that repeated requests with the same `seed` and + parameters should return the same result. Determinism is not guaranteed, and you + should refer to the `system_fingerprint` response parameter to monitor changes + in the backend. + """ + + service_tier: Optional[Literal["auto", "default", "flex", "scale", "priority"]] + """Specifies the processing type used for serving the request. + + - If set to 'auto', then the request will be processed with the service tier + configured in the Project settings. Unless otherwise configured, the Project + will use 'default'. + - If set to 'default', then the request will be processed with the standard + pricing and performance for the selected model. + - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or + '[priority](https://openai.com/api-priority-processing/)', then the request + will be processed with the corresponding service tier. + - When not set, the default behavior is 'auto'. + + When the `service_tier` parameter is set, the response body will include the + `service_tier` value based on the processing mode actually used to serve the + request. This response value may be different from the value set in the + parameter. + """ + + stop: Union[Optional[str], SequenceNotStr[str], None] + """Not supported with latest reasoning models `o3` and `o4-mini`. + + Up to 4 sequences where the API will stop generating further tokens. The + returned text will not contain the stop sequence. + """ + + store: Optional[bool] + """ + Whether or not to store the output of this chat completion request for use in + our [model distillation](https://platform.openai.com/docs/guides/distillation) + or [evals](https://platform.openai.com/docs/guides/evals) products. + + Supports text and image inputs. Note: image inputs over 8MB will be dropped. + """ + + stream_options: Optional[ChatCompletionStreamOptionsParam] + """Options for streaming response. Only set this when you set `stream: true`.""" + + temperature: Optional[float] + """What sampling temperature to use, between 0 and 2. + + Higher values like 0.8 will make the output more random, while lower values like + 0.2 will make it more focused and deterministic. We generally recommend altering + this or `top_p` but not both. + """ + + tool_choice: ChatCompletionToolChoiceOptionParam + """ + Controls which (if any) tool is called by the model. `none` means the model will + not call any tool and instead generates a message. `auto` means the model can + pick between generating a message or calling one or more tools. `required` means + the model must call one or more tools. Specifying a particular tool via + `{"type": "function", "function": {"name": "my_function"}}` forces the model to + call that tool. + + `none` is the default when no tools are present. `auto` is the default if tools + are present. + """ + + tools: Iterable[ChatCompletionToolUnionParam] + """A list of tools the model may call. + + You can provide either + [custom tools](https://platform.openai.com/docs/guides/function-calling#custom-tools) + or [function tools](https://platform.openai.com/docs/guides/function-calling). + """ + + top_logprobs: Optional[int] + """ + An integer between 0 and 20 specifying the maximum number of most likely tokens + to return at each token position, each with an associated log probability. In + some cases, the number of returned tokens may be fewer than requested. + `logprobs` must be set to `true` if this parameter is used. + """ + + top_p: Optional[float] + """ + An alternative to sampling with temperature, called nucleus sampling, where the + model considers the results of the tokens with top_p probability mass. So 0.1 + means only the tokens comprising the top 10% probability mass are considered. + + We generally recommend altering this or `temperature` but not both. + """ + + user: str + """This field is being replaced by `safety_identifier` and `prompt_cache_key`. + + Use `prompt_cache_key` instead to maintain caching optimizations. A stable + identifier for your end-users. Used to boost cache hit rates by better bucketing + similar requests and to help OpenAI detect and prevent abuse. + [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers). + """ + + verbosity: Optional[Literal["low", "medium", "high"]] + """Constrains the verbosity of the model's response. + + Lower values will result in more concise responses, while higher values will + result in more verbose responses. Currently supported values are `low`, + `medium`, and `high`. + """ + + web_search_options: WebSearchOptions + """ + This tool searches the web for relevant results to use in a response. Learn more + about the + [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). + """ + + +FunctionCall: TypeAlias = Union[Literal["none", "auto"], ChatCompletionFunctionCallOptionParam] + + +class Function(TypedDict, total=False): + name: Required[str] + """The name of the function to be called. + + Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length + of 64. + """ + + description: str + """ + A description of what the function does, used by the model to choose when and + how to call the function. + """ + + parameters: FunctionParameters + """The parameters the functions accepts, described as a JSON Schema object. + + See the [guide](https://platform.openai.com/docs/guides/function-calling) for + examples, and the + [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for + documentation about the format. + + Omitting `parameters` defines a function with an empty parameter list. + """ + + +ResponseFormat: TypeAlias = Union[ResponseFormatText, ResponseFormatJSONSchema, ResponseFormatJSONObject] + + +class WebSearchOptionsUserLocationApproximate(TypedDict, total=False): + """Approximate location parameters for the search.""" + + city: str + """Free text input for the city of the user, e.g. `San Francisco`.""" + + country: str + """ + The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of + the user, e.g. `US`. + """ + + region: str + """Free text input for the region of the user, e.g. `California`.""" + + timezone: str + """ + The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the + user, e.g. `America/Los_Angeles`. + """ + + +class WebSearchOptionsUserLocation(TypedDict, total=False): + """Approximate location parameters for the search.""" + + approximate: Required[WebSearchOptionsUserLocationApproximate] + """Approximate location parameters for the search.""" + + type: Required[Literal["approximate"]] + """The type of location approximation. Always `approximate`.""" + + +class WebSearchOptions(TypedDict, total=False): + """ + This tool searches the web for relevant results to use in a response. + Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). + """ + + search_context_size: Literal["low", "medium", "high"] + """ + High level guidance for the amount of context window space to use for the + search. One of `low`, `medium`, or `high`. `medium` is the default. + """ + + user_location: Optional[WebSearchOptionsUserLocation] + """Approximate location parameters for the search.""" + + +class CompletionCreateParamsNonStreaming(CompletionCreateParamsBase, total=False): + stream: Optional[Literal[False]] + """ + If set to true, the model response data will be streamed to the client as it is + generated using + [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + See the + [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming) + for more information, along with the + [streaming responses](https://platform.openai.com/docs/guides/streaming-responses) + guide for more information on how to handle the streaming events. + """ + + +class CompletionCreateParamsStreaming(CompletionCreateParamsBase): + stream: Required[Literal[True]] + """ + If set to true, the model response data will be streamed to the client as it is + generated using + [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format). + See the + [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming) + for more information, along with the + [streaming responses](https://platform.openai.com/docs/guides/streaming-responses) + guide for more information on how to handle the streaming events. + """ + + +CompletionCreateParams = Union[CompletionCreateParamsNonStreaming, CompletionCreateParamsStreaming] diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/completion_update_params.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/completion_update_params.py new file mode 100644 index 0000000000000000000000000000000000000000..fc71733f07016e6c5497abe5af4c07bb5c930af1 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/completion_update_params.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Optional +from typing_extensions import Required, TypedDict + +from ..shared_params.metadata import Metadata + +__all__ = ["CompletionUpdateParams"] + + +class CompletionUpdateParams(TypedDict, total=False): + metadata: Required[Optional[Metadata]] + """Set of 16 key-value pairs that can be attached to an object. + + This can be useful for storing additional information about the object in a + structured format, and querying for objects via API or the dashboard. + + Keys are strings with a maximum length of 64 characters. Values are strings with + a maximum length of 512 characters. + """ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/parsed_chat_completion.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/parsed_chat_completion.py new file mode 100644 index 0000000000000000000000000000000000000000..4b11dac5a0d0c66e205c769d19f800205211cf5e --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/parsed_chat_completion.py @@ -0,0 +1,40 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Generic, TypeVar, Optional + +from ..._models import GenericModel +from .chat_completion import Choice, ChatCompletion +from .chat_completion_message import ChatCompletionMessage +from .parsed_function_tool_call import ParsedFunctionToolCall + +__all__ = ["ParsedChatCompletion", "ParsedChoice"] + + +ContentType = TypeVar("ContentType") + + +# we need to disable this check because we're overriding properties +# with subclasses of their types which is technically unsound as +# properties can be mutated. +# pyright: reportIncompatibleVariableOverride=false + + +class ParsedChatCompletionMessage(ChatCompletionMessage, GenericModel, Generic[ContentType]): + parsed: Optional[ContentType] = None + """The auto-parsed message contents""" + + tool_calls: Optional[List[ParsedFunctionToolCall]] = None # type: ignore[assignment] + """The tool calls generated by the model, such as function calls.""" + + +class ParsedChoice(Choice, GenericModel, Generic[ContentType]): + message: ParsedChatCompletionMessage[ContentType] + """A chat completion message generated by the model.""" + + +class ParsedChatCompletion(ChatCompletion, GenericModel, Generic[ContentType]): + choices: List[ParsedChoice[ContentType]] # type: ignore[assignment] + """A list of chat completion choices. + + Can be more than one if `n` is greater than 1. + """ diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/parsed_function_tool_call.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/parsed_function_tool_call.py new file mode 100644 index 0000000000000000000000000000000000000000..e06b3546cbaa5303ac326a3b84eaf6fef5003259 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/chat/parsed_function_tool_call.py @@ -0,0 +1,29 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional + +from .chat_completion_message_function_tool_call import Function, ChatCompletionMessageFunctionToolCall + +__all__ = ["ParsedFunctionToolCall", "ParsedFunction"] + +# we need to disable this check because we're overriding properties +# with subclasses of their types which is technically unsound as +# properties can be mutated. +# pyright: reportIncompatibleVariableOverride=false + + +class ParsedFunction(Function): + parsed_arguments: Optional[object] = None + """ + The arguments to call the function with. + + If you used `openai.pydantic_function_tool()` then this will be an + instance of the given `BaseModel`. + + Otherwise, this will be the parsed JSON arguments. + """ + + +class ParsedFunctionToolCall(ChatCompletionMessageFunctionToolCall): + function: ParsedFunction + """The function that the model called.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/__init__.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..4f70eb6c2f1082261841ebd56fb3ddae33aeb3ab --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/__init__.py @@ -0,0 +1,18 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .multi_grader import MultiGrader as MultiGrader +from .grader_inputs import GraderInputs as GraderInputs +from .python_grader import PythonGrader as PythonGrader +from .label_model_grader import LabelModelGrader as LabelModelGrader +from .multi_grader_param import MultiGraderParam as MultiGraderParam +from .score_model_grader import ScoreModelGrader as ScoreModelGrader +from .grader_inputs_param import GraderInputsParam as GraderInputsParam +from .python_grader_param import PythonGraderParam as PythonGraderParam +from .string_check_grader import StringCheckGrader as StringCheckGrader +from .text_similarity_grader import TextSimilarityGrader as TextSimilarityGrader +from .label_model_grader_param import LabelModelGraderParam as LabelModelGraderParam +from .score_model_grader_param import ScoreModelGraderParam as ScoreModelGraderParam +from .string_check_grader_param import StringCheckGraderParam as StringCheckGraderParam +from .text_similarity_grader_param import TextSimilarityGraderParam as TextSimilarityGraderParam diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/grader_inputs.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/grader_inputs.py new file mode 100644 index 0000000000000000000000000000000000000000..edc966d88913e4fa736f9d4da0d1468fad01d4b0 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/grader_inputs.py @@ -0,0 +1,43 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal, TypeAlias + +from ..._models import BaseModel +from ..responses.response_input_text import ResponseInputText +from ..responses.response_input_audio import ResponseInputAudio + +__all__ = ["GraderInputs", "GraderInputItem", "GraderInputItemOutputText", "GraderInputItemInputImage"] + + +class GraderInputItemOutputText(BaseModel): + """A text output from the model.""" + + text: str + """The text output from the model.""" + + type: Literal["output_text"] + """The type of the output text. Always `output_text`.""" + + +class GraderInputItemInputImage(BaseModel): + """An image input block used within EvalItem content arrays.""" + + image_url: str + """The URL of the image input.""" + + type: Literal["input_image"] + """The type of the image input. Always `input_image`.""" + + detail: Optional[str] = None + """The detail level of the image to be sent to the model. + + One of `high`, `low`, or `auto`. Defaults to `auto`. + """ + + +GraderInputItem: TypeAlias = Union[ + str, ResponseInputText, GraderInputItemOutputText, GraderInputItemInputImage, ResponseInputAudio +] + +GraderInputs: TypeAlias = List[GraderInputItem] diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/grader_inputs_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/grader_inputs_param.py new file mode 100644 index 0000000000000000000000000000000000000000..7d8341eb3249b440ff48461e267b90bf543d5cf1 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/grader_inputs_param.py @@ -0,0 +1,53 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List, Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from ..responses.response_input_text_param import ResponseInputTextParam +from ..responses.response_input_audio_param import ResponseInputAudioParam + +__all__ = [ + "GraderInputsParam", + "GraderInputsParamItem", + "GraderInputsParamItemOutputText", + "GraderInputsParamItemInputImage", +] + + +class GraderInputsParamItemOutputText(TypedDict, total=False): + """A text output from the model.""" + + text: Required[str] + """The text output from the model.""" + + type: Required[Literal["output_text"]] + """The type of the output text. Always `output_text`.""" + + +class GraderInputsParamItemInputImage(TypedDict, total=False): + """An image input block used within EvalItem content arrays.""" + + image_url: Required[str] + """The URL of the image input.""" + + type: Required[Literal["input_image"]] + """The type of the image input. Always `input_image`.""" + + detail: str + """The detail level of the image to be sent to the model. + + One of `high`, `low`, or `auto`. Defaults to `auto`. + """ + + +GraderInputsParamItem: TypeAlias = Union[ + str, + ResponseInputTextParam, + GraderInputsParamItemOutputText, + GraderInputsParamItemInputImage, + ResponseInputAudioParam, +] + +GraderInputsParam: TypeAlias = List[GraderInputsParamItem] diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/label_model_grader.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/label_model_grader.py new file mode 100644 index 0000000000000000000000000000000000000000..d3c942235e1babb2bb09c4131f481afcc8b2ba50 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/label_model_grader.py @@ -0,0 +1,92 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal, TypeAlias + +from ..._models import BaseModel +from .grader_inputs import GraderInputs +from ..responses.response_input_text import ResponseInputText +from ..responses.response_input_audio import ResponseInputAudio + +__all__ = ["LabelModelGrader", "Input", "InputContent", "InputContentOutputText", "InputContentInputImage"] + + +class InputContentOutputText(BaseModel): + """A text output from the model.""" + + text: str + """The text output from the model.""" + + type: Literal["output_text"] + """The type of the output text. Always `output_text`.""" + + +class InputContentInputImage(BaseModel): + """An image input block used within EvalItem content arrays.""" + + image_url: str + """The URL of the image input.""" + + type: Literal["input_image"] + """The type of the image input. Always `input_image`.""" + + detail: Optional[str] = None + """The detail level of the image to be sent to the model. + + One of `high`, `low`, or `auto`. Defaults to `auto`. + """ + + +InputContent: TypeAlias = Union[ + str, ResponseInputText, InputContentOutputText, InputContentInputImage, ResponseInputAudio, GraderInputs +] + + +class Input(BaseModel): + """ + A message input to the model with a role indicating instruction following + hierarchy. Instructions given with the `developer` or `system` role take + precedence over instructions given with the `user` role. Messages with the + `assistant` role are presumed to have been generated by the model in previous + interactions. + """ + + content: InputContent + """Inputs to the model - can contain template strings. + + Supports text, output text, input images, and input audio, either as a single + item or an array of items. + """ + + role: Literal["user", "assistant", "system", "developer"] + """The role of the message input. + + One of `user`, `assistant`, `system`, or `developer`. + """ + + type: Optional[Literal["message"]] = None + """The type of the message input. Always `message`.""" + + +class LabelModelGrader(BaseModel): + """ + A LabelModelGrader object which uses a model to assign labels to each item + in the evaluation. + """ + + input: List[Input] + + labels: List[str] + """The labels to assign to each item in the evaluation.""" + + model: str + """The model to use for the evaluation. Must support structured outputs.""" + + name: str + """The name of the grader.""" + + passing_labels: List[str] + """The labels that indicate a passing result. Must be a subset of labels.""" + + type: Literal["label_model"] + """The object type, which is always `label_model`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/label_model_grader_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/label_model_grader_param.py new file mode 100644 index 0000000000000000000000000000000000000000..a5b6959cff52d452f427f037b3664da63d11ef7a --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/label_model_grader_param.py @@ -0,0 +1,99 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from ..._types import SequenceNotStr +from .grader_inputs_param import GraderInputsParam +from ..responses.response_input_text_param import ResponseInputTextParam +from ..responses.response_input_audio_param import ResponseInputAudioParam + +__all__ = ["LabelModelGraderParam", "Input", "InputContent", "InputContentOutputText", "InputContentInputImage"] + + +class InputContentOutputText(TypedDict, total=False): + """A text output from the model.""" + + text: Required[str] + """The text output from the model.""" + + type: Required[Literal["output_text"]] + """The type of the output text. Always `output_text`.""" + + +class InputContentInputImage(TypedDict, total=False): + """An image input block used within EvalItem content arrays.""" + + image_url: Required[str] + """The URL of the image input.""" + + type: Required[Literal["input_image"]] + """The type of the image input. Always `input_image`.""" + + detail: str + """The detail level of the image to be sent to the model. + + One of `high`, `low`, or `auto`. Defaults to `auto`. + """ + + +InputContent: TypeAlias = Union[ + str, + ResponseInputTextParam, + InputContentOutputText, + InputContentInputImage, + ResponseInputAudioParam, + GraderInputsParam, +] + + +class Input(TypedDict, total=False): + """ + A message input to the model with a role indicating instruction following + hierarchy. Instructions given with the `developer` or `system` role take + precedence over instructions given with the `user` role. Messages with the + `assistant` role are presumed to have been generated by the model in previous + interactions. + """ + + content: Required[InputContent] + """Inputs to the model - can contain template strings. + + Supports text, output text, input images, and input audio, either as a single + item or an array of items. + """ + + role: Required[Literal["user", "assistant", "system", "developer"]] + """The role of the message input. + + One of `user`, `assistant`, `system`, or `developer`. + """ + + type: Literal["message"] + """The type of the message input. Always `message`.""" + + +class LabelModelGraderParam(TypedDict, total=False): + """ + A LabelModelGrader object which uses a model to assign labels to each item + in the evaluation. + """ + + input: Required[Iterable[Input]] + + labels: Required[SequenceNotStr[str]] + """The labels to assign to each item in the evaluation.""" + + model: Required[str] + """The model to use for the evaluation. Must support structured outputs.""" + + name: Required[str] + """The name of the grader.""" + + passing_labels: Required[SequenceNotStr[str]] + """The labels that indicate a passing result. Must be a subset of labels.""" + + type: Required[Literal["label_model"]] + """The object type, which is always `label_model`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/multi_grader.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/multi_grader.py new file mode 100644 index 0000000000000000000000000000000000000000..022ddb406a695f20eb41668e40733efe1daeef6a --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/multi_grader.py @@ -0,0 +1,36 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Literal, TypeAlias + +from ..._models import BaseModel +from .python_grader import PythonGrader +from .label_model_grader import LabelModelGrader +from .score_model_grader import ScoreModelGrader +from .string_check_grader import StringCheckGrader +from .text_similarity_grader import TextSimilarityGrader + +__all__ = ["MultiGrader", "Graders"] + +Graders: TypeAlias = Union[StringCheckGrader, TextSimilarityGrader, PythonGrader, ScoreModelGrader, LabelModelGrader] + + +class MultiGrader(BaseModel): + """ + A MultiGrader object combines the output of multiple graders to produce a single score. + """ + + calculate_output: str + """A formula to calculate the output based on grader results.""" + + graders: Graders + """ + A StringCheckGrader object that performs a string comparison between input and + reference using a specified operation. + """ + + name: str + """The name of the grader.""" + + type: Literal["multi"] + """The object type, which is always `multi`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/multi_grader_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/multi_grader_param.py new file mode 100644 index 0000000000000000000000000000000000000000..064267a5aa5a15d585809fe1e4b4c62e663ae2c9 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/multi_grader_param.py @@ -0,0 +1,39 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from .python_grader_param import PythonGraderParam +from .label_model_grader_param import LabelModelGraderParam +from .score_model_grader_param import ScoreModelGraderParam +from .string_check_grader_param import StringCheckGraderParam +from .text_similarity_grader_param import TextSimilarityGraderParam + +__all__ = ["MultiGraderParam", "Graders"] + +Graders: TypeAlias = Union[ + StringCheckGraderParam, TextSimilarityGraderParam, PythonGraderParam, ScoreModelGraderParam, LabelModelGraderParam +] + + +class MultiGraderParam(TypedDict, total=False): + """ + A MultiGrader object combines the output of multiple graders to produce a single score. + """ + + calculate_output: Required[str] + """A formula to calculate the output based on grader results.""" + + graders: Required[Graders] + """ + A StringCheckGrader object that performs a string comparison between input and + reference using a specified operation. + """ + + name: Required[str] + """The name of the grader.""" + + type: Required[Literal["multi"]] + """The object type, which is always `multi`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/python_grader.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/python_grader.py new file mode 100644 index 0000000000000000000000000000000000000000..81aafdae0a744b65e87bfe8f055c1179c66c4dc4 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/python_grader.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["PythonGrader"] + + +class PythonGrader(BaseModel): + """A PythonGrader object that runs a python script on the input.""" + + name: str + """The name of the grader.""" + + source: str + """The source code of the python script.""" + + type: Literal["python"] + """The object type, which is always `python`.""" + + image_tag: Optional[str] = None + """The image tag to use for the python script.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/python_grader_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/python_grader_param.py new file mode 100644 index 0000000000000000000000000000000000000000..3be7bab432c38605b64dd3bdcfc860363d6eaa0e --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/python_grader_param.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["PythonGraderParam"] + + +class PythonGraderParam(TypedDict, total=False): + """A PythonGrader object that runs a python script on the input.""" + + name: Required[str] + """The name of the grader.""" + + source: Required[str] + """The source code of the python script.""" + + type: Required[Literal["python"]] + """The object type, which is always `python`.""" + + image_tag: str + """The image tag to use for the python script.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/score_model_grader.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/score_model_grader.py new file mode 100644 index 0000000000000000000000000000000000000000..85d11e86666df70186dd3d7a890886e9a3edd3a4 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/score_model_grader.py @@ -0,0 +1,135 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union, Optional +from typing_extensions import Literal, TypeAlias + +from ..._models import BaseModel +from .grader_inputs import GraderInputs +from ..shared.reasoning_effort import ReasoningEffort +from ..responses.response_input_text import ResponseInputText +from ..responses.response_input_audio import ResponseInputAudio + +__all__ = [ + "ScoreModelGrader", + "Input", + "InputContent", + "InputContentOutputText", + "InputContentInputImage", + "SamplingParams", +] + + +class InputContentOutputText(BaseModel): + """A text output from the model.""" + + text: str + """The text output from the model.""" + + type: Literal["output_text"] + """The type of the output text. Always `output_text`.""" + + +class InputContentInputImage(BaseModel): + """An image input block used within EvalItem content arrays.""" + + image_url: str + """The URL of the image input.""" + + type: Literal["input_image"] + """The type of the image input. Always `input_image`.""" + + detail: Optional[str] = None + """The detail level of the image to be sent to the model. + + One of `high`, `low`, or `auto`. Defaults to `auto`. + """ + + +InputContent: TypeAlias = Union[ + str, ResponseInputText, InputContentOutputText, InputContentInputImage, ResponseInputAudio, GraderInputs +] + + +class Input(BaseModel): + """ + A message input to the model with a role indicating instruction following + hierarchy. Instructions given with the `developer` or `system` role take + precedence over instructions given with the `user` role. Messages with the + `assistant` role are presumed to have been generated by the model in previous + interactions. + """ + + content: InputContent + """Inputs to the model - can contain template strings. + + Supports text, output text, input images, and input audio, either as a single + item or an array of items. + """ + + role: Literal["user", "assistant", "system", "developer"] + """The role of the message input. + + One of `user`, `assistant`, `system`, or `developer`. + """ + + type: Optional[Literal["message"]] = None + """The type of the message input. Always `message`.""" + + +class SamplingParams(BaseModel): + """The sampling parameters for the model.""" + + max_completions_tokens: Optional[int] = None + """The maximum number of tokens the grader model may generate in its response.""" + + reasoning_effort: Optional[ReasoningEffort] = None + """ + Constrains effort on reasoning for + [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. + Reducing reasoning effort can result in faster responses and fewer tokens used + on reasoning in a response. + + - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported + reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool + calls are supported for all reasoning values in gpt-5.1. + - All models before `gpt-5.1` default to `medium` reasoning effort, and do not + support `none`. + - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort. + - `xhigh` is supported for all models after `gpt-5.1-codex-max`. + """ + + seed: Optional[int] = None + """A seed value to initialize the randomness, during sampling.""" + + temperature: Optional[float] = None + """A higher temperature increases randomness in the outputs.""" + + top_p: Optional[float] = None + """An alternative to temperature for nucleus sampling; 1.0 includes all tokens.""" + + +class ScoreModelGrader(BaseModel): + """A ScoreModelGrader object that uses a model to assign a score to the input.""" + + input: List[Input] + """The input messages evaluated by the grader. + + Supports text, output text, input image, and input audio content blocks, and may + include template strings. + """ + + model: str + """The model to use for the evaluation.""" + + name: str + """The name of the grader.""" + + type: Literal["score_model"] + """The object type, which is always `score_model`.""" + + range: Optional[List[float]] = None + """The range of the score. Defaults to `[0, 1]`.""" + + sampling_params: Optional[SamplingParams] = None + """The sampling parameters for the model.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/score_model_grader_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/score_model_grader_param.py new file mode 100644 index 0000000000000000000000000000000000000000..9f1c42e051be620ca08318bc5afc21fe4d6ef0fa --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/score_model_grader_param.py @@ -0,0 +1,141 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from .grader_inputs_param import GraderInputsParam +from ..shared.reasoning_effort import ReasoningEffort +from ..responses.response_input_text_param import ResponseInputTextParam +from ..responses.response_input_audio_param import ResponseInputAudioParam + +__all__ = [ + "ScoreModelGraderParam", + "Input", + "InputContent", + "InputContentOutputText", + "InputContentInputImage", + "SamplingParams", +] + + +class InputContentOutputText(TypedDict, total=False): + """A text output from the model.""" + + text: Required[str] + """The text output from the model.""" + + type: Required[Literal["output_text"]] + """The type of the output text. Always `output_text`.""" + + +class InputContentInputImage(TypedDict, total=False): + """An image input block used within EvalItem content arrays.""" + + image_url: Required[str] + """The URL of the image input.""" + + type: Required[Literal["input_image"]] + """The type of the image input. Always `input_image`.""" + + detail: str + """The detail level of the image to be sent to the model. + + One of `high`, `low`, or `auto`. Defaults to `auto`. + """ + + +InputContent: TypeAlias = Union[ + str, + ResponseInputTextParam, + InputContentOutputText, + InputContentInputImage, + ResponseInputAudioParam, + GraderInputsParam, +] + + +class Input(TypedDict, total=False): + """ + A message input to the model with a role indicating instruction following + hierarchy. Instructions given with the `developer` or `system` role take + precedence over instructions given with the `user` role. Messages with the + `assistant` role are presumed to have been generated by the model in previous + interactions. + """ + + content: Required[InputContent] + """Inputs to the model - can contain template strings. + + Supports text, output text, input images, and input audio, either as a single + item or an array of items. + """ + + role: Required[Literal["user", "assistant", "system", "developer"]] + """The role of the message input. + + One of `user`, `assistant`, `system`, or `developer`. + """ + + type: Literal["message"] + """The type of the message input. Always `message`.""" + + +class SamplingParams(TypedDict, total=False): + """The sampling parameters for the model.""" + + max_completions_tokens: Optional[int] + """The maximum number of tokens the grader model may generate in its response.""" + + reasoning_effort: Optional[ReasoningEffort] + """ + Constrains effort on reasoning for + [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently + supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. + Reducing reasoning effort can result in faster responses and fewer tokens used + on reasoning in a response. + + - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported + reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool + calls are supported for all reasoning values in gpt-5.1. + - All models before `gpt-5.1` default to `medium` reasoning effort, and do not + support `none`. + - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort. + - `xhigh` is supported for all models after `gpt-5.1-codex-max`. + """ + + seed: Optional[int] + """A seed value to initialize the randomness, during sampling.""" + + temperature: Optional[float] + """A higher temperature increases randomness in the outputs.""" + + top_p: Optional[float] + """An alternative to temperature for nucleus sampling; 1.0 includes all tokens.""" + + +class ScoreModelGraderParam(TypedDict, total=False): + """A ScoreModelGrader object that uses a model to assign a score to the input.""" + + input: Required[Iterable[Input]] + """The input messages evaluated by the grader. + + Supports text, output text, input image, and input audio content blocks, and may + include template strings. + """ + + model: Required[str] + """The model to use for the evaluation.""" + + name: Required[str] + """The name of the grader.""" + + type: Required[Literal["score_model"]] + """The object type, which is always `score_model`.""" + + range: Iterable[float] + """The range of the score. Defaults to `[0, 1]`.""" + + sampling_params: SamplingParams + """The sampling parameters for the model.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/string_check_grader.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/string_check_grader.py new file mode 100644 index 0000000000000000000000000000000000000000..efd3679da9fe493b3f0ca4a094e8ba4648204257 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/string_check_grader.py @@ -0,0 +1,28 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["StringCheckGrader"] + + +class StringCheckGrader(BaseModel): + """ + A StringCheckGrader object that performs a string comparison between input and reference using a specified operation. + """ + + input: str + """The input text. This may include template strings.""" + + name: str + """The name of the grader.""" + + operation: Literal["eq", "ne", "like", "ilike"] + """The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`.""" + + reference: str + """The reference text. This may include template strings.""" + + type: Literal["string_check"] + """The object type, which is always `string_check`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/string_check_grader_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/string_check_grader_param.py new file mode 100644 index 0000000000000000000000000000000000000000..da9e961568d7496350dc92f7644c6fc3daf623f0 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/string_check_grader_param.py @@ -0,0 +1,28 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["StringCheckGraderParam"] + + +class StringCheckGraderParam(TypedDict, total=False): + """ + A StringCheckGrader object that performs a string comparison between input and reference using a specified operation. + """ + + input: Required[str] + """The input text. This may include template strings.""" + + name: Required[str] + """The name of the grader.""" + + operation: Required[Literal["eq", "ne", "like", "ilike"]] + """The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`.""" + + reference: Required[str] + """The reference text. This may include template strings.""" + + type: Required[Literal["string_check"]] + """The object type, which is always `string_check`.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/text_similarity_grader.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/text_similarity_grader.py new file mode 100644 index 0000000000000000000000000000000000000000..a9d39a2fbd1225fbab84f41fbef79d0c3c0a8602 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/text_similarity_grader.py @@ -0,0 +1,42 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["TextSimilarityGrader"] + + +class TextSimilarityGrader(BaseModel): + """A TextSimilarityGrader object which grades text based on similarity metrics.""" + + evaluation_metric: Literal[ + "cosine", + "fuzzy_match", + "bleu", + "gleu", + "meteor", + "rouge_1", + "rouge_2", + "rouge_3", + "rouge_4", + "rouge_5", + "rouge_l", + ] + """The evaluation metric to use. + + One of `cosine`, `fuzzy_match`, `bleu`, `gleu`, `meteor`, `rouge_1`, `rouge_2`, + `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`. + """ + + input: str + """The text being graded.""" + + name: str + """The name of the grader.""" + + reference: str + """The text being graded against.""" + + type: Literal["text_similarity"] + """The type of grader.""" diff --git a/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/text_similarity_grader_param.py b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/text_similarity_grader_param.py new file mode 100644 index 0000000000000000000000000000000000000000..0907c3c2a74fc93abdea0f3c26229fb97dbf58d0 --- /dev/null +++ b/data/tefig/envs/olmes-eval/lib/python3.10/site-packages/openai/types/graders/text_similarity_grader_param.py @@ -0,0 +1,44 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["TextSimilarityGraderParam"] + + +class TextSimilarityGraderParam(TypedDict, total=False): + """A TextSimilarityGrader object which grades text based on similarity metrics.""" + + evaluation_metric: Required[ + Literal[ + "cosine", + "fuzzy_match", + "bleu", + "gleu", + "meteor", + "rouge_1", + "rouge_2", + "rouge_3", + "rouge_4", + "rouge_5", + "rouge_l", + ] + ] + """The evaluation metric to use. + + One of `cosine`, `fuzzy_match`, `bleu`, `gleu`, `meteor`, `rouge_1`, `rouge_2`, + `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`. + """ + + input: Required[str] + """The text being graded.""" + + name: Required[str] + """The name of the grader.""" + + reference: Required[str] + """The text being graded against.""" + + type: Required[Literal["text_similarity"]] + """The type of grader."""