fry69

Results 270 comments of fry69

Looks like `useContext()` indeed clashes with Fresh island rehydration somehow. FWIW I use a similar pattern without `useContext()` that works fine for me, see these two files: - https://github.com/fry69/orw/blob/fresh-vite/orw-deno/routes/(main)/_layout.tsx (`DataInitializer`...

I spend a bit more time with that while burning my Anthropic credits before they expire. This seems to be a fundamental issue with how Fresh works. Here is an...

> Note that it happens on non-island provider component too Yes. Claude played through possible combinations to get `useContext()` working until it finally seemed to have found the right place...

I just found out that I still have the terminal session open, so here is the whole shebang for curious minds: https://gist.github.com/fry69/a12447a00535c9303f7ca59a2e2ca5a0

I can confirm that `generateObject()` does not work with `anthropic/claude-3.5-sonnet`. It works though with `mistralai/mistral-small-24b-instruct-2501:free`. May or may not be a bug in the AI SDK, I reference this closed...

After digging a bit deeper, it looks like none of the Anthropic models support structured outputs? You can check for yourself with my model list tool, if you have [Deno](https://docs.deno.com/runtime/getting_started/installation/)...

> [@fry69](https://github.com/fry69) I'm guess I'm not sure whether OpenRouter supports structured outputs for anthropic models The supported parameters array in the OpenRouter API model list miss the `response_format` and/or `structured_outputs`...

Mistral models (at those who offer the `structured_output` parameter) work for me. Also, the linked test case does not seem to use the OpenRouter provider at all.

What is preferred: ``` [Doc] xxx ``` or ``` Doc: xxx ``` as a prefix for the title without issue #? I used the latter for now. Should it be...

It looks like you might not really be inside the same Docker container when you `curl`, otherwise it is hard to explain why /etc/hosts seems to be different, which leads...