Comments (4)
Hey, just published DevDay released on v0.16.0. Please give it a try, if you find any issues PRs are welcome!
from async-openai.
How would we add something like this?
I think I've found the corresponding code - do you have an example on how to use it?
let request = CreateChatCompletionRequestArgs::default()
.max_tokens(4096u16)
.model("gpt-4")
.messages([
ChatCompletionRequestSystemMessageArgs::default()
.content("You are a helpful assistant.")
.build().unwrap()
.into(),
ChatCompletionRequestUserMessageArgs::default()
.content(vec!(
ChatCompletionRequestMessageContentPartTextArgs::default().text(payload.prompt).build().unwrap().into(),
ChatCompletionRequestMessageContentPartImageArgs::default().image_url(payload.image).build().unwrap().into(),
))
.build().unwrap()
.into(),
])
.build().unwrap();
from async-openai.
How would we add something like this?
I think I've found the corresponding code - do you have an example on how to use it?
from async-openai.
This was addressed in #203 hence closing
from async-openai.
Related Issues (20)
- query for client files list seems to be missing HOT 1
- Why is there a \n\n prepended to the response? HOT 2
- Changing base url - Usage with open source LLM - Invalid status code: 404 Not Found HOT 3
- Stabilizing wasm target HOT 2
- Support text-to-speech (TTS) streaming functionality HOT 12
- Advanced error handling for OpenAI-like LLM APIs
- Test compilation failed HOT 2
- Support variable length embeddings HOT 3
- OpenAI transcriptions api language field is invalid ! HOT 1
- Embedding deserialization error when using encoding_format `EncodingFormat::Base64`
- Ollama AI Chat Completion Example / OpenAI Compatibility HOT 3
- Sync OpenAPI spec changes after 4th Jan 24 HOT 1
- Initialize `Client` with custom HTTP client, config, and backoff HOT 3
- Usage of std::thread::sleep inside async function in assistants example HOT 1
- Add retry on 504 Gateway Time-out and "connection closed before message completed" HOT 5
- Missing fields in `CreateTranscriptionResponse` HOT 2
- Supporting streams when running assistants HOT 3
- Set OPENAI_API_BASE to environment variable HOT 1
- Open
- Deserialize error when retrieve content HOT 2
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 async-openai.