File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed 
content/providers/01-ai-sdk-providers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -591,10 +591,10 @@ The following Zod features are known to not work with Google Vertex:
591591
592592### Embedding Models  
593593
594- You can create models that call the Google Vertex AI embeddings API using the ` .textEmbedding () `  factory method:
594+ You can create models that call the Google Vertex AI embeddings API using the ` .textEmbeddingModel () `  factory method:
595595
596596``` ts 
597- const =  vertex .textEmbedding (' text-embedding-004' 
597+ const =  vertex .textEmbeddingModel (' text-embedding-004' 
598598``` 
599599
600600Google Vertex AI embedding models support additional settings. You can pass them as an options argument:
@@ -603,7 +603,7 @@ Google Vertex AI embedding models support additional settings. You can pass them
603603import  { vertex  } from  ' @ai-sdk/google-vertex' 
604604import  { embed  } from  ' ai' 
605605
606- const =  vertex .textEmbedding (' text-embedding-004' 
606+ const =  vertex .textEmbeddingModel (' text-embedding-004' 
607607
608608const =  await  embed ({
609609  model ,
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments