7,727
questions
0
votes
0
answers
14
views
Why LlamaIndex takes too much of tokens?
I'm working on chatbot using NLSQLTableQueryEngine . llama packages takes more tokens compare to my prompt and completion . I am using Settings.callback_manager = CallbackManager([token_counter]) for ...
0
votes
0
answers
13
views
How to find the gitlab reply-by-email address programmatically?
I'm building a web application which shows all the issues and notes from a project using the gitlab api.
I want to add a mailto link to create a new comment on an issue.
As far as i know there are two ...
-1
votes
1
answer
64
views
In function 'int main()' : function-definition is not allowed [duplicate]
TryCPP.cpp: In function 'int main()':
TryCPP.cpp:_:41: error: a function-definition is not allowed here before '{' token
void send_massage_func(string message){ cout << message << endl; ...
0
votes
0
answers
22
views
Problem with Basic Auth authentication in GLPI API (error "ERROR_APP_TOKEN_PARAMETERS_MISSING")
I’m working with GLPI version 9.5.13, and I’m trying to use the API to authenticate via Basic Auth (login and password) on the initSession endpoint.
I’ve followed the documentation and tried using a ...
1
vote
1
answer
48
views
How to call HttpClient PostAsync or SendAsync with bearer token to get XML with XML argument?
The call with bearer token to get XML with XML argument is done so far with RestSharp
where
XElement Payload = <Access><AppID>35</AppID><UserToken>QrEil9L9S</UserToken>&...
0
votes
0
answers
67
views
Only 4 tokens per second! Why running Llama 3.1 8B Instruct in NVIDIA V100 so slow?
The entire code for reproducing the problem.
import transformers
from llm_related import get_prompt
import logging
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
...
0
votes
0
answers
17
views
Why such a discrepency between tiktoken and vertex count_tokens?
I have been chasing a status 400 response from vertexai for a minute today, ugh. Early in the script i'm using tiktoken to count prompt tokens. The value was ~1.8M, well within Gemini's limit of 2M.
...
0
votes
0
answers
14
views
Keycloak same realme but different clients
I have two apps: a customer app and a store app. I want to implement a system where if a user registers through the customer app, they cannot register in the store app, and vice versa. We have ...
0
votes
0
answers
24
views
How to authenticate with Anypoint Mulesoft API and retrieve a token with react
I am trying to retrieve a token from Anypoint Mulesoft API, but I am not sure which link to use,I have used both links and they are not working.
The info provided was:
Client ID
Client Secret
Grant ...
0
votes
2
answers
35
views
Why is my cookie not being sent to the client?
I am trying to send a cookie containing a token from my back end (index.js) to my client side.
but i am failing to see the cookie on the client-side both with dev tools>network>request headers&...
-1
votes
0
answers
26
views
Secure Token-Based Redirection Between Two Services Without Requiring Re-Login
I have two applications with different domains: A, B. Both has Backend & Frontend. Users log in to A through an authentication process (with an IDP). After logging in, the user has an access token ...
-2
votes
0
answers
15
views
About Fixed Staking [closed]
In Fixed Staking, if I stake twice during the period of the first staking period, how are the staked tokens and reward tokens handled? Are they accumulated?
I think staked tokens and reward tokens are ...
0
votes
0
answers
11
views
Methods to add role attributes to tokens in Keycloak
I'm using Keycloak version 25.0.4.
I created roles for Clients and added Attributes as key-value pairs to those roles.
However, in the token, only the roles are passed as an array, and the Attribute ...
0
votes
0
answers
37
views
how to use map reduce chain type with gemini models using chatgooglegenerativeai
model_name == "GEMINI-1.5-FLASH":
model = ChatGoogleGenerativeAI(model="gemini-1.5-flash",
google_api_key=GOOGLE_API_KEY,
...
0
votes
0
answers
30
views
ieugwasr: I have an access token but I am unable to download data from the ieugwasr API
I'm using the ieugwasr package, and whilst I was trying to rerun some analyses,
outcome <- extract_outcome_data(snps=SNPs,
outcomes = 'ebi-a-GCST90018974',
...
0
votes
0
answers
9
views
Is it really necessary to set Revoke system for RefreshToken(JWT)?
If even a hacker can access the RefreshToken, How can I realize it to stop RefreshToken by Revoke system?
0
votes
0
answers
39
views
JWT Token Format Issue: Token Prefix Reappears After Processing
I’m encountering an issue with handling JWT tokens in my Spring Boot application. Specifically, I’m seeing that the "Bearer " prefix reappears in the token after processing, leading to token ...
-1
votes
1
answer
55
views
How to Prevent iCloud Synchronization of SecureStorage in iOS for .NET MAUI?
I'm developing a cross-platform app using .NET MAUI, and I'm using SecureStorage to store sensitive data on iOS. However, I've read that by default, the data stored in the iOS keychain might be ...
-1
votes
0
answers
31
views
403 Forbidden Error Despite Valid JWT inside Cookie for Admin Role in API REST java
I face a problem.
I am building an API REST in java 21, with JWT.
The documentation is awful, and i think i did it wrong.
CONF :
`
@Configuration @EnableWebSecurity public class SecurityConfig {
...
0
votes
1
answer
48
views
Can't get response headers - javascript
I'm creating a site that sends requests to an API server via JavaScript, in one of the requests it requires me to capture a token that is given to create changes to shopping carts, without this token ...
0
votes
1
answer
48
views
Creating single use dummy token to Set Databricks Token ACL with Terraform
To set the Databricks Token ACL with Terraform, there needs to be a token available.
I have a solution for it which creates a token by first deployment and has a validity of 1 day, but I am told that ...
0
votes
0
answers
42
views
How to automate URL navigation and code retrieval for creating a new PAT in Azure DevOps pipeline?
I'm working on an Azure DevOps pipeline that needs to create a new Personal Access Token (PAT) using a service principal. The process requires obtaining an authorization code by navigating to a ...
0
votes
0
answers
9
views
Meaning of 'In production' Google refresh token, project needs to be private
I have made a desktop application with an ipwOAuth component of IPWorks 2020. The app just sends mail using a Gmail account. All goes very well but I found out that the refresh token has a lifetime of ...
0
votes
0
answers
26
views
How to acquire set-cookie (id, XSRF-TOKEN) in Response headers while cookie attribute SameSite = LAX?
I'm A newbee to webpage related area. I'm trying to fetch 2 cookies in set-cookie from Response headers at login page after I input username and password. The login page is "XXX.login.jsp" ...
-1
votes
1
answer
64
views
REST API in Azure Data Factory to get access token for Power BI
I need to extract/export a excel file from a visual (table) in a Power BI report. I have found an option of export but if it is from a visual in a report just in PDF and ppx, not excel or csv. I found ...
0
votes
0
answers
17
views
How do I update my Facebook Business token from my Python application?
I have a Python application that uses a Facebook Business library. Therefore, I need to use a token provided by Facebook to access my insights and manipulate them.
However, this token has an ...
0
votes
1
answer
66
views
Issue with JSON Extraction: GPT-3.5 Turbo vs. GPT-4 o-Mini Module
I'm facing a challenge with extracting JSON data from files using different AI models and could use some help.
Problem Description:
When I provide file content to ChatGPT 3.5 Turbo, I receive a ...
0
votes
0
answers
12
views
E11000 duplicate key error collection: ShopCart.tokens index: sellerId_1 dup key: { sellerId: ObjectId('66af901a089b822f1dc3ff7d') }
First time mail successfully send but if i send mail again then showing this error
E11000 duplicate key error collection: ShopCart.tokens index: sellerId_1 dup key: { sellerId: ObjectId('...
2
votes
1
answer
31
views
Best Practices on Cookies/Tokens/Session Id on web app
I am wokring on creating a user login in my app where after a period of time (expire), my app will logout on the client side. To do this and add security I was thinking of after login creating a user ...
0
votes
0
answers
20
views
Docker Datahub sign in
Install the datahub application on docker, I followed this link https://datahubproject.io/docs/quickstart/. However, since my server has limited access to the internet, I received an error when I ran ...
0
votes
0
answers
95
views
pushToStartTokenUpdates updates no data without creating an Activity
I'm trying to build a live activity widget on my iOS app.
There are 2 kind of tokens used in live activities:
pushToken (used to update live activity with push notifications.)
pushToStartToken (used ...
0
votes
0
answers
38
views
Forgotten password functionality with token in Spring Boot
I am trying to implement reset password feature in Spring Boot.
When user forgets its password, a link with generated token is sent to his email. Token is used to verify user that is changing password....
0
votes
2
answers
51
views
Google FCM problems with user that have multiple devics
I have some curious problems with Google Firebase Cloud Messaging and sending notifications:
An Android app is receiving notifications via FCM. It is installed on two devices (smartphone and tablet) ...
0
votes
1
answer
65
views
Calculation of pricing of tokens in OPENAI calls
I'm trying to price the tokens used in a call to OPENAI. I have a txt file with plain text that was uploaded to Qdrant. When I ask the following question:
Who is Michael Jordan?
and use the ...
0
votes
0
answers
27
views
Uniswap minting liquidity
I am trying to create uniswap V3 pool. token0 is always 490_000_000 * 1e18 tokens , token1 is changeable , between 1 -100 WETH ( WETH is also 18 decimals)
function createPool(
address ...
1
vote
0
answers
10
views
Is there any way to generate Slack App Configuration Token Programmatically
I have slack app and there are numerous instance from where my slack app will be connected for posting message.
So instead of generating manually token of app configuration token, How to generate it ...
0
votes
0
answers
17
views
"OutstandingToken.user" must be a "User" instance
I am getting this error while logging in, This is due to adding 'rest_framework_simplejwt.token_blacklist' to my settings.py, but without it everything works fine.
this is the traceback
ValueError at /...
0
votes
1
answer
64
views
Why is the consumption of openai tokens in azure hybrid search 100x higher in comparison to 'regular' prompts?
We are using openai via microsoft azure. Doing 'regular' prompts / using the api leads to the following output:
{
choices: [
{
content_filter_results: [Object],
finish_reason: 'stop',...
0
votes
1
answer
29
views
How to append inline element to its parent by parsing
I want to make markdown parser and some elements can't append. in parsing there is steps i have seen tokenizing => parsing => rendering.
My problem is how to to append child to parent in ...
0
votes
1
answer
44
views
Syntax on accessing authorization header of an API request in node
const authHeader = req.headers["authorization"];
Apologies if this question may seem basic, but I am curious why we use ["authorization"] and not just .authorization
I did some ...
-2
votes
1
answer
130
views
I'm making a program to prevent discord token theft
I'm making a program to prevent discord token theft. And I have a question, how do all these viruses get the discord token from the discord application? What files do they download it from and how do ...
0
votes
0
answers
70
views
How to Create a Token Using Django REST Framework?
I am trying to implement token-based authentication in my Django project using Django REST Framework, but I am unsure of the steps required to create and manage tokens.
I Installed Django REST ...
0
votes
0
answers
27
views
Keycloak group roles not showing in JWT
I need showing the group roles in Keycloak Token.
I created a group in Keycloak and mapped some functions.
I associated a user with the group.
I generated the token and in JWT not showing the group ...
0
votes
1
answer
83
views
How to generate token access Power BI
I am using OAuth to generate bearer token.
The generated token includes "https://analysis.windows.net/powerbi/api" as audience.
But it reports Unauthorized calling Power BI API.
GET https:/...
0
votes
1
answer
85
views
ID Token in MSAL User Token Cache Is Missing Custom Claims Present In Token from AcquireInteractiveToken
I am using PublicClientApplicationBuilder to add Microsoft Azure AD B2C to a desktop application. We are extending an existing Identity Experience Framework custom policy already in use for a website ...
1
vote
0
answers
37
views
Having an issue when fetching from JS to PHP
it goes to the fetch part and instantly throws back the error
index.php file:
<?php
session_start();
use GuzzleHttp\Client;
require 'vendor/autoload.php';
header('Content-Type: application/json')...
0
votes
0
answers
71
views
Cannot Create Token ID from Transaction with REST API on CyberSource
I'm having difficulty generating a token ID from the Transaction section on CyberSource sandbox environment via the REST API.
On CyberSource's UI, I can create it through CyberSorce's documentation. ...
0
votes
1
answer
116
views
Twitter API v2 Authentication Error: 401 Unauthorized Despite Correct Keys & Tokens
I am trying to access the Twitter API v2 both through the API directly on Postman and Tweepy in Python on macOS, but I keep encountering a 401 Unauthorized error. Despite using what I believe to be ...
0
votes
1
answer
60
views
Not working middleware tests (maybe my middleware were bad)
It my first middleware to verify tokens. It looks like this:
using System.IdentityModel.Tokens.Jwt;
using baio_api.Infrastructure.Services.Interfaces;
using Microsoft.Extensions.Logging;
namespace ...
0
votes
1
answer
48
views
NextAuth Middleware Failing to Retrieve Token in Production
I'm using NextAuth in a Next.js application with a custom credentials provider. Everything works perfectly on my local development environment, but in production (deployed on Vercel), the middleware ...