mirror of
				https://github.com/hwchase17/langchain.git
				synced 2025-10-31 16:00:16 +00:00 
			
		
		
		
	Co-authored-by: jacoblee93 <jacoblee93@gmail.com> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
		
			
				
	
	
		
			14 lines
		
	
	
		
			255 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			255 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ```python
 | |
| from langchain.llms import OpenAI
 | |
| 
 | |
| llm = OpenAI(temperature=0.9)
 | |
| ```
 | |
| 
 | |
| And now we can pass in text and get predictions!
 | |
| 
 | |
| ```python
 | |
| llm.predict("What would be a good company name for a company that makes colorful socks?")
 | |
| # >> Feetful of Fun
 | |
| ```
 | |
| 
 |