Comments (3)
実は、新しいモデルと古いモデルでは、API のエンドポイントが異なるようです[1]。
First Header | Second Header | Second Header |
---|---|---|
Newer models (2023–) | gpt-4, gpt-3.5-turbo | https://api.openai.com/v1/chat/completions |
Older models (2020–2022) | text-davinci-003, text-davinci-002, davinci, curie, babbage, ada | https://api.openai.com/v1/completions |
そして、精度の面では、gpt-4, gpt-3.5-turboには差があるようですが、gpt-3.5-turboとtext-davinci-003の差はそこまでないかもしれません[2]。
[2]より抜粋
The difference between these APIs derives mainly from the underlying GPT models that are available in each. The chat completions API is the interface to our most capable model (gpt-4), and our most cost effective model (gpt-3.5-turbo). For reference, gpt-3.5-turbo performs at a similar capability level to text-davinci-003 but at 10% the price per token! See pricing details here.
入力のフォーマットも異なるようなので、gpt-3.5-turbo と text-davinci-003 でどの程度差があるかをまずは実験した上で、gpt-3.5-turbo で良さそうであれば、ステップ① 叩く API エンドポイントを変えて、入力のフォーマットも併せて変更し、ステップ② gpt-3.5-turbo と gpt-4 を環境変数で入力するような形(これはこのissueで想定されているように、モデル名を環境変数で指定する意味)にするのが良さそうだと思われます。
参考:
[1] GPT - OpenAI API - https://platform.openai.com/docs/guides/gpt
[2] GPT - OpenAI API - https://platform.openai.com/docs/guides/gpt/chat-completions-vs-completions
from dim.
@ryo-ma こちらもまだ対応されてなければ、私の方で、今週来週くらいに作業してみようと思います。
from dim.
基本的に性能面を考えてgpt-3.5-turbo
で良いと考えております。
実装した当時はtext-davinci-003
が適切だったので。
なのでおっしゃる通り環境変数およびCLIで指定できるモデルとしてはgpt-3.5-turbo
かgpt-4
かなと思っています。
from dim.
Related Issues (20)
- Add support for deno 1.30.0
- Add converted file path to dim-lock.json
- Support for auto-generate post-process using Chat-GPT
- バージョンがアップデートされていない HOT 1
- catalogResourceId/Url is removed by `dim update`
- error of open api request is not shown as the error message HOT 4
- want to have CONTRIBUTING.md HOT 1
- Forbidden characters are not specified in the -n option when executing the install command.
- Cannot target files after conversion when multiple postProcesses are specified.
- Message when install -f is specified other than local dim.json
- Necessity of -A option for update when name is specified
- Deno update is preventing "Check type" from passing.
- Python library to simplify the interaction with dim HOT 5
- Add "XLS to CSV" converter to preprocess HOT 1
- post-processing を2つ以上指定することはできますか? HOT 2
- Add integrity in dim-lock.json HOT 1
- Specify a filename when installing data
- Support specifying path for dim.json and dim-lock.json, data_files
- Support to get search results in json format
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dim.