94 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
125
views
Sanity query Filter Post by Categories
I'm new using Sanity and I'm trying to filter my sanity studio posts by category, I've been looking for answers and trying different queries, but this is the only one that has worked
`
*[_type == &...
0
votes
1
answer
173
views
How to add memory to Llama 4 while using it through CMD using groq api?
I tried adding a AI on a batch file, but the problem is every time I write a new statement, the command overwrites all the text, hence I am not able to access previous memories.
@echo off
setlocal ...
1
vote
0
answers
588
views
Why does Groq return "tool_use_failed" error when using instructor with a valid response model, even though function call output looks correct?
I'm deploying a Python FastAPI app on Render, and I'm using the instructor library to parse LLM responses into a Pydantic model using Groq's API. Locally, everything works fine, but on deployment I ...
0
votes
0
answers
48
views
GroqCloud API Issue
this is my python code
import streamlit as st
import pandas as pd
import requests
# ---------- FUNCTION TO FETCH API DATA ----------
def fetch_data_from_api(api_url):
"""Fetch data ...
0
votes
1
answer
147
views
How to display Portable Text block content images in SvelteKit
I'm trying to render a blog post from Sanity Studio in my SvelteKit project.
Currently, all of the text etc is being displayed, but images within the block content aren't. Below is what I have tried ...
1
vote
0
answers
3k
views
How can I accurately count tokens for Llama3/DeepSeek r1 prompts when Groq API reports "Request too large"?
I'm integrating the Groq API in my Flask application to classify social media posts using a model based on DeepSeek r1 (e.g., deepseek-r1-distill-llama-70b). I build a prompt by combining multiple ...
0
votes
1
answer
562
views
Error calling the LLM using model API, using LlamaIndex
I am trying to build an agent that searches in a database, but when I call the query, o LlamaIndex is calling the OpenAI's API apparently, when it should to call the Groq API.
Code:
model = 'llama-3.3-...
0
votes
1
answer
183
views
How can I properly interact with the OpenAI API in a loop to prevent 429 Too Many Requests errors?
I'm working on a test project where I need to send data to the Groq API and receive responses in a loop. Below is my current code:
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
// ...
1
vote
1
answer
469
views
How to get this C# code working for HuggingFace models
I am doing some research and I have to use LLM models on different platforms APIs
1- OpenAI ChatGPT 4
2- Groq Llama 3.2
3- HuggingFace Llama 3.3
I built code that works on OpenAI ChatGPT 4 & ...
1
vote
0
answers
207
views
Deployment Error in Vercel/Render.. Saying Data is large
I'm using the Hugging Face Sentence Transformer embeddings model in my RAG-based chatbot, but when trying to deploy it on Vercel/Render, I get an error stating that the data is too large and out of ...
2
votes
0
answers
111
views
How to run onnx finetuned llama model on groq. I completely stuck here
I converted a hugging face model to onnx and it is in static form, after conversion i want to run this model on groq. This where I am not understanding.
To run onnx we need to convert onnx to groq.
I ...
2
votes
0
answers
403
views
cannot pickle 'classmethod' object
I try to run this code with a PDFTool, but I receive this following error
from crewai_tools import PDFSearchTool
rag_tool = PDFSearchTool(pdf='/content/17.pdf',
config=dict(
llm=dict(
...
1
vote
1
answer
2k
views
groq.APIConnectionError: Connection error
I am using Langchain and Groq for LLM project but I am getting API connection error, although I imported:
import os
load_dotenv()
and then loaded API as:
groq_api_key = os.getenv("GROQ_API_KEY&...
0
votes
3
answers
4k
views
Got "PydanticUserError" when import ChatGroq
I have following packages installed
langchain_core==0.2.39
langchain==0.2.16
langchain-community==0.2.16
langchain_groq==0.1.10
langchain_openai==0.1.24
fastapi==0.114.2
redis
pyyaml
However, when I ...
0
votes
1
answer
188
views
GROQ query to Sanity returns undefined for whyChoseExamples field (Next.js 14 + Sanity)
I'm working with Sanity.io and using a GROQ query to fetch data for my application. I'm trying to retrieve the whyChoseExamples field from my main document type, but it's returning undefined.
schema....