@@ -38,18 +38,25 @@ func createOrUpdateModel(d *schema.ResourceData, m interface{}, isUpdate bool) e
3838 modelReq := ModelRequest {
3939 ModelName : d .Get ("model_name" ).(string ),
4040 LiteLLMParams : LiteLLMParams {
41- CustomLLMProvider : customLLMProvider ,
42- TPM : d .Get ("tpm" ).(int ),
43- RPM : d .Get ("rpm" ).(int ),
44- APIKey : d .Get ("model_api_key" ).(string ),
45- APIBase : d .Get ("model_api_base" ).(string ),
46- APIVersion : d .Get ("api_version" ).(string ),
47- Model : modelName ,
48- InputCostPerToken : inputCostPerToken ,
49- OutputCostPerToken : outputCostPerToken ,
50- AWSAccessKeyID : d .Get ("aws_access_key_id" ).(string ),
51- AWSSecretAccessKey : d .Get ("aws_secret_access_key" ).(string ),
52- AWSRegionName : d .Get ("aws_region_name" ).(string ),
41+ CustomLLMProvider : customLLMProvider ,
42+ TPM : d .Get ("tpm" ).(int ),
43+ RPM : d .Get ("rpm" ).(int ),
44+ APIKey : d .Get ("model_api_key" ).(string ),
45+ APIBase : d .Get ("model_api_base" ).(string ),
46+ APIVersion : d .Get ("api_version" ).(string ),
47+ Model : modelName ,
48+ InputCostPerToken : inputCostPerToken ,
49+ OutputCostPerToken : outputCostPerToken ,
50+ InputCostPerPixel : d .Get ("input_cost_per_pixel" ).(float64 ),
51+ OutputCostPerPixel : d .Get ("output_cost_per_pixel" ).(float64 ),
52+ InputCostPerSecond : d .Get ("input_cost_per_second" ).(float64 ),
53+ OutputCostPerSecond : d .Get ("output_cost_per_second" ).(float64 ),
54+ AWSAccessKeyID : d .Get ("aws_access_key_id" ).(string ),
55+ AWSSecretAccessKey : d .Get ("aws_secret_access_key" ).(string ),
56+ AWSRegionName : d .Get ("aws_region_name" ).(string ),
57+ VertexProject : d .Get ("vertex_project" ).(string ),
58+ VertexLocation : d .Get ("vertex_location" ).(string ),
59+ VertexCredentials : d .Get ("vertex_credentials" ).(string ),
5360 },
5461 ModelInfo : ModelInfo {
5562 ID : modelID ,
0 commit comments