[model-gateway] bug fix on module name (#16332)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use serde_json::json;
|
||||
use sgl_model_gateway::protocols::{
|
||||
use smg::protocols::{
|
||||
common::{Function, StringOrArray, ToolChoice, ToolChoiceValue},
|
||||
responses::{
|
||||
IncludeField, ResponseInput, ResponseInputOutputItem, ResponseTool, ResponseToolType,
|
||||
@@ -963,7 +963,7 @@ fn test_validate_input_items_structure() {
|
||||
/// Test tool_choice defaults to auto when tools are present
|
||||
#[test]
|
||||
fn test_normalize_tool_choice_auto() {
|
||||
use sgl_model_gateway::protocols::validated::Normalizable;
|
||||
use smg::protocols::validated::Normalizable;
|
||||
|
||||
let mut request = ResponsesRequest {
|
||||
input: ResponseInput::Text("test".to_string()),
|
||||
@@ -1004,7 +1004,7 @@ fn test_normalize_tool_choice_auto() {
|
||||
/// Test tool_choice defaults to none when tools array is empty
|
||||
#[test]
|
||||
fn test_normalize_tool_choice_none() {
|
||||
use sgl_model_gateway::protocols::validated::Normalizable;
|
||||
use smg::protocols::validated::Normalizable;
|
||||
|
||||
let mut request = ResponsesRequest {
|
||||
input: ResponseInput::Text("test".to_string()),
|
||||
@@ -1031,7 +1031,7 @@ fn test_normalize_tool_choice_none() {
|
||||
/// Test tool_choice is not overridden if already set
|
||||
#[test]
|
||||
fn test_normalize_tool_choice_no_override() {
|
||||
use sgl_model_gateway::protocols::validated::Normalizable;
|
||||
use smg::protocols::validated::Normalizable;
|
||||
|
||||
let mut request = ResponsesRequest {
|
||||
input: ResponseInput::Text("test".to_string()),
|
||||
@@ -1068,7 +1068,7 @@ fn test_normalize_tool_choice_no_override() {
|
||||
/// Test parallel_tool_calls defaults to true when tools are present
|
||||
#[test]
|
||||
fn test_normalize_parallel_tool_calls() {
|
||||
use sgl_model_gateway::protocols::validated::Normalizable;
|
||||
use smg::protocols::validated::Normalizable;
|
||||
|
||||
let mut request = ResponsesRequest {
|
||||
input: ResponseInput::Text("test".to_string()),
|
||||
@@ -1107,7 +1107,7 @@ fn test_normalize_parallel_tool_calls() {
|
||||
/// Test parallel_tool_calls is not set when tools are absent
|
||||
#[test]
|
||||
fn test_normalize_parallel_tool_calls_no_tools() {
|
||||
use sgl_model_gateway::protocols::validated::Normalizable;
|
||||
use smg::protocols::validated::Normalizable;
|
||||
|
||||
let mut request = ResponsesRequest {
|
||||
input: ResponseInput::Text("test".to_string()),
|
||||
@@ -1127,7 +1127,7 @@ fn test_normalize_parallel_tool_calls_no_tools() {
|
||||
/// Test parallel_tool_calls is not overridden if already set
|
||||
#[test]
|
||||
fn test_normalize_parallel_tool_calls_no_override() {
|
||||
use sgl_model_gateway::protocols::validated::Normalizable;
|
||||
use smg::protocols::validated::Normalizable;
|
||||
|
||||
let mut request = ResponsesRequest {
|
||||
input: ResponseInput::Text("test".to_string()),
|
||||
@@ -1162,7 +1162,7 @@ fn test_normalize_parallel_tool_calls_no_override() {
|
||||
/// Test store defaults to true
|
||||
#[test]
|
||||
fn test_normalize_store_default() {
|
||||
use sgl_model_gateway::protocols::validated::Normalizable;
|
||||
use smg::protocols::validated::Normalizable;
|
||||
|
||||
let mut request = ResponsesRequest {
|
||||
input: ResponseInput::Text("test".to_string()),
|
||||
@@ -1182,7 +1182,7 @@ fn test_normalize_store_default() {
|
||||
/// Test store is not overridden if already set
|
||||
#[test]
|
||||
fn test_normalize_store_no_override() {
|
||||
use sgl_model_gateway::protocols::validated::Normalizable;
|
||||
use smg::protocols::validated::Normalizable;
|
||||
|
||||
let mut request = ResponsesRequest {
|
||||
input: ResponseInput::Text("test".to_string()),
|
||||
|
||||
Reference in New Issue
Block a user