Comments (1)
well, I changed strategy and consolidated my API calls, since this isn't a 'chat' bot inside the game but just leveraging AI to produce game data. But I think more than anything, switching back to 3.5 seems to have dropped the count. Even the previous method when I tested the token count it was only incrementing by 100 each time, so 100 bigger calls each time because it was accumulating the chat history when it didn't really need to. So, I created bigger batch calls and inputs, modified the parsing for the outputs and that solved my particular use case.
OpenAI really should enable single use calls that don't generate a history. I guess simply reinitializing everything does the same thing, but doing this at runtime adds some memory overhead, no?
Anyhow, problem solved for me, though I'm still scratching my head about what turned out to be 580k of input tokens for less than 100 simple calls.
from openai-api-dotnet.
Related Issues (20)
- - nevermind - can delete HOT 5
- The SSL connection could not be established, see inner exception. HOT 1
- Running the tests HOT 1
- ChatMessage Content bugs introduced on 1.9 version
- How to customize API website addresses? HOT 2
- Azure Open AI Bring Your Own Data Unity ???
- How to choose gpt-4-0125-preview completion model to be used?
- Is it possible to save chat history in Json format, for later upload history from file? HOT 1
- How to use openAI Assistants?
- developer HOT 1
- Current Version not building (4/28/2024) HOT 2
- If the <br> tag is not output to the page, there will be a strange issue with data caching in the browser.
- Issue pulling models list HOT 2
- Error deserializing a ChatMessage
- Typically each socket address (protocol/network address/port) is only allowed to be used once. (127.0.0.1:9127)
- Big announcement: official support from Microsoft! HOT 11
- The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing
- [Request] Add support for gpt-4o model HOT 8
- 8 HOT 1
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 openai-api-dotnet.