Skip to content

chore: update README.md - #14

Open
Abhinavexist wants to merge 2 commits into
mainfrom
feat/readme
Open

chore: update README.md#14
Abhinavexist wants to merge 2 commits into
mainfrom
feat/readme

Conversation

@Abhinavexist

Copy link
Copy Markdown
Collaborator

Updated the README to reflect the new improved structure. Removed outdated sections and added new usage examples.

Updated the README to reflect the new project name and improved structure. Removed outdated sections and added new usage examples.
Added a capabilities section to outline various use cases and their corresponding entry points.
Comment thread README.md
The official [Interfaze](https://interfaze.ai) SDK for TypeScript/JavaScript

- **Familiar chat surface** - `chat.completions`, streaming, tools, and structured output.
- **Typed Interfaze extras** - `precontext` (internal tool output), `reasoning`, and `vcache` (semantic-cache hit) on every response.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • don't say internal tool, we don't use that wording. Use the same wording as the docs. don't say extras, it's our sdk, you can just say, something like provided additional metadata or remove this and just show it in the examples

Comment thread README.md
@@ -1,29 +1,14 @@
# interfaze-js
# interfaze

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to: # Interfaze Typescript and Javascript SDK

Comment thread README.md

- **Familiar chat surface** - `chat.completions`, streaming, tools, and structured output.
- **Typed Interfaze extras** - `precontext` (internal tool output), `reasoning`, and `vcache` (semantic-cache hit) on every response.
- **One-line task helpers** - OCR, web search, scraping, speech-to-text, translation, object/GUI detection, forecasting.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to run_task

Comment thread README.md
console.log("cache hit:", res.vcache); // typed Interfaze extra

res.choices[0]?.message.content;
res.vcache; // semantic-cache hit

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not important, precontext is still not logged. look at the docs intro code: https://interfaze.ai/docs#make-your-first-request

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a better example like OCR with structured output, more relevant to us

Comment thread README.md
properties: { city: { type: "string" }, temp_c: { type: "number" } },
required: ["city", "temp_c"],
}),
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad example, give something related to us

Comment thread README.md
await interfaze.tasks.objectDetection("https://example.com/photo.jpg");
await interfaze.tasks.guiDetection("https://example.com/screenshot.png");
await interfaze.tasks.forecast("https://example.com/timeseries.csv", { periods: 30 });
const stream = interfaze.chat.completions.stream({

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better example

Comment thread README.md

From base64 / raw bytes URI:

```ts

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great but also add the traditional method of adding the files inline, that's very common too

Comment thread README.md

## Tasks

Each helper forces one specialized tool - [faster and cheaper](https://interfaze.ai/docs/run-tasks) than a completion. All return `unknown`, so validate before use.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add the downside too, that it doesn't run the full model so it's only one task and it's a fixed structure

Comment thread README.md
URLs and base64 both work; `image/gif` and `image/avif` are rejected client-side.
A match returns the plain string `unsafe S1` as the content. See the exported `GUARD_CODES` / `GUARD_LABELS`.

## Interfaze extras

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why extras?

precontext is such an important part of interfaze, it should be right at the top after the intro code

Comment thread README.md
messages: [{ role: "user", content: "Extract the total from this receipt." }],
});

res.vcache; // boolean - the semantic cache served this

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vcache and reasoning is extra but just put them in their own section instead of saying extra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants