Add examples in the docs

Open
#54 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
julia
Domain
api, documentation

Research direction

Start by reviewing the existing documentation and how the chat and other endpoints are currently described. Use the listed ideas—modes, HTTP debugging, common errors, async behavior, and templates—to define a small initial scope. Done should be a clearly scoped set of practical examples and troubleshooting guidance for newcomers.

Written by the indexing model from the issue text.

Description

documentation

It would be excellent to add some examples in the docs.

I suspect it is hard for newcomers to use the various endpoints and also debug the common error. There is a lot of knowledge how we use these endpoints that is not captured anywhere yet.

Ideas:

  • How to call chat endpoint with the new modes (function call/ tools call, json mode, logit bias classifier)
  • HTTP debugging and tips (errors when calling wrong model-endpoint combination, dropped calls, timeouts, async challenges (Pool vs Threads))
  • Common problems (truncated output for vision models, etc)
  • Some practical example to build easy templates with structs?

WDYT? We could probably start small.

Dominant language
Julia
Stars
119
Forks
25
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaML/OpenAI.jl

All issues in JuliaML/OpenAI.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.