OpenAI Adds Tool-Calling and Cuts Prices for Text Models
OpenAI introduced function calling for GPT-3.5-turbo and GPT-4, alongside a GPT-3.5-turbo option with a 16,000-token context window. It also cut prices for the standard GPT-3.5-turbo and text-embedding-ada-002.
OpenAI is updating its text-generating models with new ways for developers to use them, while lowering the cost of some existing services. The changes include function calling for GPT-3.5-turbo and GPT-4, a longer-context GPT-3.5-turbo option, and price cuts for the standard model and a text embedding model.
“The update adds developer tool calling and longer context while cutting prices, with no clear harmful or degrading social effect described.”Why it scores Neutral
Models can call developer-described functions
Function calling lets developers describe programming functions to GPT-3.5-turbo and GPT-4. The models can then produce code to execute those functions. This gives developers a way to connect a model’s response to tools or data-handling tasks they define.
Examples include chatbots that call external tools to answer questions, turning natural-language requests into database queries, and extracting structured information from text. OpenAI says the models have been fine-tuned to recognize when a function should be called and return JSON that follows the function signature.
That structured response can make it more reliable for developers to receive data in a format their software can use. The feature does not mean the model itself supplies every external tool or database; developers describe the functions that it can invoke.
A longer context for GPT-3.5-turbo
OpenAI also introduced a GPT-3.5-turbo version with a 16,000-token context window. A context window is the amount of text a model considers before generating more. If that window is small, a model may lose track of even recent conversation details and drift from the topic.
The new option has four times the context length of the standard GPT-3.5-turbo. OpenAI says it can take in around 20 pages of text at once, which could help with tasks that involve longer inputs. The expanded window is not unlimited: the article notes that Anthropic’s flagship model can process hundreds of pages, while OpenAI was testing a 32,000-token GPT-4 version in limited release.
The longer-context GPT-3.5-turbo costs $0.003 per 1,000 input tokens and $0.004 per 1,000 output tokens. Input tokens are fed into the model; output tokens are generated by it. The source describes this option as costing twice as much as the standard GPT-3.5-turbo.
Price cuts for two existing services
For the standard GPT-3.5-turbo, OpenAI announced a 25% price reduction. Developers can use it for $0.0015 per 1,000 input tokens and $0.002 per 1,000 output tokens. The expanded-context version is excluded from this cut.
OpenAI also reduced the price of text-embedding-ada-002 by 75%, to $0.0001 per 1,000 tokens. Embeddings measure how related text strings are. They are commonly used to rank search results by relevance to a query or recommend items whose text is related.
Lower prices can make these services less expensive to use in applications, while the longer context and function calling provide additional options for developers. OpenAI attributed the embedding price cut to greater efficiency in its systems.
Incremental changes after GPT-4
The update reflects a focus on improving existing models as well as releasing new ones. The article describes incremental updates, rather than large models trained from scratch, as OpenAI’s approach following GPT-4’s release in early March.
At a recent conference hosted by Economic Times, CEO Sam Altman said OpenAI had not started training GPT-4’s successor and that the company had substantial work to do before beginning that model. For developers, the announced changes offer near-term adjustments to how they can build with OpenAI’s existing text models: models can return structured data for functions, one GPT-3.5-turbo option can consider more input, and two services have lower prices.
Read next